-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
75 lines (62 loc) · 2.85 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
73
74
75
<!DOCTYPE html>
<html>
<head>
<title>Simple JQM App Model</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="Simple App">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="libs/jquery.mobile-1.4.5.css"/>
<!-- style override -->
<style type="text/css">
.invisible {
visibility: hidden;
}
</style>
</head>
<body >
<div id="mainWrapper" class="invisible">
<!-- external header used on all pages we will hide buttons dynamically -->
<header data-theme="b" data-role="header" data-title="Simple App" data-position="fixed">
<a id="btnHome" data-rel="back" data-transition="slide" class="ui-btn ui-shadow ui-corner-all ui-icon-arrow-l ui-btn-icon-notext ui-btn-inline" title="move back">back</a>
<h1></h1>
<a href="#info" id="btnInfo" class="ui-btn-right ui-btn ui-btn-inline
ui-btn-icon-notext ui-mini ui-corner-all
ui-icon-info" title="">Info</a>
</header><!-- end of header -->
<!-- this page will be displayed until jqm is initialized and we can load the actual start page -->
<section id="preinit" data-role="page" >
one moment please...
</section>
<!-- shared info dialog available on all pages -->
<section data-role="page" data-dialog="true" id="info" data-title="information">
<div data-role="header" data-theme="a">
<h1>Information</h1>
</div>
<div role="main" class="ui-content">
<p><b>This app is delivered as is.</b> <br>
It shows same ferocious JQM badassary in action.<br>
Published under Apache License, Version 2<br>
(c) 2015 Bilal Soylu
</p>
<a href="" data-rel="back" class="ui-btn ui-shadow ui-corner-all ui-btn-a">Got It</a>
</div>
</section>
</div>
<!-- require loads all other libraries we will trigger things by loading config.js to define the requirejs environment
config.js will, then, load start.js
-->
<script data-main="app/config" src="libs/require.js"></script>
<!-- catch all: after 5 seconds go to main page anyway as catch all when jqm loader has issues (this happens on some devices with jqm require)
it is a bug that would need to get fixed in jqm.
-->
<script type="text/javascript">
setTimeout(function(){
if (!require.defined("controllers/main_controll")) {
console.log("catch all triggered.");
$( ":mobile-pagecontainer" ).pagecontainer( "change", "app/pages/main.htm", { showLoadMsg: true } );
}
},5000)
</script>
</body>
</html>