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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

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


                <link href="" rel="stylesheet" type="text/css">

<div class="text-center weather"><span>Wikipedia Viewer</span></div><br><br>

<div class="text-center mesto"><a href="" target="_blank" alt="Random Page">Click here for a random Wikipedia article</a><span id="mesto"></span></div><br><br>

<div class="container">
  <div class="row">
    <div class="col-md-5 col-md-offset-3">
      <form action="" class="search-form">
        <div class="form-group has-feedback">
          <label for="search" class="sr-only">Search</label>
          <input type="text" class="form-control" name="search" id="search" placeholder="search">
          <span class="glyphicon glyphicon-search form-control-feedback"></span>

<div class="wrapper">



                body {
  background-color: #E44424;
.weather {
  font-family : Lobster;
  color : white;
  font-size: 8em;
.mesto a {
  color : white !important;
  font-size: 1.8em !important;
  font-family: Lobster;
  text-decoration : none;
.search-form .form-group {
  float: right !important;
  transition: all 0.35s, border-radius 0s;
  width: 80%;
  height: 70%;
  background-color: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
  border-radius: 25px;
  border: 1px solid #ccc;
.search-form .form-group input.form-control {
  padding-right: 20px;
  border: 0 none;
  background: transparent;
  box-shadow: none;
.search-form .form-group span.form-control-feedback {
  position: absolute;
  top: -1px;
  right: -2px;
  z-index: 2;
  display: block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  color: #3596e0;
  font-size: 14px;
.wrapper ul li {
    list-style-type: none;
    display: block;
    margin-bottom: 10px;
    padding: 15px 30px 5px 30px;
    background-color: #E7E7E8;
ul a {
    text-decoration: none !important;
    color: black;
ul {
    margin-left: 10%;
    margin-top: 4%;
    padding-left: 0;
    width: 80%;
ul a h1 {
    font-size: 18px;
    font-weight: 600;
ul a p {
    font-size: 14px;


                $(document).ready(function() {
  $('.search-form').submit(function(event) {
    var inpu = $('input');
    var input = inpu.val();
    $.getJSON("*&gsrnamespace=0&gsrlimit=10&prop=pageimages|extracts&pilimit=max&exintro&explaintext&exsentences=1&exlimit=max&gsrsearch="+input, function(json) {
      var html = "<ul>";
      var results = json.query.pages;
      var arr = Object.keys(results).map(function(k) { return results[k] });
      for(var i =0; i<arr.length;i++) {
       html += '<a href="'+arr[i].pageid+'" target="_blank"><li class="animated fadeInUp"><h1>'+arr[i].title+'</h1><p>'+arr[i].extract+'</p></li></a>';
      html += "</ul>";