-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnextpage.html
44 lines (39 loc) · 1.47 KB
/
nextpage.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, target-densitydpi=device-dpi" />
<!--<link rel="stylesheet" type="text/css" href="css/index.css" />-->
<title>Hello World</title>
<script type="text/javascript" src="cordova.js"></script>
<script src="http://debug.phonegap.com/target/target-script-min.js#792338BE-BCEC-4C83-BD43-B408F03FC2D9"></script>
<script type="text/javascript" src="js/jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="js/jquery.mobile-1.3.2.min.js"></script>
<script type="text/javascript">
//app.initialize();
console.log("Orientation: " + window.orientation + " degrees");
$(document).ready(function() {
$("#win-width").text($(window).width() + 'px');
$("#win-height").text($(window).height() + 'px');
$(window).orientationchange(function(e) {
console.log("Orientation changed to " + e.orientation);
window.orientation = 0;
});
});
$(window).orientationchange(function(e) {
console.log("Orientation changed to " + e.orientation);
window.orientation = 0;
});
</script>
</head>
<body>
<div class="app">
<h1>Information</h1>
<ul>
<li>Window Width: <span id="win-width"></span></li>
<li>Window Height: <span id="win-height"></span></li>
</ul>
</div>
</body>
</html>