cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

              <a name="top-page"></a>
<div class='container-fluid'>
			<nav class = 'navbar navbar-inverse navbar-fixed-top'>
			<div class='navbar-header'>
			<a class = 'navbar-brand' href = '#top'>WIKIPEDIA Viewer</a>
			<ul class="nav navbar-nav">
			<li><a href='https://en.wikipedia.org/wiki/Special:Random' target='blank'>Random Article</a></li>
			<img src="https://preview.ibb.co/k35xq5/wiki.png" class="img-responsive" alt="Wikipedia">
			<div class='block'>
			<h1 class='search-wiki'>Search Wikipedia</h1>
			<input class='form-control' id='searchTerm'><button id='search-btn' type='button' class='btn btn-basic'>Search</button>
			<div class='block' id='results'></div>

              body { 
  font-family: 'Crimson Text', serif;

a {
	color: black;

	text-align: center;
	margin-top: 220px;
	margin: 0 auto;

	padding: 10px 0px;


	display: inline-block;
	width: 250px;
	vertical-align: middle;
	margin-right: 4px

	margin: 4px;

  margin-top: 45px;
		var searchTerm = $('#searchTerm').val();
			type: 'GET',
			url: 'https://en.wikipedia.org/w/api.php?action=opensearch&search=' + searchTerm + '&callback=?',
			async: false,
			dataType: 'json',

		success: function(data){

			for(var i=0; i<10; i++){
				$('#results').append('<h1><a href=' + data[3][i] +  ' target= "blank">' + data[1][i] + '</a></h1> <h3>' + data[2][i] + '</h3> <br>');

		error: function(errorMessage) {

  $('#searchTerm').bind('keypress', function(e) { 
    if (e.keyCode == 13) {
Loading ..................