1jQuery(document).ready(function($) { 2 $(".zoom-button-effect .elementskit-btn,.zoom-button-effect .keydesign-button").each(function() { 3 $(this).contents().filter(function() { 4 return this.nodeType === 3 && $.trim(this.nodeValue) !== ''; 5 }).each(function() { 6 $(this).replaceWith('<span>' + $(this).text() + '</span>'); // Wrap text node in <span> 7 }); 8 $(this).wrapInner("<span class='button-wrapper'></span>"); 9 }); 10 $(".flip-button-effect .elementskit-btn, .flip-button-effect .ekit-popup-btn__has-icon, .flip-button-effect .keydesign-button,.flip-button-effect .elementskit-single-pricing .elementskit-pricing-btn").each(function() { 11 $button_text = $(this).text().trim(); 12 $(this).attr("data-text", $button_text); 13 // $(this).wrapInner("<span class='button-wrapper'></span>"); 14 $(this).contents().filter(function() { 15 return this.nodeType == 3 && $.trim(this.textContent) != ''; 16 }).wrap('<span class="button-wrapper" />'); 17 }); 18 if ($('.with-sidebar.sticky-sidebar').length) { 19 $(".with-sidebar.sticky-sidebar .keydesign-sidebar").css('--header-height', $("#site-header").outerHeight() + "px"); 20 } 21}); 22 23jQuery(function($) { 24 $(".ekit-wid-con .elementskit-menu-hamburger").click(function() { 25 $("#site-header").css('--mobile-menu-height', $("#site-header").outerHeight() + "px"); 26 $(this).toggleClass("active"); 27 $("#site-header").toggleClass("mobile-menu-active"); 28 }); 29 $(".elementskit-navbar-nav li a").click(function() { 30 if ($(".elementskit-menu-container").hasClass("ekit-nav-menu-one-page-yes")) { 31 $("#site-header").removeClass("mobile-menu-active"); 32 $(".ekit-wid-con .elementskit-menu-hamburger").removeClass("active"); 33 } 34 }); 35 if ($('.site-header.sticky-header').length) { 36 var my_window = $(window); 37 var position = my_window.scrollTop(); 38 if (position > 95) { 39 $('.site-header').addClass('scrolled'); 40 } else { 41 $('.site-header').removeClass('scrolled'); 42 } 43 my_window.scroll(function() { 44 if (my_window.scrollTop() > 0) { 45 if (my_window.scrollTop() > position) { 46 $('.site-header.show-on-scroll').addClass('hide-menu'); 47 } else { 48 $('.site-header.show-on-scroll').removeClass('hide-menu'); 49 } 50 if (position > 95) { 51 $('.site-header').addClass('scrolled'); 52 } else { 53 $('.site-header').removeClass('scrolled'); 54 } 55 position = my_window.scrollTop(); 56 } 57 }); 58 } 59 if ($('.transform-3d').length) { 60 var my_window = $(window); 61 my_window.scroll(function() { 62 if (my_window.scrollTop() > 0) { 63 var angle = 12 - my_window.scrollTop() / 30; 64 if (angle > 0) { 65 $('.transform-3d img').css('transform', 'rotateX(' + angle + 'deg)'); 66 } 67 } 68 }); 69 } 70 function getAbsoluteOffsetTop(element) { 71 const rect = element.getBoundingClientRect(); 72 const scrollTop = window.pageYOffset || document.documentElement.scrollTop; 73 return rect.top + scrollTop; 74 } 75 if ($('.sticky-navigation').length) { 76 var navLinks = document.querySelectorAll(".sticky-navigation .ekit-stylish-list a"); 77 var sections = document.querySelectorAll("#main .e-con.e-flex.sticky-section"); 78 // var menuHeight = document.querySelector('.sticky-navigation').offsetHeight + 5; 79 var menuHeight = 33; 80 81 function changeActiveLink() { 82 var scrollPosition = document.documentElement.scrollTop || document.body.scrollTop; 83 84 sections.forEach(function(section) { 85 var sectionTop = getAbsoluteOffsetTop(section) - menuHeight; 86 var sectionBottom = sectionTop + section.offsetHeight; 87 if (scrollPosition >= sectionTop && scrollPosition < sectionBottom) { 88 var targetLink = document.querySelector('a[href="#' + section.id + '"]'); 89 navLinks.forEach(function(link) { 90 link.classList.remove("active"); 91 }); 92 targetLink.classList.add("active"); 93 } 94 }); 95 } 96 document.addEventListener("scroll", changeActiveLink); 97 } 98});
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.