Commit 8f7477ad by doszhang

dos

parent d0e80ce3
......@@ -128,7 +128,20 @@ function initPage() {
$('.bottom').css({
top: 'auto',
bottom: transformTop
})
});
var fixHeight = ($('.page').height() - document.documentElement.clientHeight) / 2;
$('.saveTip').css('bottom', fixHeight + 'px');
if ($('.page').height() < document.documentElement.clientHeight) {
var scale = document.documentElement.clientHeight / $('.page').height();
$('.page').not('.page8').css({
'transform': 'translate(-50%,-50%) scale(1,' + scale + ')'
});
}
if (fixHeight < 30) {
$('.top').css('margin-top', '-80px').addClass('fix');
$('.bottom').css('margin-top', '20px');
}
// const headerHeight = 313;
// const logoHeight = parseFloat($('.logo').css('height'));
// const inputHeight = parseFloat($('.input-wrapper').css('height'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment