diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-05-18 17:02:57 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-08-15 20:01:29 +0200 |
| commit | b15b0b1177dfc3823036613477a681b186f1a9a6 (patch) | |
| tree | 7a2f4ccab33e67654d78c51411fb4068d19e59a6 | |
| parent | f9a9c9dd8804da8abd9d443769438e0a15f94025 (diff) | |
| download | wvs-vplan-b15b0b1177dfc3823036613477a681b186f1a9a6.tar.gz wvs-vplan-b15b0b1177dfc3823036613477a681b186f1a9a6.zip | |
iOS 7 Statusbar Fix
| -rw-r--r-- | css/index.css | 4 | ||||
| -rw-r--r-- | index.html | 1 | ||||
| -rw-r--r-- | js/index.js | 5 |
3 files changed, 9 insertions, 1 deletions
diff --git a/css/index.css b/css/index.css index 17ff626..6503ac8 100644 --- a/css/index.css +++ b/css/index.css @@ -53,3 +53,7 @@ body { .pdfpage { overflow: auto; } + +body.iOS7 { + -webkit-transform: translate3d(0, 20px, 0); +} @@ -20,7 +20,6 @@ <head> <meta charset="utf-8" /> <meta name="format-detection" content="telephone=no" /> - <!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 --> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" /> <link rel="stylesheet" type="text/css" href="css/index.css" /> <link rel="stylesheet" type="text/css" href="css/jquery.mobile-1.4.2.min.css" /> diff --git a/js/index.js b/js/index.js index 28f5a58..505020a 100644 --- a/js/index.js +++ b/js/index.js @@ -147,6 +147,11 @@ $('#mainpage').on('pagebeforeshow', function(){ // Login-Popup beim Start document.addEventListener('deviceready', function(){ + /* iOS fix */ + if(window.device && parseFloat(window.device.version) >= 7.0) { + $('body').addClass('iOS7'); + } + /* los geht's */ _paq.push(['setCustomVariable', 1, 'Modell', device.model, 'visit']); _paq.push(['setCustomVariable', 2, 'Version', device.version, 'visit']); |
