|
|
|
@ -35,13 +35,8 @@
|
|
|
|
|
// Stuff which is good to do very early so as to avoid visual glitches.
|
|
|
|
|
|
|
|
|
|
(function() {
|
|
|
|
|
var paneContentPaddingTop,
|
|
|
|
|
touchDevice;
|
|
|
|
|
try {
|
|
|
|
|
paneContentPaddingTop = localStorage.getItem('paneContentPaddingTop');
|
|
|
|
|
var paneContentPaddingTop = localStorage.getItem('paneContentPaddingTop'),
|
|
|
|
|
touchDevice = localStorage.getItem('touchDevice');
|
|
|
|
|
} catch(ex) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( typeof paneContentPaddingTop === 'string' ) {
|
|
|
|
|
document.querySelector('.paneContent').style.setProperty(
|
|
|
|
@ -55,10 +50,7 @@
|
|
|
|
|
document.addEventListener('touchstart', function onTouched(ev) {
|
|
|
|
|
document.removeEventListener(ev.type, onTouched);
|
|
|
|
|
document.body.setAttribute('data-touch', 'true');
|
|
|
|
|
try {
|
|
|
|
|
localStorage.setItem('touchDevice', 'true');
|
|
|
|
|
} catch(ex) {
|
|
|
|
|
}
|
|
|
|
|
localStorage.setItem('touchDevice', 'true');
|
|
|
|
|
resizePopup();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
@ -75,10 +67,7 @@ var resizePopup = (function() {
|
|
|
|
|
paneContent = doc.querySelector('.paneContent');
|
|
|
|
|
if ( paddingTop !== paneContent.style.paddingTop ) {
|
|
|
|
|
paneContent.style.setProperty('padding-top', paddingTop);
|
|
|
|
|
try {
|
|
|
|
|
localStorage.setItem('paneContentPaddingTop', paddingTop);
|
|
|
|
|
} catch(ex) {
|
|
|
|
|
}
|
|
|
|
|
localStorage.setItem('paneContentPaddingTop', paddingTop);
|
|
|
|
|
}
|
|
|
|
|
document.body.classList.toggle(
|
|
|
|
|
'hConstrained',
|
|
|
|
|