1jQuery(document).ready(function ($) { 2 3 if (jQuery(".result-slider").length) { 4 var caseresultswiper = new Swiper(".result-slider", { 5 slidesPerView: 1, 6 navigation: { 7 nextEl: ".swiper-button-next", 8 prevEl: ".swiper-button-prev", 9 }, 10 pagination: { 11 el: ".swiper-pagination", 12 clickable: true, 13 }, 14 }); 15 } 16 17 if (jQuery(".services-slider").length) { 18 var caseserviceswiper = new Swiper(".services-slider", { 19 slidesPerView: 2, 20 spaceBetween: 20, 21 pagination: { 22 el: ".swiper-pagination", 23 clickable: true, 24 }, 25 breakpoints: { 26 768: { 27 slidesPerView: 4, 28 }, 29 } 30 }); 31 } 32 33 $('.listbtn').click(function () { 34 $(this).addClass('selected'); 35 $('.gridbtn').removeClass('selected'); 36 $('.grid_block').addClass('list'); 37 }); 38 39 40 41 $('.gridbtn').click(function () { 42 $(this).addClass('selected'); 43 $('.listbtn').removeClass('selected'); 44 $('.grid_block').removeClass('list'); 45 46 }); 47 48 $('.close_icon').click(function () { 49 $(".cbp-spmenu").removeClass("cbp-spmenu-open"); 50 $(".wprm-overlay").removeClass("active"); 51 $("#wprmenu_bar").removeClass("active"); 52 $("body").css({ "left": "0px" }); 53 $(".hamburger").removeClass("is-active"); 54 }); 55 56 url = $(location).attr('href'); 57 $("ul.product-categories li a").each(function () { 58 //catlink = $(this).attr('href'); 59 if (this.href === url) { 60 $(".active").removeClass("active"); 61 $(this).addClass('active'); 62 63 } 64 }); 65 66 $('.btn-review-tab').on('click', function (e) { 67 e.preventDefault(); // Prevent the default anchor behavior 68 69 // Activate the tab by clicking its corresponding nav link 70 $('a[href="#tab-reviews"]').click(); 71 72 var extraHeight = 200; // Adjust this value to the desired height in pixels 73 74 // Smooth scroll to the tab content 75 $('html, body').animate({ 76 scrollTop: $('#tab-reviews').offset().top - extraHeight 77 }, 1000); // Adjust the speed as needed 78 }); 79 80 $('#search-icon').click(function () { 81 $('#search-form-container').toggle(); 82 }); 83 84 // Hide the search form container when the close icon is clicked 85 $('#close-icon').click(function () { 86 $('#search-form-container').hide(); 87 }); 88 89 // Optional: Hide the search form container when clicking outside of it 90 $(document).click(function (event) { 91 if (!$(event.target).closest('#search-form-container, #search-icon').length) { 92 $('#search-form-container').hide(); 93 } 94 }); 95 $('#mobile-search-icon').click(function () { 96 $('#mobile-search-form-container').toggle(); 97 }); 98 99 // Hide the search form container when the close icon is clicked 100 $('#back-btn-icon').click(function () { 101 $('#mobile-search-form-container').hide(); 102 }); 103 104 // Optional: Hide the search form container when clicking outside of it 105 $(document).click(function (event) { 106 if (!$(event.target).closest('#mobile-search-form-container, #mobile-search-icon').length) { 107 $('#mobile-search-form-container').hide(); 108 } 109 }); 110 111 // All Page Digital Top Tab 112 if (jQuery("#digital-services-slider-thumb").length) { 113 var thumbSlider = new Swiper("#digital-services-slider-thumb", { 114 loop: false, 115 spaceBetween: 0, 116 allowTouchMove: false, 117 MouseEvent: false, 118 freeMode: true, 119 watchSlidesProgress: true, 120 navigation: { 121 nextEl: ".digital-services-wrapper .swiper-button-next", 122 prevEl: ".digital-services-wrapper .swiper-button-prev", 123 }, 124 breakpoints: { 125 1: { 126 slidesPerView: 1, 127 spaceBetween: 20, 128 }, 129 768: { 130 slidesPerView: 2, 131 spaceBetween: 40, 132 }, 133 1024: { 134 slidesPerView: 3, 135 spaceBetween: 30, 136 allowTouchMove: true, 137 }, 138 1199: { 139 slidesPerView: 5, 140 spaceBetween: 15, 141 }, 142 }, 143 }); 144 } 145 // Our Digital Services Slider 146 if (jQuery("#digital-services-slide").length) { 147 var digitalservicesslide = new Swiper("#digital-services-slide", { 148 loop: false, 149 spaceBetween: 10, 150 autoHeight: true, 151 thumbs: { 152 swiper: thumbSlider, 153 }, 154 navigation: { 155 nextEl: ".digital-services-wrapper .d-lg-none .swiper-button-next", 156 prevEl: ".digital-services-wrapper .d-lg-none .swiper-button-prev", 157 }, 158 }); 159 } 160 // SEO Page Business slider 161 if (jQuery("#seo-new-business-main-slider").length) { 162 var swiper2 = new Swiper("#seo-new-business-main-slider", { 163 loop: false, 164 slidesPerView: 1, 165 autoHeight: true, 166 centeredSlides: true, 167 navigation: { 168 nextEl: ".digital-services-wrapper .d-lg-none .swiper-button-next", 169 prevEl: ".digital-services-wrapper .d-lg-none .swiper-button-prev", 170 }, 171 172 }); 173 } 174 // Clients slider 175 if (jQuery(".clients-slider").length) { 176 var clientssliderswiper = new Swiper(".clients-slider", { 177 loop: false, 178 slidesPerView: 1, 179 slidesPerGroup: 1, 180 spaceBetween: 26, 181 speed: 2000,
182 navigation: { 183 nextEl: ".client-swiper-button-next", 184 prevEl: ".client-swiper-button-prev", 185 }, 186 breakpoints: { 187 1: { 188 slidesPerView: 1, 189 slidesPerGroup: 1, 190 }, 191 550: { 192 slidesPerView: 2, 193 slidesPerGroup: 2, 194 }, 195 767: { 196 slidesPerView: 3, 197 slidesPerGroup: 3, 198 }, 199 991: { 200 slidesPerView: 4, 201 slidesPerGroup: 4, 202 }, 203 1299: { 204 loop: false, 205 slidesPerView: 5, 206 slidesPerGroup: 5, 207 } 208 }, 209 }); 210 } 211 if (jQuery(".clients-slider-mobile").length) { 212 var clientssliderswiper = new Swiper(".clients-slider-mobile", { 213 loop: false, 214 slidesPerView: 1, 215 speed: 1000, 216 // slidesPerColumn: 4, 217 // grid: { 218 // rows: 4, 219 // spaceBetween: 16, 220 // }, 221 222 navigation: { 223 nextEl: ".client-swiper-button-next", 224 prevEl: ".client-swiper-button-prev", 225 }, 226 }); 227 } 228 // Testimonial Slider 229 if (jQuery(".testimonial-slider").length) { 230 var testimonialSwiper = new Swiper(".testimonial-slider", { 231 slidesPerView: 1, 232 navigation: { 233 nextEl: ".testimonial-slider-wrapper .swiper-button-next", 234 prevEl: ".testimonial-slider-wrapper .swiper-button-prev", 235 }, 236 }); 237 } 238 // Case Study Slider 239 if (jQuery(".case-study-slider").length) { 240 var casestudyswiper = new Swiper(".case-study-slider", { 241 slidesPerView: 1, 242 allowTouchMove: false, 243 navigation: { 244 nextEl: ".swiper-case-study-button-next", 245 prevEl: ".swiper-case-study-button-prev", 246 }, 247 }); 248 } 249 250 // Service steps slider 251 if (jQuery(".steps-slider").length) { 252 var stepSwiper = new Swiper(".steps-slider", { 253 slidesPerView: 1, 254 autoHeight: true, 255 navigation: { 256 nextEl: ".service_our-process-section .swiper-button-next", 257 prevEl: ".service_our-process-section .swiper-button-prev", 258 }, 259 pagination: { 260 el: '.service_our-process-section .swiper-pagination', 261 type: 'bullets', 262 clickable: 'true', 263 }, 264 runCallbacksOnInit: true, 265 on: { 266 init: function (sw) { 267 //console.log('swiper initialized'); 268 var stepswipercount = document.querySelector('.service_our-process-section .customcounter'); 269 stepswipercount.innerHTML = '<span class="active">' + (sw.activeIndex + 1) + '</span>' + '<span class="total">' + sw.slides.length + '</span>'; 270 }, 271 }, 272 }); 273 stepSwiper.on('slideChangeTransitionEnd', function (sw) { 274 var stepswipercount = document.querySelector('.service_our-process-section .customcounter'); 275 stepswipercount.innerHTML = '<span class="active">' + (sw.activeIndex + 1) + '</span>' + '<span class="total">' + sw.slides.length + '</span>'; 276 }); 277 } 278 279 280 // Services features slider 281 if (jQuery(".service-blockgrid-slider").length) { 282 var serviceblockgridswiper = new Swiper(".service-blockgrid-slider", { 283 slidesPerView: 3, 284 navigation: { 285 nextEl: ".service-blockgrid-slider .swiper-button-next", 286 prevEl: ".service-blockgrid-slider .swiper-button-prev", 287 }, 288 breakpoints: { 289 1: { 290 slidesPerView: 1, 291 }, 292 767: { 293 slidesPerView: 2, 294 } 295 }, 296 }); 297 } 298 299 300 301 var sort_by = 'date-DESC'; // Default sort 302 303 $('.custom-category-list .cat-link[data-id="view_all"]').addClass('active'); 304 305 // Add current class to initial active pagination link 306 $(document).ready(function () { 307 $('.blog_pagination a.page-numbers').each(function () { 308 if ($(this).data('page-num') == 1) { 309 $(this).addClass('current'); 310 } 311 }); 312 }); 313 314 // Pagination click event using event delegation 315 jQuery(document).on('click', '.blog_pagination a', function (e) { 316 $('.progress-loader').show(); 317 if ($(e.target).is('a.page-numbers')) { 318 e.preventDefault(); 319 $('.blog_pagination a.page-numbers').removeClass('current'); // Remove current class from all pages 320 $(e.target).addClass('current'); // Add current class to clicked page 321 var pagi_num = $(e.target).data('page-num'); 322 var category_id = $('.custom-category-list .cat-link.active').data('id'); 323 loadPosts(pagi_num, category_id, sort_by); 324 } 325 326 }); 327 328 // Category click event using event delegation 329 jQuery(document).on('click', '.custom-category-list .cat-link', function (e) { 330 $('.progress-loader').show(); 331 e.preventDefault(); 332 $('.custom-category-list .cat-link').removeClass('active'); // Remove active class from all categories 333 $(this).addClass('active'); // Add active class to clicked category 334 var catename = $('.custom-category-list .cat-link.active').text(); 335 $('#dropdownMenuButton1').text(catename); 336 $('.blog_pagination a.page-numbers').removeClass('current'); // Remove current class from all pagination links 337 var category_id = $(this).data('id'); // Get the category ID 338 loadPosts(1, category_id, sort_by); // Load posts for the clicked category 339 }); 340 341 // Handle sort change 342 jQuery(document).on('change', '#select_sort', function () { 343 $('.progress-loader').show(); 344 sort_by = $(this).val(); 345 var category_id = $('.custom-category-list .cat-link.active').data('id') || 'view_all'; 346 loadPosts(1, category_id, sort_by); 347 }); 348 349 function loadPosts(page_num, category_id, sort_by) { 350 351 $.ajax({ 352 url: "/wp-admin/admin-ajax.php", 353 data: { 354 'action': 'blog_category_filter_function', 355 'pagi_num': page_num, 356 'category_id': category_id, 357 'sort_by': sort_by 358 }, 359 success: function (data) { 360 $('.progress-loader').hide(); 361 $('.all-blog-post-list').html(data); 362 $('html, body').animate({ 363 scrollTop: $(".all-blog-post-list").offset().top - 250 364 }, 1000); 365 }, 366 error: function (errorThrown) { 367 console.log(errorThrown); 368 } 369 }); 370 } 371 372 373 jQuery(".vacancy .vacancy_ques").slice(0, 4).show(); 374 var numItems = jQuery('.vacancy .vacancy_ques').length; 375 if (numItems <= 4 || numItems == '') { 376 jQuery(".loadmore").hide(); 377 } 378 jQuery(".loadmore").on("click", function (e) { 379 e.preventDefault(); 380 jQuery(".vacancy .vacancy_ques:hidden").slice(0, 4).slideDown(); 381 if (jQuery(".vacancy .vacancy_ques:hidden").length == 0) { 382 jQuery(".loadmore").hide(); 383 } 384 }); 385 386 // Custom scrollbar 387 $(window).on("load", function () { 388 $(".cs-portfolio-section .portfolio").mCustomScrollbar(); 389 }); 390 391 // $(window).on("load", function () { 392 // $(".product-page-wrapper ul.product-categories").mCustomScrollbar(); 393 // }); 394 if (jQuery(".product-slider").length) { 395 var productsliderswiper = new Swiper(".product-slider", { 396 slidesPerView: 3, 397 navigation: { 398 nextEl: ".swiper-button-next", 399 prevEl: ".swiper-button-prev", 400 }, 401 breakpoints: { 402 1: { 403 slidesPerView: 1, 404 }, 405 991: { 406 slidesPerView: 2, 407 }, 408 1199: { 409 slidesPerView: 3, 410 } 411 }, 412 }); 413 } 414 415 if (jQuery(".main-gallery").length) { 416 // Main Swiper on Page 417 var mainSwiper = new Swiper(".main-gallery", { 418 slidesPerView: 4, 419 spaceBetween: 18, 420 navigation: { 421 nextEl: ".main-gallery ~ .swiper-button-next", 422 prevEl: ".main-gallery ~ .swiper-button-prev", 423 }, 424 breakpoints: { 425 1: { slidesPerView: 2 }, 426 767: { slidesPerView: 3, spaceBetween: 15 }, 427 1199: { slidesPerView: 3, spaceBetween: 18 }, 428 1440: { slidesPerView: 4, spaceBetween: 18 } 429 } 430 }); 431 432 // Popup Swiper inside Modal 433 var popupSwiper = new Swiper(".popup-slider", { 434 slidesPerView: 1, 435 spaceBetween: 10, 436 navigation: { 437 nextEl: ".popup-slider ~ .swiper-button-next", 438 prevEl: ".popup-slider ~ .swiper-button-prev", 439 }, 440 on: { 441 slideChange: function () { 442 pauseAllVideos(); // Pause all videos when slide changes 443 } 444 } 445 }); 446 447 // Open Modal with Selected Slide 448 document.querySelectorAll(".main-gallery .swiper-slide").forEach((slide, index) => { 449 slide.addEventListener("click", function () { 450 popupSwiper.slideTo(index); 451 var modal = new bootstrap.Modal(document.getElementById("mediaModal")); 452 modal.show(); 453 }); 454 }); 455 456 // Click Event for Thumbnails (Updates Swiper) 457 document.querySelectorAll(".popup-thumbs .thumb-item").forEach((thumb) => { 458 thumb.addEventListener("click", function () { 459 const index = parseInt(this.getAttribute("data-index"), 10); 460 popupSwiper.slideTo(index); 461 }); 462 }); 463 464 // Function to Pause All Videos 465 function pauseAllVideos() { 466 // Pause HTML5 videos 467 document.querySelectorAll(".popup-slider video").forEach((video) => { 468 video.pause(); 469 }); 470 471 // Pause YouTube videos 472 document.querySelectorAll(".popup-slider iframe[src*='youtube.com']").forEach((iframe) => {
473 let src = iframe.src; 474 iframe.src = ""; // Remove src to stop video 475 setTimeout(() => { 476 iframe.src = src; // Restore src for future play 477 }, 500); 478 }); 479 } 480 481 // Pause videos when the modal closes 482 document.getElementById("mediaModal").addEventListener("hidden.bs.modal", function () { 483 pauseAllVideos(); 484 }); 485 } 486 487 let playPauseVideo3 = function () { 488 // Pause YouTube and Vimeo if out of viewport 489 document.querySelectorAll(".popup-slider iframe").forEach(iframe => { 490 let src = iframe.getAttribute("src"); 491 if (src && (src.includes("youtube.com") || src.includes("vimeo.com"))) { 492 new IntersectionObserver(entries => { 493 entries.forEach(entry => { 494 if (entry.intersectionRatio === 0) { 495 if (src.includes("youtube.com")) { 496 iframe.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*'); 497 } else if (src.includes("vimeo.com")) { 498 iframe.contentWindow.postMessage({ method: "pause" }, '*'); 499 } 500 } 501 }); 502 }, { threshold: 0 }).observe(iframe); 503 } 504 }); 505 }; 506 var playPauseVideo2 = playPauseVideo3; 507 playPauseVideo3(); 508 509 if (jQuery(".marketing-service-slider").length) { 510 var marketingswiper = new Swiper(".marketing-service-slider", { 511 slidesPerView: 1, 512 navigation: { 513 nextEl: ".swiper-button-next", 514 prevEl: ".swiper-button-prev", 515 }, 516 }); 517 } 518 if (jQuery(".benifits-slider").length) { 519 var benifitsswiper = new Swiper(".benifits-slider", { 520 slidesPerView: 1, 521 grid: { 522 rows: 2, 523 }, 524 navigation: { 525 nextEl: ".benifits-slider .swiper-button-next", 526 prevEl: ".benifits-slider .swiper-button-prev", 527 }, 528 }); 529 } 530 if (jQuery(".resource_slider").length) { 531 var resourcesliderswiper = new Swiper(".resource_slider", { 532 slidesPerView: 3, 533 spaceBetween: 30, 534 navigation: { 535 nextEl: ".service_resourse_box .swiper-button-next", 536 prevEl: ".service_resourse_box .swiper-button-prev", 537 }, 538 breakpoints: { 539 1: { 540 slidesPerView: 1, 541 }, 542 991: { 543 slidesPerView: 2, 544 }, 545 768: { 546 slidesPerView: 2, 547 }, 548 1199: { 549 slidesPerView: 3, 550 } 551 }, 552 }); 553 } 554 // User Login 555 jQuery(".usermenu .userlogin").click(function () { 556 557 jQuery('.user-login-popup').toggle(); 558 }); 559 560 $(document).click(function (event) { 561 if (!$(event.target).closest('.usermenu .userlogin, .user-login-popup').length) { 562 $('.user-login-popup').hide(); 563 } 564 }); 565 566 567}); 568 569jQuery(window).load(function () { 570 // Wow Animation 571 wow = new WOW({ 572 boxClass: 'wow', // default 573 animateClass: 'animated', // default 574 offset: 0, // default 575 mobile: false, // default 576 live: false // default 577 }) 578 wow.init(); 579}); 580 581jQuery('.reviewbtn').click(function () { 582 jQuery('ul.wc-tabs li').removeClass('active'); 583 jQuery('ul.wc-tabs li.reviews_tab').addClass('active'); 584 jQuery('#tab-description').css('display', 'none'); 585 jQuery('#tab-reviews').css('display', 'block'); 586 jQuery('#tab-faqs').css('display', 'none'); 587 588}); 589 590jQuery(document).ready(function ($) { 591 $('.product-page-wrapper .widget_product_categories h2').click(function () { 592 if ($(this).hasClass("active")) { 593 $(this).removeClass("active"); 594 $(this).next(".product-categories-wrap").removeClass("active"); 595 } else { 596 $(this).addClass("active"); 597 $(this).next(".product-categories-wrap").addClass("active"); 598 } 599 }); 600 $('.product-page-wrapper .product-categories-wrap .close').click(function () { 601 $(".product-page-wrapper .widget_product_categories h2.active").removeClass("active"); 602 $(".product-page-wrapper .product-categories-wrap.active").removeClass("active"); 603 }); 604 $(document).on("click", function (e) { 605 if ($(e.target).is(".product-page-wrapper .widget_product_categories h2, .product-page-wrapper .product-categories-wrap.active") === false) { 606 $(".product-page-wrapper .widget_product_categories h2.active").removeClass("active"); 607 $(".product-page-wrapper .product-categories-wrap.active").removeClass("active"); 608 } 609 }); 610}); 611 612 613jQuery(document).ready(function ($) { 614 function performSearch() { 615 var searchQuery = $('.search-field').val().trim();
615 // Trim whitespace 616 617 // Check if search query is empty 618 if (searchQuery === '') { 619 $('#search-results').html(''); // Clear search results container 620 $('#recommended-topic').show(); // Show recommended topic 621 return; 622 } 623 $('.progress-loader').show(); 624 $.ajax({ 625 url: "/wp-admin/admin-ajax.php", 626 type: 'POST', 627 data: { 628 action: 'ajax_search', 629 query: searchQuery 630 }, 631 success: function (data) { 632 $('#search-results').html(data); 633 $('.progress-loader').hide(); 634 $('#recommended-topic').hide(); // Hide recommended topic 635 } 636 }); 637 } 638 639 // Trigger search on form submission 640 $('.search-form').on('submit', function (e) { 641 e.preventDefault(); 642 performSearch(); 643 }); 644 645 // Trigger search and show/hide recommended topics on input event in the search field 646 $('.search-field').on('input', function () { 647 var searchQuery = $(this).val().trim(); 648 649 if (searchQuery === '') { 650 $('#search-results').html(''); // Clear search results container 651 $('#recommended-topic').show(); // Show recommended topic 652 } else { 653 performSearch(); 654 } 655 }); 656 657 // Handle click event on recommended keywords 658 $(document).on('click', '.recommended-keyword', function () { 659 var keyword = $(this).text().trim(); 660 $('.search-field').val(keyword); // Set the clicked keyword as the search input value 661 performSearch(); // Trigger the search 662 }); 663 664 // Ensure recommended topics are visible when the page loads if the search field is empty 665 if ($('.search-field').val().trim() === '') { 666 $('#recommended-topic').show(); 667 } 668}); 669 670 671 672jQuery(document).ready(function ($) { 673 if ($(window).width() > 767) { 674 if ($('.order_review-block').length > 0) { 675 // Timeline - Our Story page 676 var stickySidebar = new StickySidebar('.sticky-review_block', { 677 topSpacing: 150, 678 bottomSpacing: 10, 679 containerSelector: '.checkout.woocommerce-checkout', 680 innerWrapperSelector: '.order_review-block' 681 }); 682 } 683 } 684 685 if ($(window).width() < 991) { 686 $('.best-deals-block .widget-title').click(function () { 687 $(this).next('.textwidget').slideToggle(); 688 $(this).toggleClass('active') 689 }); 690 } 691 if ($(window).width() < 767) { 692 $('#order_review_heading').click(function () { 693 $(this).next('.woocommerce-checkout-review-order').slideToggle(); 694 $(this).toggleClass('active') 695 }); 696 } 697 698 if ($(window).width() < 767) { 699 $('.footer-two .widget-title').click(function () { 700 $(this).siblings('div').slideToggle(); 701 $(this).toggleClass('active'); 702 }); 703 } 704 705 $('.approach .step-item .num').click(function () { 706 // If this section is already open, close it and remove active class 707 if ($(this).hasClass('active')) { 708 $(this).removeClass('active'); 709 $(this).next('.approach .step-item .content-box').slideUp(); 710 } else { 711 // Close any open section 712 $('.approach .step-item .num.active').removeClass('active').next('.approach .step-item .content-box').slideUp(); 713 714 // Open the clicked section 715 $(this).addClass('active'); 716 $(this).next('.approach .step-item .content-box').slideDown(); 717 } 718 }); 719 720 jQuery('.domain-field').click(function () { 721 jQuery(".domain-field").val('https://'); 722 }); 723 724 jQuery('.single_post-details .plugin-feature').click(function () { 725 jQuery('#tab-title-description a').trigger('click'); 726 }); 727 728}); 729 730 731const counterUp = window.counterUp.default 732 733const callback = entries => { 734 entries.forEach(entry => { 735 const el = entry.target 736 if (entry.isIntersecting && !el.classList.contains('is-visible')) { 737 counterUp(el, { 738 duration: 2000,
739 delay: 16, 740 }) 741 el.classList.add('is-visible') 742 } 743 }) 744} 745 746const IO = new IntersectionObserver(callback, { threshold: 1 }); 747 748const elements = document.querySelectorAll('.number-item .counter'); 749 750// Observe each element 751elements.forEach(el => IO.observe(el)); 752 753jQuery(document).ready(function ($) { 754 $('.parent-cat-wrap h3').click(function () { 755 if ($(this).closest('.view-all').length) { 756 console.log("Hello 123"); 757 // If 'View All' is clicked 758 if ($('.parent-cat-wrap ul').is(':hidden')) { 759 console.log("Open"); 760 // Open all lists 761 $('.parent-cat-wrap ul').slideDown(); 762 $('.view-all h3').addClass("active"); // Add active class to View All 763 $('.parent-cat-wrap h3').addClass("active"); // Add active class to all category headers 764 } else { 765 console.log("Close"); 766 // Close all lists 767 $('.parent-cat-wrap ul').slideUp(); 768 $('.view-all h3').removeClass("active"); // Remove active class from View All 769 $('.parent-cat-wrap h3').removeClass("active"); // Remove active class from all category headers 770 } 771 } else { 772 console.log("World"); 773 // Toggle only the clicked section's list 774 $(this).siblings('ul').slideToggle(); 775 $(this).toggleClass("active"); // Toggle active class for the specific category 776 777 // Remove active class from View All if an individual category is toggled 778 $('.view-all h3').removeClass("active"); 779 780 // Check if all lists are visible to potentially add active back to View All 781 if ($('.parent-cat-wrap ul').filter(':visible').length === $('.parent-cat-wrap ul').length) { 782 $('.view-all h3').addClass("active"); 783 $('.parent-cat-wrap h3').addClass("active"); // Ensure all headers have active class 784 } 785 } 786 }); 787 788 $(".product-categories-mobile .filterby").click(function () { 789 $('.product-page-wrapper .row .sticky_sidebar_box').addClass("active"); 790 }); 791 $(".product-page-wrapper .widget_product_categories .close").click(function () { 792 $('.product-page-wrapper .row .sticky_sidebar_box').removeClass("active"); 793 }); 794}); 795 796document.addEventListener('DOMContentLoaded', function () { 797 // Select all checkbox groups inside .extra-option 798 const groups = document.querySelectorAll('.extra-option'); 799 800 groups.forEach(function (group) { 801 const checkboxes = group.querySelectorAll('input[type="checkbox"]'); 802 803 checkboxes.forEach(function (checkbox) { 804 checkbox.addEventListener('change', function () { 805 if (this.checked) { 806 // Uncheck all other checkboxes in the same .extra-option group 807 checkboxes.forEach(function (cb) { 808 if (cb !== checkbox) cb.checked = false; 809 }); 810 } 811 }); 812 }); 813 }); 814}); 815 816 817 818jQuery(document).ready(function ($) { 819 // Target all links with href="#" inside the menu-sitemap-container 820 $('.menu-sitemap-container a[href="#"]').each(function () { 821 // Get the link text 822 var linkText = $(this).text(); 823 824 // Get the link's classes (if you want to preserve them) 825 var linkClasses = $(this).attr('class'); 826 827 // Create a span element with the text 828 var textElement = $('<span></span>') 829 .text(linkText) 830 .addClass(linkClasses); // Add original classes to span 831 832 // Replace the link with the span 833 $(this).replaceWith(textElement); 834 }); 835});
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.