HTML5 APPLICATIONS DEVELOPMENT MANUAL

(lu) #1

We will use javascript to build our app, so we will create an external


javascript file, in the same location with the name javascript.js that we will


insert in our container with:


<script src="javascript.js"></script>

First we will get the geographic coordinates of the user. Since all this


will be inside jQuery we will start by declaring a function inside a jQuery


wrapper, so this will execute when the document is ready.


$(function () {


// jQuery methods go here...


});


Inside this function we are going to use the http://ipinfo.io/ ,where on

Free download pdf