Commit 71e2d440 by doszhang

dos

parent 39de6fc8
......@@ -130,11 +130,14 @@ function initPage() {
bottom: transformTop
});
let displacement = parseFloat(transformTop);
const displacement = parseFloat(transformTop);
console.log(displacement);
if (displacement > 0) {
let height = 1238 + displacement;
$('.wrap-inner,.page').css('height', height + 'px');
const scale = document.documentElement.clientHeight / $('.page').height();
$('.page').css({
'transform': 'translate(-50%,-50%) scale(1,' + scale + ')'
});
}
// 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