MENU
index.html
By default, Cordova starts the app by serving the homepage /www/index.html. (We can change it to another file in config.xml.)
Erasing all the comments, /www/index.html originally looks like this. You will need to keep the 'cordova.js' script to use Cordova.
<!DOCTYPE html><html>
<head> <meta http-equiv="Content-Security-Policy"
content="default-src 'self' data:
gap: https://ssl.gstatic.com 'unsafe-eval';
style-src 'self' 'unsafe-inline'; media-src *;
img-src 'self' data: content:;"> <meta name="format-detection"
content="telephone=no"> <meta name="msapplication-tap-highlight"
content="no"> <meta name="viewport"
content="initial-scale=1, width=device-width,
viewport-fit=cover"> <link rel="stylesheet" type="text/css"
href="css/index.css"> <title>Hello World</title> </head> <body> <div class="app"> <h1>Apache Cordova</h1> <div id="deviceready" class="blink"> <p class="event listening">Connecting to Device</p> <p class="event received">Device is Ready</p> </div> </div> <script type="text/javascript" src="cordova.js"></script> <script type="text/javascript" src="js/index.js"></script> </body></html>
Refer to 2.5.5 and 2.1.2 for information on how to use the 'Content-Security-Policy' and 'viewport' <meta> tags.