2010-01-27 05:54:02 +08:00
|
|
|
<!DOCTYPE HTML>
|
2009-07-10 05:05:26 +08:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta name="viewport" content="width=320; user-scalable=no" />
|
|
|
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
|
|
|
<title>PhoneGap</title>
|
|
|
|
<link rel="stylesheet" href="master.css" type="text/css" media="screen" title="no title" charset="utf-8">
|
2010-12-16 03:24:01 +08:00
|
|
|
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
|
|
|
|
<script type="text/javascript" charset="utf-8" src="main.js"></script>
|
2009-07-10 05:05:26 +08:00
|
|
|
|
|
|
|
</head>
|
|
|
|
<body onload="init();" id="stage" class="theme">
|
|
|
|
<h1>Welcome to PhoneGap!</h1>
|
2011-02-01 09:51:15 +08:00
|
|
|
<h2>this file is located at assets/www/index.html</h2>
|
2009-07-10 05:05:26 +08:00
|
|
|
<div id="info">
|
2010-12-16 03:24:01 +08:00
|
|
|
<h4>Platform: <span id="platform"> </span>, Version: <span id="version"> </span></h4>
|
|
|
|
<h4>UUID: <span id="uuid"> </span>, Name: <span id="name"> </span></h4>
|
|
|
|
<h4>Width: <span id="width"> </span>, Height: <span id="height">
|
|
|
|
</span>, Color Depth: <span id="colorDepth"></span></h4>
|
|
|
|
</div>
|
2009-07-10 05:05:26 +08:00
|
|
|
<dl id="accel-data">
|
|
|
|
<dt>X:</dt><dd id="x"> </dd>
|
|
|
|
<dt>Y:</dt><dd id="y"> </dd>
|
|
|
|
<dt>Z:</dt><dd id="z"> </dd>
|
|
|
|
</dl>
|
2010-12-16 03:24:01 +08:00
|
|
|
<a href="#" class="btn large" onclick="toggleAccel();">Toggle Accelerometer</a>
|
2009-07-10 05:05:26 +08:00
|
|
|
<a href="#" class="btn large" onclick="getLocation();">Get Location</a>
|
|
|
|
<a href="tel://411" class="btn large">Call 411</a>
|
2009-11-10 09:30:52 +08:00
|
|
|
<a href="#" class="btn large" onclick="beep();">Beep</a>
|
|
|
|
<a href="#" class="btn large" onclick="vibrate();">Vibrate</a>
|
|
|
|
<a href="#" class="btn large" onclick="show_pic();">Get a Picture</a>
|
2009-11-13 08:10:25 +08:00
|
|
|
<a href="#" class="btn large" onclick="get_contacts();">Get phone's contacts</a>
|
2009-11-10 09:30:52 +08:00
|
|
|
<div id="viewport" class="viewport" style="display: none;">
|
2009-08-01 06:17:10 +08:00
|
|
|
<img style="width:60px;height:60px" id="test_img" src="" />
|
|
|
|
</div>
|
2009-07-10 05:05:26 +08:00
|
|
|
</body>
|
2009-08-01 06:17:10 +08:00
|
|
|
</html>
|