Skip to content
This repository was archived by the owner on Jan 31, 2018. It is now read-only.

Commit 2879148

Browse files
committed
new helper results added
1 parent 4d3609e commit 2879148

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

default.html

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,21 @@
1010
<body>
1111
<script type="text/javascript" language="javascript">
1212
$(function() {
13-
$('.supports-touch .result').text(APP.helpers.supportsTouch);
14-
$('.screen-view .result').text(APP.helpers.screenView);
15-
$('.screen-orientation .result').text(APP.helpers.orientation);
16-
$('.js-path .result').text(APP.helpers.jsPath);
17-
});
13+
var helper = APP.device;
14+
$('.supports-touch .result').text(helper.supportsTouch);
15+
$('.screen-view .result').text(helper.isSmallScreen);
16+
$('.screen-orientation .result').text(helper.orientation);
17+
$('.retina .result').text(helper.isRetina);
18+
$('.connection-type .result').text(helper.connectionType);
19+
})($);
1820
</script>
1921

2022
<ul>
21-
<li class="supports-touch">Supports touch: <span class="result"></span></li>
22-
<li class="screen-view">Screen View: <span class="result"></span></li>
23-
<li class="screen-orientation">Screen Orientation (inconsistent results): <span class="result"></span></li>
24-
<li class="js-path">JavaScript Path: <span class="result"></span></li>
23+
<li class="supports-touch">Supports touch: <span class="result"></span></li>
24+
<li class="screen-view">Is small screen (<= 480px): <span class="result"></span></li>
25+
<li class="screen-orientation">Screen Orientation (inconsistent results cross device): <span class="result"></span></li>
26+
<li class="retina">Is retina display: <span class="result"></span></li>
27+
<li class="connection-type">Connection type: <span class="result"></span></li>
2528
</ul>
2629

2730
</body>

0 commit comments

Comments
 (0)