forked from fynjah/PhoneJS-TipCalculator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
25 lines (19 loc) · 729 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"use strict";
window.TipCalculator = {};
$(function() {
document.addEventListener("deviceready", function() { navigator.splashscreen.hide(); });
TipCalculator.app = new DevExpress.framework.html.HtmlApplication({
namespace: TipCalculator,
defaultLayout: "empty"
});
// enable iOS7 theme
var device = DevExpress.devices.current(),
iosVersion = DevExpress.devices.iosVersion();
if(device.platform === "ios" && iosVersion && iosVersion[0] === 7) {
$(".dx-viewport")
.removeClass("dx-theme-ios")
.addClass("dx-theme-ios7");
}
TipCalculator.app.router.register(":view", { view: "home" });
TipCalculator.app.navigate();
});