Fetching contributors…
Cannot retrieve contributors at this time
109 lines (103 sloc) 4.1 KB
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<title>Cordova Test App</title>
<style type="text/css">
div { text-align: "center"; display: "block"}
<h2><img src="images/cordova_logo_normal_dark.png" /></h2>
<ul id="debuglist">Debug Output</ul>
<!-- Camera -->
<input onclick="getPicture()" type="submit" value="Camera.getPicture">
<img src="" id="picture" width="128">
<!-- Geolocation -->
<input onclick="getCurrentPosition()" type="submit" value="GeoLocation.GetLastKnownLocation">
<input onclick="toggleWatchPosition(this)" type="submit" value="GeoLocation.StartWatching">
<div id="geolocation" style="display:none;">
altitude: 0,longitude: 0, altitude: 0
<!-- Accelerometer -->
<input onclick="getCurrentAcceleration()" type="submit" value="Accelerometer.getCurrentAcceleration">
<input onclick="toggleStartAcceleration(this)" type="submit" value="Accelerometer.watchAcceleration">
<div id="accelerometer" style="display:none;">
x: 0, y: 0, z: 0, timestamp: 0
<!-- Compass -->
<input onclick="getCurrentHeading()" type="submit" value="Compass.getCurrentHeading">
<input onclick="toggleStartCompass(this)" type="submit" value="Compass.watchHeading">
<div id="compass" style="display:none;">
x: 0, y: 0, z: 0, timestamp: 0
<!-- Network -->
<input onclick="hostIsReachable('')" type="submit" value="Network.isReachable">
<div id="network" style="display:none;">
Network Information
<!-- Device -->
<input onclick="getSystemInfo()" type="submit" value="Device.GetSystemInfo">
<div id="system" style="display:none;">
System Information
<!-- DebugConsole -->
<input type="text" id="log_statement" />
<input onclick="Log()" type="submit" value="console.log">
<!-- Contact -->
<input onclick="createContact()" type="submit" value="Contact.create">
<input onclick="saveContact()" type="submit" value="">
<input onclick="findContact()" type="submit" value="Contact.find">
<input onclick="removeContacts()" type="submit" value="Contact.remove">
<!-- Notification -->
<input onclick="notificationAlert()" type="submit" value="Notification.alert">
<input onclick="notificationConfirm()" type="submit" value="Notification.confirm">
<input onclick="notificationVibrate()" type="submit" value="Notification.vibrate">
<input onclick="notificationBeep()" type="submit" value="Notification.beep">
<script type="text/javascript" src="cordova/cordova.js"></script>
<script type="text/javascript" src="main.js"></script>