You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
546 B
23 lines
546 B
var $$ = Dom7;
|
|
|
|
var os = new MobileDetect(navigator.userAgent).os();
|
|
var theme = os == "AndroidOS" ? "md" : "ios";
|
|
|
|
if (document.location.search.indexOf('theme=') >= 0) {
|
|
theme = document.location.search.split('theme=')[1].split('&')[0];
|
|
}
|
|
|
|
var app = new Framework7({
|
|
root: '#app',
|
|
theme: theme,
|
|
cache: false,
|
|
cacheDuration: 0,
|
|
routes: [
|
|
{
|
|
path: '(.*)',
|
|
async: function (routeTo, routeFrom, resolve, reject) {
|
|
resolve({ url: routeTo.url });
|
|
}
|
|
}
|
|
]
|
|
}); |