1window.$ = window.jQuery; 2$(window).ready(function() { 3 // open modals 4 $(".modal-link").each((i, link) => { 5 $(link).on("click", function(event) { 6 event.preventDefault(); 7 const ref = $(link).attr("data-ref"); 8 if(ref) { 9 $(`#${ref}`).addClass("active"); 10 } 11 else if($(link).hasClass("sign-up-socials")) { 12 $("#sign-up-modal").addClass("active"); 13 } 14 }); 15 }) 16 17 // close modals 18 $(".close").each((i, bttn) => { 19 $(bttn).on("click", function() { 20 $(bttn).parents(".pg-modal").removeClass("active"); 21 }) 22 }) 23 24 // Burger Menu 25 $(".burger-menu").on("click", function() { 26 $(".burger-menu").toggleClass("active"); 27 $(".burger-menu-nav").toggleClass("active"); 28 }) 29 30 // Header on Scroll 31 $(window).on("scroll", headerScroll); 32 function headerScroll() { 33 if(window.scrollY > (window.innerHeight / 2)) { 34 $("header").addClass("scrolling"); 35 } 36 else { 37 $("header").removeClass("scrolling"); 38 } 39 } 40 headerScroll(); 41 42 // Page Transition // 43 $("#page-transition").addClass("hide"); // on page load 44 45 $("a").each((i, anchor) => { 46 $(anchor).on("click", function(event) { 47 if(!$(this).attr("target") == "_blank" || $(this).attr("target") == undefined) { 48 event.preventDefault(); 49 $("#page-transition").removeClass("hide"); 50 51 setTimeout(() => { 52 const path = $(anchor).attr("href"); 53 if(path.includes("http")) { 54 window.location = path; 55 } 56 else { 57 window.location = window.location.origin + path; 58 } 59 }, 1100); 60 } 61 }) 62 }) 63}); 64 65// Page Transitions - Back Button // 66window.onpageshow = function(event) { 67 if(event.persisted) { 68 $("#page-transition").addClass("hide"); 69 } 70};
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.