From b15b0b1177dfc3823036613477a681b186f1a9a6 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 18 May 2014 17:02:57 +0200 Subject: iOS 7 Statusbar Fix --- css/index.css | 4 ++++ index.html | 1 - js/index.js | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) 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); +} diff --git a/index.html b/index.html index 556f7b0..41faa71 100644 --- a/index.html +++ b/index.html @@ -20,7 +20,6 @@ - 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']); -- cgit v1.3.1