Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <div id="app">
  <div class="panel panel-left panel-cover theme-dark">
    <div class="page"></div>
  </div>
  <div class="panel panel-right panel-reveal theme-dark">
    <div class="page"></div>
  </div>
  <div class="view view-main ios-edges">
    <div class="page" data-name="home">
      <div class="navbar">
        <div class="navbar-inner">
          <div class="left">
            <a href="#" class="link panel-open" data-panel="left">Left Panel</a>
          </div>
          <div class="title sliding">My App</div>
          <div class="right">
            <a href="#" class="link panel-open" data-panel="right">Right Panel</a>
          </div>
        </div>
      </div>
      <!-- Toolbar-->
      <div class="toolbar toolbar-bottom">
        <div class="toolbar-inner">
          <a href="#" class="link">Left Link</a>
          <a href="#" class="link">Right Link</a>
        </div>
      </div>
      <!-- Scrollable page content-->
      <div class="page-content">
        <div class="block block-strong">
          <p>Here is your blank Framework7 app.</p>
        </div>

        <div class="block-title">Navigation</div>
        <div class="list links-list">
          <ul>
            <li><a href="/about/">About</a></li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</div>

              
            
!

CSS

              
                
              
            
!

JS

              
                var cars = ["Volvo", "Saab", "Mercedes", "Audi"];

var app = new Framework7({
  root: "#app",
  theme: "auto",
  routes: [
    {
      path: "/about/",
      on: {
        pageInit: function (e, page) {
          var autocompleteDropdownAll = app.autocomplete.create({
            inputEl: "#cars-autocomplete",
            openerEl: "#cars-autocomplet-open",
            openIn: "popup",
            source: function (query, render) {
              if (query.length === 0) {
                render(cars);
                return;
              }
              var results = [];
              // Find matched items
              for (var i = 0; i < cars.length; i++) {
                if (cars[i].toLowerCase().indexOf(query.toLowerCase()) >= 0)
                  results.push(cars[i]);
              }
              // Render items by passing array with result items
              render(results);
            }
          });
        }
      },
      content: `
<div class="page">
  <div class="navbar">
    <div class="navbar-inner sliding">
      <div class="left">
        <a href="#" class="link back">
          <i class="icon icon-back"></i>
          <span class="ios-only">Back</span>
        </a>
      </div>
      <div class="title">About</div>
    </div>
  </div>
      <div class="toolbar toolbar-bottom">
      <div class="toolbar-inner">
         
      <button class="button button-fill color-primary">Test</button>
    
      </div>
    </div>
  <div class="page-content">
    <div class="block block-strong">About page</div>
    <div class="list">
      <ul>
        <li class="item-content item-input">
          <div class="item-inner">
            <div class="item-title item-label">Input</div>
            <div class="item-input-wrap">
              <input type="text" name="name">
            </div>
          </div>
        </li>
        <li class="item-content item-input">
          <div class="item-inner">
            <div class="item-title item-label">Input + Datalist</div>
            <div class="item-input-wrap">
              <input type="text" list="cars" />
              <datalist id="cars">
                <option>Volvo</option>
                <option>Saab</option>
                <option>Mercedes</option>
                <option>Audi</option>
              </datalist>
            </div>
          </div>
        </li>
        <li class="item-content item-input">
          <div class="item-inner" id="cars-autocomplet-open">
            <div class="item-title item-label">Auto complete</div>
            <div class="item-input-wrap">
              <input id="cars-autocomplete" type="text" />
            </div>
          </div>
        </li>
        <li class="item-content item-input">
          <div class="item-inner">
            <div class="item-title item-label">Select</div>
            <div class="item-input-wrap">
              <select>
                <option value="Volvo">Volvxxo</option>
                <option value="Saab">Saab</option>
                <option value="Mercedes">Mercedes</option>
                <option value="Audi">Audi</option>
              </select>
            </div>
          </div>
        </li>
      </ul>
    </div>
    <div>Footer content sadghasgdasd bmnabsdkjagsdbnmab nbsadnbasd ,m samdnasm,dn asdbnbAS ASMDNMNASBDN ASBDNBASmd asbdnBAMD ADBANSBDNMBDASDANM FINAL WORDS etc</div>
  </div>
</div>      	
      `
    }
  ]
});

var viewMain = app.views.create(".view-main");

              
            
!
999px

Console