Commit 1f29b703 by doszhang

dos

parent e887dd0c
......@@ -65,6 +65,7 @@ let noInfo = {
height: 12
}
let createPosterLock = false;
preloadimages(preloadImageList, function () {
......@@ -131,6 +132,17 @@ $(document).ready(function () {
$('.poster-page .btn-change').on('click', changePoster);
});
function initPage() {
const headerHeight = 313;
const logoHeight = parseFloat($('.logo').css('height'));
const inputHeight = parseFloat($('.input-wrapper').css('height'));
const transformTop = parseFloat(getTranslateDistance());
const spacing = (headerHeight - transformTop - logoHeight - inputHeight) / 3;
$('.logo').css('top', spacing + 'px');
$('.input-wrapper').css('top', spacing * 2 + logoHeight);
}
function changePoster() {
let name = $('input[name=name]').val();
let business = $('input[name=business]').val();
......
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