
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.
25 lines
542 B
JavaScript
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'); |