Commit 97674dd2 by doszhang

dos

parent 8f7477ad
...@@ -130,17 +130,10 @@ function initPage() { ...@@ -130,17 +130,10 @@ function initPage() {
bottom: transformTop bottom: transformTop
}); });
var fixHeight = ($('.page').height() - document.documentElement.clientHeight) / 2; let displacement = parseFloat(transformTop);
$('.saveTip').css('bottom', fixHeight + 'px'); if (displacement > 0) {
if ($('.page').height() < document.documentElement.clientHeight) { let height = 1238 + displacement;
var scale = document.documentElement.clientHeight / $('.page').height(); $('.wrap-inner,.page').css('height', height + 'rem');
$('.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 headerHeight = 313;
// const logoHeight = parseFloat($('.logo').css('height')); // const logoHeight = parseFloat($('.logo').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