forked from phonegap/phonegap-start
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
113 lines (93 loc) · 4.17 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!doctype html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width" />
<title>Training App</title>
<link rel="stylesheet" href="assets/css/master.css" type="text/css" media="screen" />
<script src="phonegap.js" type="text/javascript" charset="utf-8"></script>
<script src="assets/js/xui.js" type="text/javascript" charset="utf-8"></script>
<script src="assets/js/lawnchair/adaptors/LawnchairAdaptorHelpers.js" type="text/javascript" charset="utf-8"></script>
<script src="assets/js/lawnchair/adaptors/DOMStorageAdaptor.js" type="text/javascript" charset="utf-8"></script>
<script src="assets/js/lawnchair/adaptors/WebkitSQLiteAdaptor.js" type="text/javascript" charset="utf-8"></script>
<script src="assets/js/lawnchair/Lawnchair.js" type="text/javascript" charset="utf-8"></script>
<script src="assets/js/dsl.js" type="text/javascript" charset="utf-8"></script>
<script src="assets/js/app.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id="title_bar">Phone<strong>Gap</strong> Training App</div>
<div id="welcome" class="view">
<div class="app_button" id="map_button">Show My Location</div>
<div class="app_button" id="settings_button">Settings</div>
<div class="app_button" id="videos_button">Videos</div>
<div class="app_button" id="gmap_button">Gmap</div>
</div>
<div id="map" class="view">
<div class="map_image">
<img id="static_map" src="assets/img/staticmap.png">
</div>
<p>This is where you are</p>
<div class="app_button" id="welcome_button">Go Back</div>
</div>
<div id="settings" class="view">
<form id="settings_form">
<fieldset>
<legend>Map Type</legend>
<input type="radio" name="map" value="roadmap" checked>Road Map<br/>
<input type="radio" name="map" value="satellite">Satellite<br/>
<input type="radio" name="map" value="terrain">Terrain<br/>
<input type="radio" name="map" value="hybrid">Hybrid<br/>
</fieldset>
<fieldset>
<legend>Zoom Level</legend>
<input type="radio" name="zoom" value="10">Super Far<br/>
<input type="radio" name="zoom" value="12">Far<br/>
<input type="radio" name="zoom" value="15" checked>Normal<br/>
<input type="radio" name="zoom" value="18">Close<br/>
<input type="radio" name="zoom" value="20">Super Close<br/>
</fieldset>
<button id="save_button">Save</button>
</form>
</div>
<div id="videos" class="view">
<div id='play_video_button' class="vid_image">
<img id="static_map" src="assets/img/video1.jpg">
<p>Watch the trailer</p>
</div>
<a href='http://www.youtube.com/embed/AxsjRmN9syc'>
<div class="vid_image">
<img id="static_map" src="assets/img/video2.jpg">
<p>Watch the behind the scenes stuff</p>
</div>
</a>
<div class="app_button" id="welcome_button">Go Back</div>
</div>
<div id="play_video" class="view">
<iframe id='video_player' width="560" height="315" src="http://www.youtube.com/embed/AxsjRmN9syc" frameborder="0" allowfullscreen></iframe>
<div class="app_button" id="welcome_button">Go Back</div>
</div>
<div id="gmap" class="view">
<div id='map_canvas' height='80%' width='80%' style='display:block;'>Google map here</div>
<a href="/ja vascript:Device.exec("openmap:q=http%253A//code.google.com/apis/kml/documentation/KML_Samples.kml');">google</a>
<div class="app_button" id="welcome_button">Go Back</div>
</div>
<script type="text/javascript">
window.mapReady = function(){
// you can go with map loaded
//initializeGmap();
//console.log('initialising Gmap');
};
function loadScript() {
var script = document.createElement('script');
script.type = 'text/javascript';
script.id = 'maps-script';
script.src = 'http://maps.googleapis.com/maps/api/js?sensor=false&' +
'callback=mapReady';
//callback is the name of function to call once map script loaded
document.body.appendChild(script);
console.log(script, 'added script');
}
//Call to load map script
loadScript();
</script>
</body>
</html>