Commit 03ef18c3 by doszhang

dos

parent 2991f0db
...@@ -220,6 +220,8 @@ $(document).ready(function () { ...@@ -220,6 +220,8 @@ $(document).ready(function () {
}); });
// $('.logo').css('top',getTranslateDistance(15)); // $('.logo').css('top',getTranslateDistance(15));
initPage();
$('.flag-list-content').attr('id', 'flag-list-content'); $('.flag-list-content').attr('id', 'flag-list-content');
colorbarLeft = $('.colorbar').offset().left; colorbarLeft = $('.colorbar').offset().left;
new Sortable(document.getElementById('flag-list-content'), { new Sortable(document.getElementById('flag-list-content'), {
...@@ -320,6 +322,13 @@ $(document).ready(function () { ...@@ -320,6 +322,13 @@ $(document).ready(function () {
$('.suggest-page .btn-next').on('click', showCountDownPage); $('.suggest-page .btn-next').on('click', showCountDownPage);
}); });
function initPage() {
let displacement = parseInt(getTranslateDistance());
if (displacement > 0) {
console.log(displacement);
}
}
function showPage1() { function showPage1() {
if (homeNext) { if (homeNext) {
homeNext = false; homeNext = false;
......
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