This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Browser: { | |
//holder for jQuery objects | |
$: {}, | |
/* | |
detectTouch(); | |
*/ | |
detectTouch: function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var wWidth = document.body.clientWidth, | |
wHeight = window.innerHeight, | |
sWidth = screen.width, | |
sHeight = screen.height, | |
touch = 'ontouchstart' in window || 'onmsgesturechange' in window, | |
html = '<div id="stopen" style="line-height: 1em; font-weight: bold; padding: 10px;">?</div>' + | |
'<div id="ststats" style="display: none; width: 140px; padding: 10px;">' + | |
'Browser Width: <strong id="stwwidth">' + wWidth + '</strong><br>' + | |
'Browser Height: <strong id="stwheight">' + wHeight + '</strong><br>' + |