1document.addEventListener('DOMContentLoaded', function() { 2 3 var body = document.getElementsByTagName('body'); 4 var loadScreen = document.getElementById('js-loadding-screen'); 5 6 if( loadScreen == null ) return; 7 8 // adjust window height 9 loadScreen.style.height = window.innerHeight; 10 // window.addEventListener('resize', function(){ 11 // loadScreen.style.height = window.innerWidth; 12 // }); 13 14 // register custom event 15 var EndLoading = new Event('tcd_end_loading'); 16 17 // animation start 18 setTimeout( function(){ 19 loadScreen.classList.add('is-start'); 20 }, 100 ); 21 22 // Fires a few seconds later 23 $loadTime = parseFloat( loadScreen.dataset.time ); 24 if(loadScreen.classList.contains('p-loading-screen--splash')){ 25 $loadTime = $loadTime + 1000; 26 } 27 28 // Processing after reading 29 setTimeout( function(){ 30 loadScreen.classList.remove('is-start'); 31 body[0].classList.add('close_loading_screen'); 32 window.dispatchEvent(EndLoading); 33 }, $loadTime ); 34 35}); 36 37// ã¢ãã¡ã¼ã·ã§ã³å¯¾ç 38window.addEventListener( "tcd_end_loading", function(){ 39 var loadAnimation = document.querySelector('.p-loading-animation-target'); 40 if( loadAnimation ){ 41 setTimeout( function(){ 42 loadAnimation.classList.remove('p-loading-animation-target'); 43 }, 2000 ); 44 } 45});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.