CodePen

HTML

            
              
            
          
!

CSS

            
              
            
          
!

JavaScript

            
              $(document).ready(function()
{
    console.log("*****document.ready and init.");

    // call init() to initialize data
    // it should be called only once. 
    // But when using PhoneGap, "DeviceReady" event is usually fired after this call. So use setTimeout().
    setTimeout("init()", 1000);
});
            
          
!
999px
Loading ..................