File manager - Edit - /home/missmand/public_html/gameapp/js/index.js
Back
$(document).ready(function() { document.body.style.zoom = 1.4;//1 / window.devicePixelRatio; $('.intro_container').show(); //resize(); //$(window).resize(resize); //Init player data var player = window.localStorage.getItem('player'); //if (player == null) //{ player = { avatar: -1, name: 'test nom', gauge: [10, 10, 10, 10, 10, 10], mission: [false, false, false]}; window.localStorage.setItem('player', JSON.stringify(player)); //} //else // player = JSON.parse(player); $('.start_btn').click(function() { if (player.avatar < 0) document.location.href = 'avatar.html'; else document.location.href = 'select.html'; }) }); function resize() { var intro = $('.intro_container'); var h = $('body').height(); console.log(h); console.log(intro.height()); intro.css('margin-top', ((h-intro.height() - 60)/2) + 'px'); }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings