Files
FE_Charts/mobile/www/js/app.js
dario-cfpt f2c26ce8c1 Add cordova device plugin and zoom in home page
The user can now zoom in/out the network graph in the home page with
two buttons.

Added the cordova device plugin to detect when the phone is ready and
the change the behavior of the backbutton on android.

Disabled the panel left swipe because of some scroll problems in
landscape mode.
2020-03-07 15:26:38 +01:00

25 lines
542 B
JavaScript

// Dom7
var $$ = Dom7;
// Framework7 App main instance
var app = new Framework7({
root: '#app', // App root element
id: 'net.dariogenga.fecharts', // App bundle ID
name: 'Fire Emblem Charts', // App name
theme: 'auto', // Automatic theme detection
// App root data
data: function () {
return {};
},
// App root methods
methods: {},
// App routes
routes: routes,
// panel: {
// swipe: "left"
// }
});
// Init/Create main view
var mainView = app.views.create('.view-main');