Line 12: | Line 12: | ||
$('#loading_all').delay(300).hide(0); | $('#loading_all').delay(300).hide(0); | ||
setTimeout(function () { | setTimeout(function () { | ||
− | $(' | + | $('#ibody').removeClass("scoll_dis"); |
}, 300); | }, 300); | ||
$.fn.fullpage.setAllowScrolling(false, 'down'); | $.fn.fullpage.setAllowScrolling(false, 'down'); |
Revision as of 02:49, 15 October 2018
var _LoadingHtml = '<img style="position: absolute;top: calc(50% - 90px);left:calc(50% - 86px);height: 180px;width: 172px;z-index:9999999991;" src="">
';
document.write(_LoadingHtml); document.onreadystatechange = completeLoading; function completeLoading() {
document.documentElement.style.overflow = 'hidden'; if (document.readyState == "complete") { window.onbeforeunload = function () { document.documentElement.scrollTop = 0; document.body.scrollTop = 0; } $(window).load(function () { $('#loading_all').delay(300).hide(0); setTimeout(function () { $('#ibody').removeClass("scoll_dis"); }, 300); $.fn.fullpage.setAllowScrolling(false, 'down'); }); setTimeout(function () { var loadingMask = document.getElementById('loadingDiv'); loadingMask.classList.add('imgA-nav-gradient-back'); document.documentElement.style.overflowY = 'auto'; }, 3000);
setTimeout(function () { var loadingMask = document.getElementById('loadingDiv'); loadingMask.classList.remove('imgA-nav-gradient-back'); loadingMask.parentNode.removeChild(loadingMask); $.fn.fullpage.setAllowScrolling(true, 'down'); }, 4400); } function newFunction() { return false; }
}