// Initialize your app var myApp = new Framework7(); // Export selectors engine var $$ = Dom7; // Add view var mainView = myApp.addView('.view-main', { // Because we use fixed-through navbar we can enable dynamic navbar dynamicNavbar: true }); // Callbacks to run specific code for specific pages, for example for About page: myApp.onPageInit('about', function (page) { // run createContentPage func after link was clicked $$('.create-page').on('click', function () { createContentPage(); }); }); // Generate dynamic page var dynamicPageIndex = 0; function createContentPage() { mainView.router.loadContent( '' + '' + '
' + ' ' + '
' + ' ' + '
' + '
' + '
' + '

Here is a dynamic page created on ' + new Date() + ' !

' + '

Go back or go to Services.

' + '
' + '
' + '
' + '
' + '
' ); return; }