Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


<div class="container">
  <div class="text-center">
    <h1 class="box-heading">Wikipedia Search API</h1>
    <form class="form-inline" role="form">
      <div class="form-group">
        <label id="label" for="searching">Search For...</label>
    <input type="text" class="form-control" id="searchTerm" placeholder="Enter your search term">
        <button id="search" type="button" class ="btn btn-primary"><span class="glyphicon glyphicon-search"></span></button>
         <a href="" class="btn btn-default" target="_blank">
      <span class="glyphicon glyphicon-random"></span>
   <div id="output"></div>
  <script src="js/script.js"></script>
   <footer class="text-center credits"><br/>
    <p>&copy;Copyright <a href="">Sneha S</a>


                body {
	font-family: cursive;
  background: url('');
  backround-attachment: fixed;
  background-size: cover;

li {
   background-color: #ffffff;
  border: 1px solid white;
  opacity: 0.85;
  font-weight: 600;
  color: black;
  border-radius: 25px;
	line-height: 1.5;
	list-style-type: none;
	a {
		color: white;
		font-size: 150%;
	} a:hover {
		text-decoration: none;
		color: green;
		@include transition(.3s);
  margin-top: 50px;
  margin: 10px;
  background-color: #ffffff;
  border: 1px solid white;
  opacity: 0.6;
  border-radius: 25%;
  font-weight: 800;
  color: black;
  font-weight: 800;
  border: 1px solid white;
  opacity: 0.5;
  color: black;
  background-color: #ffffff;
  font-size: 125%;
  background-color: #eeffee;
  border: 1px solid white;
  opacity: 0.6;
 color: blue;
  border: 1px solid white;
  bottom: 0;


  //On click run code
    //Get value of input field
 var searchTerm = $("#searchTerm").val();
//Run ajax and get return in data type JSON
    var url = ""+ searchTerm +"&format=json&callback=?";
        type: "GET",
        url: url,
        contentType: "application/json; charset=utf-8",
        async: false,
        dataType: "json",
        success: function (data, textStatus, jqXHR) {
          for(var i=0;i<data[1].length;i++){
            $('#output').append("<li><a href=" + data[3][i] + " target='_blank'>" + data[1][i] + "</a><p>" + data[2][i] + "</p></li>");         
        error: function (errorMessage) {