Commit 97674dd2 by doszhang

dos

parent 8f7477ad
......@@ -130,17 +130,10 @@ function initPage() {
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');
let displacement = parseFloat(transformTop);
if (displacement > 0) {
let height = 1238 + displacement;
$('.wrap-inner,.page').css('height', height + 'rem');
}
// const headerHeight = 313;
// 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