Skip to content
Newer
Older
100644 158 lines (142 sloc) 5.81 KB
b0e1963 @wildabeast initial commit
authored Dec 3, 2009
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
30b7ff8 @wildabeast removed some unnecessary header elements from index.html
authored Dec 6, 2009
5 <title>PhoneGap Demo</title>
b0e1963 @wildabeast initial commit
authored Dec 4, 2009
6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
f942718 @wildabeast added telephony, updated sms
authored Dec 6, 2009
7 <script language="javascript" type="text/javascript" src="/usr/palm/frameworks/mojo/mojo.js" x-mojo-version="1"></script>
b0e1963 @wildabeast initial commit
authored Dec 4, 2009
8 <script language="javascript" type="text/javascript" src="phonegap.js"></script>
e416abc @wildabeast updated demo app
authored Dec 17, 2009
9 <script language="javascript" type="text/javascript" src="js/controller.js"></script>
10 <script language="javascript" type="text/javascript" src="js/emile.min.js"></script>
01a9b73 @wildabeast updated phonegap demo app
authored Dec 10, 2009
11 <link rel="stylesheet" href="assets/master.css" type="text/css" media="screen" title="no title" charset="utf-8">
12 <META NAME="Generator" CONTENT="Nokia WRT plug-in for Aptana Studio 2.0.0" />
b0e1963 @wildabeast initial commit
authored Dec 4, 2009
13 </head>
472aef4 @wildabeast styled up demo app
authored Dec 15, 2009
14 <body>
e416abc @wildabeast updated demo app
authored Dec 18, 2009
15 <div class="body" onload="init()">
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
16
01a9b73 @wildabeast updated phonegap demo app
authored Dec 11, 2009
17 <div class="header">phonegap demo</div>
e416abc @wildabeast updated demo app
authored Dec 18, 2009
18 <div><a href="#"><img src="assets/nitobi-avatar.png" class="nitobi-logo" /></a></div>
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
19
20 <div>
21 <div id="menu-accel" class="menu-item" onclick="changeView(event);"><span>Acceleration</span></div>
e416abc @wildabeast updated demo app
authored Dec 18, 2009
22 <div id="view-accel" class="view">
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
23
24 <div class="button" onclick="watchAccel()">watch</div>
25 <p>
26 <ul>
27 <li>X-Accel: <span id="accel_x"></span></li>
28 <li>Y-Accel: <span id="accel_y"></span></li>
29 <li>Z-Accel: <span id="accel_z"></span></li>
30 </ul>
31 </p>
32 <div class="button-small" onclick="back()">back</div>
33 </div>
b0e1963 @wildabeast initial commit
authored Dec 4, 2009
34 </div>
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
35
36 <div>
37 <div id="menu-camera" class="menu-item" onclick="changeView(event);"><span>Camera</span></div>
e416abc @wildabeast updated demo app
authored Dec 18, 2009
38 <div id="view-camera" class="view">
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
39 <div class="button" onclick="takePicture()">take picture</div>
40 <div id="preview"></div>
41 <div class="button-small" onclick="back()">back</div>
b0e1963 @wildabeast initial commit
authored Dec 4, 2009
42 </div>
43 </div>
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
44
45 <div>
46 <div id="menu-contacts" class="menu-item" class="menu-selected" onclick="changeView(event);"><span>Contacts</span></div>
e416abc @wildabeast updated demo app
authored Dec 18, 2009
47 <div id="view-contacts" class="view">
01a9b73 @wildabeast updated phonegap demo app
authored Dec 11, 2009
48 <p>
49 filter:&nbsp;<input id="contact-filter" name="contact-filter"/><br/>
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
50 <div class="button" onclick="getContacts()">get contacts</div>
01a9b73 @wildabeast updated phonegap demo app
authored Dec 11, 2009
51 </p>
52 <div id="contacts_list" class="contacts"></div>
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
53 <div class="button-small" onclick="back()">back</div>
b0e1963 @wildabeast initial commit
authored Dec 4, 2009
54 </div>
55 </div>
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
56
57 <div>
58 <div id="menu-location" class="menu-item" onclick="changeView(event);"><span>Location</span></div>
e416abc @wildabeast updated demo app
authored Dec 18, 2009
59 <div id="view-location" class="view">
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
60 <div class="button" onclick="getLocation()">watch location</div>
61 <p>
62 <ul>
63 <li>latitude: <span id="latitude">-</span></li>
64 <li>longitude: <span id="longitude">-</span></li>
65 <li>altitude: <span id="altitude">-</span></li>
66 <li>heading: <span id="heading">-</span></li>
67 <li>speed: <span id="speed">-</span></li>
68 <li>timestamp: <span id="timestamp">-</span></li>
69 </ul>
70 </p>
71 <div class="button-small" onclick="back()">back</div>
72 </div>
73 </div>
74
75 <div>
76 <div id="menu-maps" class="menu-item" onclick="changeView(event);"><span>Maps</span></div>
e416abc @wildabeast updated demo app
authored Dec 18, 2009
77 <div id="view-maps" class="view">
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
78 <div class="button" onclick="showMap()">show map</div>
79 <div class="button-small" onclick="back()">back</div>
80 </div>
81 </div>
82
83 <div>
84 <div id="menu-notify" class="menu-item" onclick="changeView(event);"><span>Notification</span></div>
e416abc @wildabeast updated demo app
authored Dec 18, 2009
85 <div id="view-notify" class="view">
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
86 <div class="button" onclick="notify('vib1')">vibrate 1</div>
87 <div class="button" onclick="notify('vib2')">vibrate 2</div>
88 <div class="button" onclick="notify('beep')">play beep</div>
89 <div class="button" onclick="notify('alert')">show alert</div>
90 <div class="button-small" onclick="back()">back</div>
91 </div>
b0e1963 @wildabeast initial commit
authored Dec 4, 2009
92 </div>
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
93
94 <div>
95 <div id="menu-orient" class="menu-item" onclick="changeView(event);"><span>Orientation</span></div>
e416abc @wildabeast updated demo app
authored Dec 18, 2009
96 <div id="view-orient" class="view">
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
97 <div class="button" onclick="watchOrientation()">watch orientation</div>
98 <p>Current orientation:&nbsp;<label id="orientation"> - </label></p>
99 <div class="button-small" onclick="back()">back</div>
100 </div>
101 </div>
102
103 <div>
104 <div id="menu-sms" class="menu-item" onclick="changeView(event);"><span>Sms</span></div>
e416abc @wildabeast updated demo app
authored Dec 18, 2009
105 <div id="view-sms" class="view">
01a9b73 @wildabeast updated phonegap demo app
authored Dec 11, 2009
106 <p>
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
107 number:<br/>
108 <input id="sms_number" type="text" /><br/>
b0e1963 @wildabeast initial commit
authored Dec 4, 2009
109 message:<br/>
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
110 <textarea id="sms_message" rows=3></textarea>
111 <div class="button" onclick="sendSMS()">send sms</div>
b0e1963 @wildabeast initial commit
authored Dec 4, 2009
112 <span id="sms_status"></span>
01a9b73 @wildabeast updated phonegap demo app
authored Dec 11, 2009
113 </p>
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
114 <div class="button-small" onclick="back()">back</div>
b0e1963 @wildabeast initial commit
authored Dec 4, 2009
115 </div>
116 </div>
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
117
118 <div>
119 <div id="menu-sound" class="menu-item" onclick="changeView(event);"><span>Sound</span></div>
e416abc @wildabeast updated demo app
authored Dec 18, 2009
120 <div id="view-sound" class="view">
01a9b73 @wildabeast updated phonegap demo app
authored Dec 11, 2009
121 <p>
e416abc @wildabeast updated demo app
authored Dec 18, 2009
122 <div class="button" onclick="soundCommand('play');">play</div>
123 <div class="button" onclick="soundCommand('pause');">pause</div>
124 <div class="button" onclick="soundCommand('stop');">stop</div>
01a9b73 @wildabeast updated phonegap demo app
authored Dec 11, 2009
125 </p>
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
126 <div class="button-small" onclick="back()">back</div>
127 </div>
128 </div>
129
130 <div>
131 <div id="menu-storage" class="menu-item" onclick="changeView(event);"><span>Storage</span></div>
e416abc @wildabeast updated demo app
authored Dec 18, 2009
132 <div id="view-storage" class="view">
133 <p>data:<input id="storage_string" type="text" /></p>
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
134 <div class="button" onclick="testStorage('store');">store data</div>
135 <div class="button" onclick="testStorage('clear');">clear data</div>
136 <div class="button" onclick="checkStorage()">check storage</div>
01a9b73 @wildabeast updated phonegap demo app
authored Dec 11, 2009
137 <p><label id="storage_output"></label></p>
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
138 <div class="button-small" onclick="back()">back</div>
139 </div>
b0e1963 @wildabeast initial commit
authored Dec 4, 2009
140 </div>
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
141
142 <div>
143 <div id="menu-tel" class="menu-item" onclick="changeView(event);"><span>Telephony</span></div>
e416abc @wildabeast updated demo app
authored Dec 18, 2009
144 <div id="view-tel" class="view">
01a9b73 @wildabeast updated phonegap demo app
authored Dec 11, 2009
145 <p>
146 number:&nbsp;<input id="phone_number" type="text" /><br/>
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
147 <div class="button" onclick="call()">call</div>
01a9b73 @wildabeast updated phonegap demo app
authored Dec 11, 2009
148 </p>
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
149 <div class="button-small" onclick="back()">back</div>
01a9b73 @wildabeast updated phonegap demo app
authored Dec 11, 2009
150 </div>
f942718 @wildabeast added telephony, updated sms
authored Dec 6, 2009
151 </div>
472aef4 @wildabeast styled up demo app
authored Dec 16, 2009
152
153 <div id="spacer" style="display:none"></div>
154
155 </div>
b0e1963 @wildabeast initial commit
authored Dec 4, 2009
156 </body>
157 </html>
158
Something went wrong with that request. Please try again.