blob: 7a0c06f51a15ca4b932013fce692ee7bcf90bb35 [file] [log] [blame]
<!DOCTYPE html>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<html>
<head>
<meta name="viewport" content="width=device-width,height=device-height,user-scalable=no,initial-scale=1.0" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> <!-- ISO-8859-1 -->
<title>Lazy-Loading of cordova-incl.js test</title>
<link rel="stylesheet" href="../master.css" type="text/css" media="screen" title="no title" charset="utf-8"/>
<script>_doNotWriteCordovaScript = true</script>
<script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
<script type="text/javascript" charset="utf-8">
function init() {
document.addEventListener("deviceready", function() {
console.log("Device="+device.platform+" "+device.version);
document.getElementById('info').innerHTML = 'Cordova loaded just fine.';
}, false);
window.setTimeout(function() {
var s = document.createElement('script');
s.src = cordovaPath;
document.body.appendChild(s);
}, 0);
}
</script>
</head>
<body onload="init();" id="stage" class="theme">
<h1>Lazy-Loading of cordova-incl.js</h1>
<div id="info">
onDeviceReady has not yet fired.
</div>
<h2> </h2><div class="backBtn" onclick="backHome();">Back</div>
</body>
</html>