mirror of
https://github.com/jimeh/jimeh.me-v3.0.git
synced 2026-02-19 05:46:40 +00:00
a bit more readable javascript
This commit is contained in:
@@ -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", "");
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user