Book Image

JavaScript Mobile Application Development

Book Image

JavaScript Mobile Application Development

Overview of this book

Table of Contents (15 chapters)
JavaScript Mobile Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Finalizing the Cordova Exhibition app


The last part we need to check is index.html; the following code snippet shows this part, which is the most important, of the index.html page:

<!DOCTYPE html>
<html>
    <head>
        <!-- omitted code ... -->
        <link rel="stylesheet" type="text/css" href="css/app.css" />
        <link rel="stylesheet" href="jqueryMobile/jquery.mobile-1.4.0.min.css">

        <script src="jqueryMobile/jquery-1.10.2.min.js"></script>
        <script src="jqueryMobile/jquery.mobile-1.4.0.min.js"></script>

        <script>
            var deviceReadyDeferred = $.Deferred();
            var jqmReadyDeferred = $.Deferred();
                                                     
            $(document).ready(function() {
                document.addEventListener("deviceready", function() {
                    deviceReadyDeferred.resolve();
                }, false);
            });
            
      ...