Skip to Main Content
PhoneGap Build
book

PhoneGap Build

by Bintu Harwani
November 2013
Intermediate to advanced content levelIntermediate to advanced
303 pages
8h 45m
English
Auerbach Publications
Content preview from PhoneGap Build
212 ◾  PhoneGap Build
Listing 8.8 Code Written in the index.html File
<!DOCTYPE HTML>
<html>
<head>
<title>PhoneGap Application</title>
<script type = "text/javascript" charset = "utf-8" src = "cordova-2.3.0.js">
</script>
<script type = "text/javascript" src = "http://maps.google.com/maps/api/
js?sensor = false"></script>
<link href = "http://code.google.com/apis/maps/documentation/javascript/
examples/default.css" rel = "stylesheet" type = "text/css"/>
<script type = "text/javascript">
function onBodyLoad() {
document.addEventListener("deviceready", PhonegapLoaded, false);
}
function PhonegapLoaded(){
navigator.geolocation.getCurrentPosition(onSuccess, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning App Development with Parse and Phonegap

Beginning App Development with Parse and Phonegap

Wilkins Fernandez, Stephan Alber
Ajax For Dummies®

Ajax For Dummies®

PhD Steve Holzner

Publisher Resources

ISBN: 9781466589742