This repository was archived by the owner on Jan 31, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.html
More file actions
31 lines (28 loc) · 1.34 KB
/
default.html
File metadata and controls
31 lines (28 loc) · 1.34 KB
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Reusable Helpers Module</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" language="javascript" src="js/app.helpers.js"></script>
</head>
<body>
<script type="text/javascript" language="javascript">
$(function() {
var helper = APP.device;
$('.supports-touch .result').text(helper.supportsTouch);
$('.screen-view .result').text(helper.isSmallScreen);
$('.screen-orientation .result').text(helper.orientation);
$('.retina .result').text(helper.isRetina);
$('.connection-type .result').text(helper.connectionType);
})($);
</script>
<ul>
<li class="supports-touch">Supports touch: <span class="result"></span></li>
<li class="screen-view">Is small screen (<= 480px): <span class="result"></span></li>
<li class="screen-orientation">Screen Orientation (inconsistent results cross device): <span class="result"></span></li>
<li class="retina">Is retina display: <span class="result"></span></li>
<li class="connection-type">Connection type: <span class="result"></span></li>
</ul>
</body>
</html>