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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.


              <link href="" rel="stylesheet">

<div class="container-fluid">
<div class = "block text-center">
   <input class="from-control" id="searchBar"><br><br>
    <button class="btn btn-default btn-primary" type="button" id="search">Wikipedia Search</button>
  <a type = "button" class = "btn btn-default btn-primary" href="" target="_blank">I'm Feeling Lucky</a><br><br><p>Search Engine Created by Josh Beasley</p>
<div class = "block text-left">
    <h1  id = "result">Search Results<br><br>
  <span id = "results"></span>



  font-family: Playfair Display;

  margin-top: 100px;
  background-color: black;
  opacity: .7;
  padding: 50px;
  height: auto;
  width: 1000px;
  margin-left: auto;
  color: white;
  border-radius: 10px;
  margin-bottom: 50px;

.block h1{
  font-size: 48px;

.block p{
  font-size: 10px;

  width: 500px;
  color: black;



              $(document).ready(function() {
  //when search is clicked we run the following code
  $("#search").click(function() {
    //Assigns search input to a variable
    var search = $("#searchBar").val();
    //API url concatonated with search term

      type: "GET",
        "" +
          search +
      async: false,
      dataType: "json",
      //if the "GET" is successful perform the following function
      success: function(data) {
        //clear results upon next search
        for (var i = 0; i < 10; i++) {
            "<a href =" +
              data[3][i] +
              ' target = "_blank">' +
              data[1][i] +
              "</h1></a><h3>" +
              data[2][i] +
      error: function(errorMessage) {
    //type enter to search
    $("#searchBar").bind("keypress", function(val) {
      if(val.keypress == 13)