This repository was archived by the owner on Jan 31, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments