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