-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
72 lines (60 loc) · 2.88 KB
/
index.html
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="apple-touch-startup-image" href="lib/durandal/img/ios-startup-image-landscape.png" media="(orientation:landscape)" />
<link rel="apple-touch-startup-image" href="lib/durandal/img/ios-startup-image-portrait.png" media="(orientation:portrait)" />
<link rel="apple-touch-icon" href="lib/durandal/img/icon.png"/>
<link rel="stylesheet" href="lib/jquery/css/jquery.mobile-1.3.2.css" />
<link rel="stylesheet" href="css/ie10mobile.css" />
<link rel="stylesheet" href="lib/durandal/css/durandal.css" />
<script type="text/javascript">
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
var msViewportStyle = document.createElement("style");
var mq = "@@-ms-viewport{width:auto!important}";
msViewportStyle.appendChild(document.createTextNode(mq));
document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
}
</script>
</head>
<body>
<div id="applicationHost">
</div>
<script src="lib/jquery/js/jquery-2.0.3.js"></script>
<script src="lib/jquery/js/jquery-migrate-1.2.1.js"></script>
<script src="lib/knockout/knockout-2.3.0.debug.js"></script>
<script src="lib/knockout/knockout.jqmListview.js"></script>
<script type="text/javascript">
$(document).bind("mobileinit", function () {
$.mobile.ajaxEnabled = false;
$.mobile.linkBindingEnabled = false;
$.mobile.hashListeningEnabled = false;
$.mobile.pushStateEnabled = false;
$.mobile.pageContainer = $('#applicationHost');
});
$(document).on("pagecreate", "#pageContainer", function () {
console.log('Index - pagecreate div: pageContainer');
});
$(document).on('pagecreate', '[data-role=page]', function (event, data) {
console.log('Index - pagecreate data-role: page');
});
$(document).on('pageinit', '[data-role=page]', function (event, data) {
console.log('Index - pageinit data-role: page');
});
$(document).on('pagebeforeshow', '[data-role=page]', function (event, data) {
console.log('Index - pagebeforeshow data-role: page');
});
$(document).on('pageshow', '[data-role=page]', function (event, data) {
console.log('Index - pageshow data-role: page');
});
</script>
<script src="lib/jquery/js/jquery.mobile-1.3.2.js"></script>
<script src="lib/require/require.js" data-main="app/main"></script>
</body>
</html>