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.


                  <div class="view view-main navbar-fixed">

<script id="page-tpl" type="x-template/underscore">     
        <div class="navbar">
          <div class="navbar-inner">
            {{#if level}}
            <div class="left">
              <a href="#" class="link icon-only back">
                <i class="icon icon-back"></i>
            <div class="title">Page - Level {{level}}</div>        
        <div class="page-content">
          <div class="full-page display-flex justify-content-center show">
            <div class="align-self-center">
              <input type="checkbox" unchecked/ id="my-toggle-1">
          <div class="block-title"> {{message}}</div>
          <div class="list links-list">
                <a href="#" class="next-link">Next Page</a>


                .full-page {
  height: 100%;


                var f7App = new Framework7({});
var f7View = f7App.views.create(".view-main", {
  stackPages: true

var $ = Dom7

var template = Template7.compile(Dom7("#page-tpl").html());

function createPageEl(data) {
  var el = document.createElement("div");
  el.className = "page";
  el.innerHTML = template(data);
  var link = el.querySelector(".next-link");
  link.addEventListener("click", function() {
      message: "Hello Again",
      level: data.level + 1
  return el;

var showPage = function(data) {
  var nextPageEl = createPageEl(data);
      el: nextPageEl,
      context: 'test'
      route: {
        route: {}

  message: "Hello World",
  level: 0

$('#my-toggle-1').on('change', function () {
//  msgTest();