a bit more readable javascript

This commit is contained in:
2011-11-01 23:17:37 +00:00
parent 18392d8dad
commit be019eff08

View File

@@ -1,5 +1,10 @@
$(document).ready(function(){
if (navigator.userAgent.match(/Mobile.*Safari|Safari.*Mobile/i) !== null || navigator.userAgent.match(/Safari/) == null) {
$("body").css("position", "static").css("overflow-y", "auto").css("overflow-x", "auto").css("right", "");
if (navigator.userAgent.match(/Mobile.*Safari|Safari.*Mobile/i) !== null ||
navigator.userAgent.match(/Safari/) == null) {
$("body")
.css("position", "static")
.css("overflow-y", "auto")
.css("overflow-x", "auto")
.css("right", "");
};
});
});