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


                <body id="wikiapp" class="blue lighten-5">
  <div class="row" id="header">
    <div class="col s12 m6 offset-m3">
      <div class="logo white-text center-align">WiKi <span class="blue-text text-darken-2">App</span></div>
    <div class="col s12 m6 offset-m3">
        <div class="input-field">
          <input v-model="searchstr" id="search" type="search" placeholder="Search for wikies..." @keyup="searchWiki" debounce="10">
          <label for="search"><i class="material-icons blue-text">search</i></label>
          <i class="material-icons">close</i>
    <div class="col s12 m2 offset-m5 center-align">
      <a href="" target="_blank" class="btn waves-effect waves-light red">Random Wiki</a>
  <div class="row">
    <div class="col s12 m8 offset-m2">
      <wikies :list="results"></wikies>

  <template id="wikies-template">
    <ul class="collapsible" data-collapsible="accordion" v-show="!!list.length">
      <li  v-for="wiki in list">
        <div class="collapsible-header">{{ wiki.title }}</div>
        <div class="collapsible-body"><p>{{ wiki.extract }}<span class="blue-text"><a href="{{ wiki.pageid }}" target="_blank"> Read more on Wikipedia</a></span></p></div>


      background-image: url('');
      font-family: 'Seymour One', sans-serif;
      font-size: 64px;
      text-shadow: 0px 2px 2px rgba(255,255,255, 0.9);
      transform: translateY(0) !important;
    .input-field input[type=search] ~ .material-icons{
      top: 0.6rem !important;
      border-bottom: 1px solid blue;
      color: #cccccc;

      background-color: rgba(0,0,0,0.6);
      color: #ffffff;
    @media (max-width: 601px){
        font-size: 32px;
        text-align: center;
        margin-top: 5%;


                var results= [];

  props: ['list'],
  template: '#wikies-template'
new Vue({
  el: '#wikiapp',
  data: {
    searchstr: '',
    results: []
  methods: {
    searchWiki: function(){
        if(this.searchstr == ''){
          this.results = [];
        this.$http.get(''+this.searchstr, function(response){
        var jsonObj = [];
        $.each( response.query.pages, function( key, value ){
          jsonObj.push({"title":value.title,"extract":value.extract, "pageid":value.pageid,"index":value.index});
        this.results = jsonObj;