1//Scripts specifically for the homepage 2(function ($) { 3 4 // Homepage-specific global variables 5 var enablePreloader = true; 6 var preloaderDuration = 5000; 7 8 //Document Ready = DOM is ready but content is not necessarily loaded 9 $(document).ready(function () { 10 console.log('here'); 11 // Handle preloader 12 if (enablePreloader && $("#preloader").exists() && !localStorage.getItem("preloaderFinishedLoading")) { 13 startPreloader(); 14 } else { 15 // Preloader not enabled; remove the element, if it exists 16 $("#preloader").remove(); 17 } 18 19 // Begins preloader functionality and animations 20 function startPreloader() { 21 $("#preloader, .preloader-part").addClass('active'); 22 23 anime({ 24 targets: ".preloader-part-right p", 25 opacity: [0, 1], 26 translateY: [60, 0], 27 duration: 1200, 28 loop: false, 29 easing: "easeOutSine", 30 delay: anime.stagger(500, { start: 700 }), 31 }); 32 33 setTimeout(finishPreloader, preloaderDuration); 34 } 35 36 // Begins preloader exit; ensures it does not reappear in the session 37 function finishPreloader() { 38 // Set localStorage variable for this session 39 localStorage.setItem("preloaderFinishedLoading", 1); 40 41 // Begin preloader exit 42 $("#preloader").addClass("preloader-remove"); 43 44 setTimeout(function () { 45 // At this point, preloader fade-out must be complete 46 $("#preloader").remove(); 47 }, 1500); 48 } 49 }); 50})(jQuery);
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.