Timer logic — Entry point

Entry point, jQuery ready function.

 1// The app module
 2;(function() {
 3  // jQuery ready callback
 4  $(function() {
 5
 6    // default page transition
 7    $.mobile.defaultPageTransition = 'slide';
 8
 9    // init the timer value
10    $('#timer').html('25:00');
11  });
12})(); // end of the app module

What’s next? We’re going to take a look at “Timer logic — Timer ticker”.

overlaied image when clicked on thumbnail

Makzan | Mobile web app dev with phonegap | Table of Content