Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.


                <!-- Free Code Camp Wikipedia Viewer Challenge -->

<div class="container-fluid">
  <div class="container">
    <div class="jumbotron">
      <h1>Wikipedia Viewer</h1> 
          <form class="navbar-form" role="search">
            <div class="input-group">
              <input class="form-control" placeholder="Search Wikipedia..." name="mySearch" id="mySearch" type="text">
                <div class="input-group-btn">
                  <button class="btn btn-default" id="myButton" type="submit">
                    <i class="glyphicon glyphicon-search"></i>
  <div class="container" id="wList">
    <p id="pOne"></p>
</div> <!-- Container -->



                .container {
  margin-top: 32px;


                /* Free Code Camp Wikipedia Viewer Challenge */

/* */

/* */


1) User enters search criteria and clicks search button
2) On click append the wikipedia search string with the search criteria
3) For each item it returns, create a Div below the jumbotro that shows the i) The title, ii) The brief one-liner description, iii) the link to the full article


var data =    [
                  { "title": "Michael",
                    "description": "",

function doSearch(sTerm) {
  var search_term = sTerm;
  var api_url = "";
  $.ajax( {
          url: api_url,
          dataType: 'jsonp',
          jsonp: 'callback',
          data: {action: 'opensearch',
                 search: search_term,
                 limit: 5,
                 format: 'json'},
          success: function(response) {
            data = response;

$("#myButton").on("click", function() {
  var sTerm = $('#mySearch').val();