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 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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

              <div class="col-xs-4"></div> <!-- Bender doesn't play well with text -->

<div class="col-xs-8">

  <center><h1> Search Wikipedia Articles</h1></center>  
<div class="row"> 
<input type="text"  placeholder="Whaddya want?" id="wikiMe"></input>
<button type="submit" class="btn btn-primary btn-md" id="pushMe">Brain the size of a planet...</button></div>
<div class="row"><a href="https://en.wikipedia.org/wiki/Special:Random" target="_blank"><button class="btn btn-warning" id="random">I know what you really want, click me! </button></a>

<div class="well">
<em><p>Displaying first 10 results only</p></em>

<div class="footer"><button class="btn btn-danger" id="boom">Don't push me!!</button></div>
              body {
  background-color: black;
  background-image: url("http://graywind.org/bender.jpg");
  background-repeat: no-repeat;
  background-attachment: fixed;
h1 {
  color: #B16820;
  text-align: left;
h2 {
  color: #B16820;
p {
  color: white;
  pull: left;
input {
  height: 34px;
  border-radius: 5px;
  float: left;
.well {
  background-color: transparent;
  display: none;
  border: hidden;
#random {
  display: none;
#pushMe {
  float: left;
.btn-warning {
  float: left;
#boom {
  display: none;
              var search = '',
results = {},
load = 0;

//Why does the information travel down the page each time you search?
//Add buttons to transform the page into different robots

function Wiki() {
  search = document.getElementById('wikiMe').value;
  url='https://en.wikipedia.org/w/api.php?action=opensearch&search=' + search +'&format=json&origin=*'

function wikiSlam(url)
    var xmlHttp = new XMLHttpRequest();
    xmlHttp.onreadystatechange = function() { 
        if (xmlHttp.readyState == 4 && xmlHttp.status == 200)
               data = JSON.parse(xmlHttp.responseText);
   results.title = data[1];
   results.summary = data[2];
   results.link = data[3];

if (load = 1) {
  $('.well').html("<em>Displaying first 10 results only</em>");
function display(){
  for (var i = 0; i < results.title.length; i++){
    $('.well').append("<a href='" + results.link[i] + "' target='blank'><h2>"+ results.title[i] + ": </h2></a><blockquote><p>" + results.summary[i]+ "</p></blockquote>")
 $('p').css('class', 'lead');
 $('.well').css('display', 'inline');
    xmlHttp.open("GET", url, true); // true for asynchronous 



  if (e.which == 13) {

$("#boom").click(function (){
  $('html').addClass('animated hinge');
  alert("I warned you!!");

🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................