Revert "Stop using user agent to detect mobile devices. Use a media query and yepnope to load the appropriate css and customizations."

This commit is contained in:
Neil Lalonde
2013-12-09 16:28:11 -05:00
parent ef432902ce
commit 2596f7dec2
8 changed files with 148 additions and 95 deletions

View File

@@ -5,9 +5,7 @@
var $buo = function() {
var badAndroid = false,
haveJquery = (typeof($) !== 'undefined'),
ua = null;
var badAndroid = false, ua = null;
// Sometimes we have to resort to parsing the user agent string. :(
if (navigator && navigator.userAgent) {
@@ -55,11 +53,6 @@ var $buo = function() {
// shift the body down to make room for our notification div
document.body.style.marginTop = (div.clientHeight) + "px";
if (!haveJquery) {
var h = document.getElementsByTagName('html')[0];
h.className = h.className.replace(/(\s|^)css-loading(\s|$)/g, ' ');
}
};
$bu=$buo();