1$(document).ready(function(){ 2 3 $('.search-btn').on('keydown', function (e) { 4 if (e.key === 'Enter' || e.key === ' ') { 5 e.preventDefault(); // prevent scrolling on spacebar 6 $(this).trigger('click'); 7 } 8}); 9 10// Your existing click event 11$('.search-btn').on('click', function () { 12 $('.asp_w_container').toggleClass('active'); 13 14 var $icon = $(this).find('.search-toggle-icon'); 15 var isActive = $('.asp_w_container').hasClass('active'); 16 17 if (isActive) { 18 $icon.attr('src', '/wp-content/themes/planeteriaweb/img/close-circle.svg').attr('alt', 'Close Icon'); 19 } else { 20 $icon.attr('src', '/wp-content/themes/planeteriaweb/img/search--white.svg').attr('alt', 'Search Icon'); 21 } 22}); 23$('.main_wrapper').attr('role', 'main'); 24$('.advgb-accordion-header-title').attr('tabindex', '0'); 25 26 27 $('.sbsw-owl-prev svg').replaceWith('<img src="/wp-content/themes/planeteriaweb/img/arrow-circle-down.svg" alt="Prev Arrow">'); 28 $('.sbsw-owl-next svg').replaceWith('<img src="/wp-content/themes/planeteriaweb/img/arrow-circle-down.svg" alt="Next Arrow">'); 29 30if (typeof $.fn.owlCarousel === 'function') { 31$('.owl-general .owl-carousel').owlCarousel({ 32 33 loop: true, 34 center:true, 35 dots:true, 36 autoplay:true, 37 margin: 10, 38 nav: true, 39 autoWidth:true, 40 items: 2, 41 navText: [ 42 '<img src="/wp-content/themes/planeteriaweb/img/sliderarrow-right.svg">', 43 '<img src="/wp-content/themes/planeteriaweb/img/sliderarrow-right.svg">' 44 ], 45 navContainer: '.owl-general .custom-nav', 46 /*responsive:{ 47 0:{ 48 items: 1 49 }, 50 600:{ 51 items: 1 52 }, 53 1000:{ 54 items: 1, 55 stagePadding: 200 56 } 57 }*/ 58}); 59 60$('.slider_area .owl-carousel').owlCarousel({ 61 62 loop: true, 63 dots:true, 64 autoplay:false, 65 margin: 10, 66 nav: false, 67 items: 3, 68 navText: [ 69 '<img src="/wp-content/themes/planeteriaweb/img/sliderarrow-right.svg">', 70 '<img src="/wp-content/themes/planeteriaweb/img/sliderarrow-right.svg">' 71 ], 72 navContainer: '.LatestNews .nav-custom', 73 responsive:{ 74 0:{ 75 items: 1 76 }, 77 600:{ 78 items: 2 79 }, 80 1000:{ 81 items: 3, 82 83 } 84 } 85}); 86 87} 88 89 /* 90 $('.logo_slider .owl-carousel').owlCarousel({ 91 92 loop: true, 93 dots:true, 94 autoplay:false, 95 margin: 10, 96 nav: false, 97 items: 3, 98 navText: [ 99 '<img src="/wp-content/themes/planeteriaweb/img/arrow-back-red.svg">', 100 '<img src="/wp-content/themes/planeteriaweb/img/arrow-back-red.svg">' 101 ], 102 navContainer: '.LatestNews .nav-custom', 103 responsive:{ 104 0:{ 105 items: 2 106 }, 107 600:{ 108 items: 2 109 }, 110 1000:{ 111 items: 5, 112 113 } 114 } 115});*/ 116 117 118 119 120 setTimeout(function () { 121 var hash = window.location.hash 122 if (hash != "") { 123 $(".advgb-tab a[href='" + hash + "']").click(); 124 } 125 }, 500) 126 $(".advgb-tab a").click(function () { 127 var href = $(this).attr("href"); 128 if (href.indexOf("#") === 0) { 129 window.location.hash = href; 130 } 131 }); 132 133 $('.anc_content .links_wrap a').click(function() { 134 $('.popmake-close').trigger('click'); 135}); 136 137 138}); 139 140 141$(window).on('load', function() { 142 // Remove the video loader once the page is fully loaded 143 $('#video-loader').fadeOut(500, function() { 144 $(this).remove(); 145 }); 146 147 148 149 150}); 151 152document.addEventListener("DOMContentLoaded", function() { 153 const links = document.querySelectorAll('.links a'); 154 155 links.forEach(link => { 156 link.addEventListener('click', function(event) { 157 event.preventDefault(); // Prevent page jump 158 const targetId = this.getAttribute('href'); // Get the href value (e.g., #section1) 159 history.pushState(null, null, targetId); // Update the URL without reloading the page 160 }); 161 }); 162}); 163 164 165document.addEventListener("DOMContentLoaded", function() { 166 // Get the current URL hash 167 const hash = window.location.hash; 168 169 // If there's a hash in the URL 170 if (hash) { 171 // Remove 'active' class from all links 172 const links = document.querySelectorAll('.links a'); 173 links.forEach(link => link.classList.remove('active')); 174 175 // Remove 'expanded' class from all expanding containers 176 const containers = document.querySelectorAll('.expanding-container');
177 containers.forEach(container => container.classList.remove('expanded')); 178 179 // Add 'active' class to the link with the matching hash 180 const activeLink = document.querySelector(`.links a[href="${hash}"]`); 181 if (activeLink) { 182 activeLink.classList.add('active'); 183 } 184 185 // Add 'expanded' class to the container with the matching hash 186 const activeContainer = document.querySelector(`${hash}`); 187 if (activeContainer) { 188 activeContainer.classList.add('expanded'); 189 } 190 } 191});
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.