1(function ($) { 2 "use strict"; 3 4 /*-- Checkout Accoradin --*/ 5 if ($(".checkout-page__payment__title").length) { 6 $(".checkout-page__payment__item") 7 .find(".checkout-page__payment__content") 8 .hide(); 9 $(".checkout-page__payment__item--active") 10 .find(".checkout-page__payment__content") 11 .show(); 12 $(".checkout-page__payment__title").on("click", function (e) { 13 e.preventDefault(); 14 $(this) 15 .parents(".checkout-page__payment") 16 .find(".checkout-page__payment__item") 17 .removeClass("checkout-page__payment__item--active"); 18 $(this) 19 .parents(".checkout-page__payment") 20 .find(".checkout-page__payment__content") 21 .slideUp(); 22 $(this).parent().addClass("checkout-page__payment__item--active"); 23 $(this).parent().find(".checkout-page__payment__content").slideDown(); 24 }); 25 } 26 27 let dynamicyearElm = $(".dynamic-year"); 28 if (dynamicyearElm.length) { 29 let currentYear = new Date().getFullYear(); 30 dynamicyearElm.html(currentYear); 31 } 32 33 // Date Picker 34 if ($(".ienet-datepicker").length) { 35 $('.ienet-datepicker').each(function () { 36 $(this).datepicker(); 37 }); 38 } 39 40 // Popular Causes Progress Bar 41 if ($(".count-bar").length) { 42 $(".count-bar").appear( 43 function () { 44 var el = $(this); 45 var percent = el.data("percent"); 46 $(el).css("width", percent).addClass("counted"); 47 }, { 48 accY: -50 49 } 50 ); 51 } 52 53 //Fact Counter + Text Count 54 if ($(".count-box").length) { 55 $(".count-box").appear( 56 function () { 57 var $t = $(this), 58 n = $t.find(".count-text").attr("data-stop"), 59 r = parseInt($t.find(".count-text").attr("data-speed"), 10); 60 61 if (!$t.hasClass("counted")) { 62 $t.addClass("counted"); 63 $({ 64 countNum: $t.find(".count-text").text() 65 }).animate({ 66 countNum: n 67 }, { 68 duration: r, 69 easing: "linear", 70 step: function () { 71 $t.find(".count-text").text(Math.floor(this.countNum)); 72 }, 73 complete: function () { 74 $t.find(".count-text").text(this.countNum); 75 } 76 }); 77 } 78 }, { 79 accY: 0 80 } 81 ); 82 } 83 84 // custom coursor 85 if ($(".custom-cursor").length) { 86 var cursor = document.querySelector(".custom-cursor__cursor"); 87 var cursorinner = document.querySelector(".custom-cursor__cursor-two"); 88 var a = document.querySelectorAll("a"); 89 90 document.addEventListener("mousemove", function (e) { 91 var x = e.clientX; 92 var y = e.clientY; 93 cursor.style.transform = `translate3d(calc(${e.clientX}px - 50%), calc(${e.clientY}px - 50%), 0)`; 94 }); 95 96 document.addEventListener("mousemove", function (e) { 97 var x = e.clientX; 98 var y = e.clientY; 99 cursorinner.style.left = x + "px"; 100 cursorinner.style.top = y + "px"; 101 }); 102 103 document.addEventListener("mousedown", function () { 104 cursor.classList.add("click"); 105 cursorinner.classList.add("custom-cursor__innerhover"); 106 }); 107 108 document.addEventListener("mouseup", function () { 109 cursor.classList.remove("click"); 110 cursorinner.classList.remove("custom-cursor__innerhover"); 111 }); 112 113 a.forEach((item) => { 114 item.addEventListener("mouseover", () => { 115 cursor.classList.add("custom-cursor__hover"); 116 }); 117 item.addEventListener("mouseleave", () => { 118 cursor.classList.remove("custom-cursor__hover"); 119 }); 120 }); 121 } 122 123 if ($(".contact-form-validated").length) { 124 $(".contact-form-validated").validate({ 125 // initialize the plugin 126 rules: { 127 name: { 128 required: true 129 }, 130 email: { 131 required: true, 132 email: true 133 }, 134 message: { 135 required: true 136 }, 137 subject: { 138 required: true 139 } 140 }, 141 submitHandler: function (form) { 142 // sending value with ajax request 143 $.post( 144 $(form).attr("action"), 145 $(form).serialize(), 146 function (response) { 147 $(form).parent().find(".result").append(response); 148 $(form).find('input[type="text"]').val(""); 149 $(form).find('input[type="email"]').val(""); 150 $(form).find("textarea").val(""); 151 } 152 ); 153 return false; 154 } 155 });
156 } 157 158 // mailchimp form 159 if ($(".mc-form").length) { 160 $(".mc-form").each(function () { 161 var Self = $(this); 162 var mcURL = Self.data("url"); 163 var mcResp = Self.parent().find(".mc-form__response"); 164 165 Self.ajaxChimp({ 166 url: mcURL, 167 callback: function (resp) { 168 // appending response 169 mcResp.append(function () { 170 return '<p class="mc-message">' + resp.msg + "</p>"; 171 }); 172 // making things based on response 173 if (resp.result === "success") { 174 // Do stuff 175 Self.removeClass("errored").addClass("successed"); 176 mcResp.removeClass("errored").addClass("successed"); 177 Self.find("input").val(""); 178 179 mcResp.find("p").fadeOut(10000); 180 } 181 if (resp.result === "error") { 182 Self.removeClass("successed").addClass("errored"); 183 mcResp.removeClass("successed").addClass("errored"); 184 Self.find("input").val(""); 185 186 mcResp.find("p").fadeOut(10000); 187 } 188 } 189 }); 190 }); 191 } 192 193 if ($(".video-popup").length) { 194 $(".video-popup").magnificPopup({ 195 type: "iframe", 196 mainClass: "mfp-fade", 197 removalDelay: 160, 198 preloader: true, 199 200 fixedContentPos: false 201 }); 202 } 203 204 if ($(".img-popup").length) { 205 var groups = {}; 206 $(".img-popup").each(function () { 207 var id = parseInt($(this).attr("data-group"), 10); 208 209 if (!groups[id]) { 210 groups[id] = []; 211 } 212 213 groups[id].push(this); 214 }); 215 216 $.each(groups, function () { 217 $(this).magnificPopup({ 218 type: "image", 219 closeOnContentClick: true, 220 closeBtnInside: false, 221 gallery: { 222 enabled: true 223 } 224 }); 225 }); 226 } 227 228 function dynamicCurrentMenuClass(selector) { 229 let FileName = window.location.href.split("/").reverse()[0]; 230 231 selector.find("li").each(function () { 232 let anchor = $(this).find("a"); 233 if ($(anchor).attr("href") == FileName) { 234 $(this).addClass("current"); 235 } 236 }); 237 // if any li has .current elmnt add class 238 selector.children("li").each(function () { 239 if ($(this).find(".current").length) { 240 $(this).addClass("current"); 241 } 242 }); 243 // if no file name return 244 if ("" == FileName) { 245 selector.find("li").eq(0).addClass("current"); 246 } 247 } 248 249 if ($(".main-menu__list").length) { 250 // dynamic current class 251 let mainNavUL = $(".main-menu__list"); 252 dynamicCurrentMenuClass(mainNavUL); 253 } 254 255 if ($(".service-sidebar__nav").length) { 256 // dynamic current class 257 let mainNavUL = $(".service-sidebar__nav"); 258 dynamicCurrentMenuClass(mainNavUL); 259 } 260 261 if ($(".main-menu").length && $(".mobile-nav__container").length) { 262 let navContent = document.querySelector(".main-menu").innerHTML; 263 let mobileNavContainer = document.querySelector(".mobile-nav__container"); 264 mobileNavContainer.innerHTML = navContent; 265 } 266 267 if ($(".sticky-header").length) { 268 $(".sticky-header") 269 .clone() 270 .insertAfter(".sticky-header") 271 .addClass("sticky-header--cloned"); 272 } 273 274 if ($(".mobile-nav__container .main-menu__list").length) { 275 let dropdownAnchor = $( 276 ".mobile-nav__container .main-menu__list .dropdown > a" 277 ); 278 dropdownAnchor.each(function () { 279 let self = $(this); 280 let toggleBtn = document.createElement("BUTTON"); 281 toggleBtn.setAttribute("aria-label", "dropdown toggler"); 282 toggleBtn.innerHTML = "<i class='fa fa-angle-down'></i>"; 283 self.append(function () { 284 return toggleBtn; 285 }); 286 self.find("button").on("click", function (e) { 287 e.preventDefault(); 288 let self = $(this); 289 self.toggleClass("expanded"); 290 self.parent().toggleClass("expanded"); 291 self.parent().parent().children("ul").slideToggle(); 292 }); 293 }); 294 } 295 296 //Show Popup menu 297 $(document).on("click", ".megamenu-clickable--toggler > a", function (e) { 298 $("body").toggleClass("megamenu-popup-active"); 299 $(this).parent().find("ul").toggleClass("megamenu-clickable--active"); 300 e.preventDefault(); 301 }); 302 $(document).on("click", ".megamenu-clickable--close", function (e) { 303 $("body").removeClass("megamenu-popup-active"); 304 $(".megamenu-clickable--active").removeClass("megamenu-clickable--active"); 305 e.preventDefault(); 306 }); 307 308 if ($(".mobile-nav__toggler").length) { 309 $(".mobile-nav__toggler").on("click", function (e) { 310 e.preventDefault(); 311 $(".mobile-nav__wrapper").toggleClass("expanded"); 312 $("body").toggleClass("locked"); 313 });
314 } 315 316 if ($(".search-toggler").length) { 317 $(".search-toggler").on("click", function (e) { 318 e.preventDefault(); 319 $(".search-popup").toggleClass("active"); 320 $(".mobile-nav__wrapper").removeClass("expanded"); 321 $("body").toggleClass("locked"); 322 }); 323 } 324 if ($(".mini-cart__toggler").length) { 325 $(".mini-cart__toggler").on("click", function (e) { 326 e.preventDefault(); 327 $(".mini-cart").toggleClass("expanded"); 328 $(".mobile-nav__wrapper").removeClass("expanded"); 329 $("body").toggleClass("locked"); 330 }); 331 } 332 if ($(".odometer").length) { 333 $(".odometer").appear(function (e) { 334 var odo = $(".odometer"); 335 odo.each(function () { 336 var countNumber = $(this).attr("data-count"); 337 $(this).html(countNumber); 338 }); 339 }); 340 } 341 342 if ($(".wow").length) { 343 var wow = new WOW({ 344 boxClass: "wow", // animated element css class (default is wow) 345 animateClass: "animated", // animation css class (default is animated) 346 mobile: true, // trigger animations on mobile devices (default is true) 347 live: true // act on asynchronously loaded content (default is true) 348 }); 349 wow.init(); 350 } 351 352 if ($("#donate-amount__predefined").length) { 353 let donateInput = $("#donate-amount"); 354 $("#donate-amount__predefined") 355 .find("li") 356 .on("click", function (e) { 357 e.preventDefault(); 358 let amount = $(this).find("a").text(); 359 donateInput.val(amount); 360 $("#donate-amount__predefined").find("li").removeClass("active"); 361 $(this).addClass("active"); 362 }); 363 } 364 365 //accrodion 366 if ($(".ienet-accrodion").length) { 367 var accrodionGrp = $(".ienet-accrodion"); 368 accrodionGrp.each(function () { 369 var accrodionName = $(this).data("grp-name"); 370 var Self = $(this); 371 var accordion = Self.find(".accrodion"); 372 Self.addClass(accrodionName); 373 Self.find(".accrodion .accrodion-content").hide(); 374 Self.find(".accrodion.active").find(".accrodion-content").show(); 375 accordion.each(function () { 376 $(this) 377 .find(".accrodion-title") 378 .on("click", function () { 379 if ($(this).parent().hasClass("active") === false) { 380 $(".ienet-accrodion." + accrodionName) 381 .find(".accrodion") 382 .removeClass("active"); 383 $(".ienet-accrodion." + accrodionName) 384 .find(".accrodion") 385 .find(".accrodion-content") 386 .slideUp(); 387 $(this).parent().addClass("active"); 388 $(this).parent().find(".accrodion-content").slideDown(); 389 } 390 }); 391 }); 392 }); 393 } 394 395 $(".add").on("click", function () { 396 if ($(this).prev().val() < 999) { 397 $(this) 398 .prev() 399 .val(+$(this).prev().val() + 1); 400 } 401 }); 402 403 $(".sub").on("click", function () { 404 if ($(this).next().val() > 0) { 405 if ($(this).next().val() > 0) 406 $(this) 407 .next() 408 .val(+$(this).next().val() - 1); 409 } 410 }); 411 412 if ($(".tabs-box").length) { 413 $(".tabs-box .tab-buttons .tab-btn").on("click", function (e) { 414 e.preventDefault(); 415 var target = $($(this).attr("data-tab")); 416 417 if ($(target).is(":visible")) { 418 return false; 419 } else { 420 target 421 .parents(".tabs-box") 422 .find(".tab-buttons") 423 .find(".tab-btn") 424 .removeClass("active-btn"); 425 $(this).addClass("active-btn"); 426 target 427 .parents(".tabs-box") 428 .find(".tabs-content") 429 .find(".tab") 430 .fadeOut(0); 431 target 432 .parents(".tabs-box") 433 .find(".tabs-content") 434 .find(".tab") 435 .removeClass("active-tab"); 436 $(target).fadeIn(300); 437 $(target).addClass("active-tab"); 438 } 439 }); 440 } 441 442 if ($(".range-slider-price").length) { 443 var priceRange = document.getElementById("range-slider-price"); 444 445 noUiSlider.create(priceRange, { 446 start: [30, 150], 447 limit: 200, 448 behaviour: "drag", 449 connect: true, 450 range: { 451 min: 10, 452 max: 200 453 } 454 });
455 456 var limitFieldMin = document.getElementById("min-value-rangeslider"); 457 var limitFieldMax = document.getElementById("max-value-rangeslider"); 458 459 priceRange.noUiSlider.on("update", function (values, handle) { 460 (handle ? $(limitFieldMax) : $(limitFieldMin)).text(values[handle]); 461 }); 462 } 463 464 function thmOwlInit() { 465 // owl slider 466 let ienetowlCarousel = $(".ienet-owl__carousel"); 467 if (ienetowlCarousel.length) { 468 ienetowlCarousel.each(function () { 469 let elm = $(this); 470 let options = elm.data("owl-options"); 471 let thmOwlCarousel = elm.owlCarousel( 472 "object" === typeof options ? options : JSON.parse(options) 473 ); 474 elm.find("button").each(function () { 475 $(this).attr("aria-label", "carousel button"); 476 }); 477 }); 478 } 479 let ienetowlCarouselNav = $(".ienet-owl__carousel--custom-nav"); 480 if (ienetowlCarouselNav.length) { 481 ienetowlCarouselNav.each(function () { 482 let elm = $(this); 483 let owlNavPrev = elm.data("owl-nav-prev"); 484 let owlNavNext = elm.data("owl-nav-next"); 485 $(owlNavPrev).on("click", function (e) { 486 elm.trigger("prev.owl.carousel"); 487 e.preventDefault(); 488 }); 489 490 $(owlNavNext).on("click", function (e) { 491 elm.trigger("next.owl.carousel"); 492 e.preventDefault(); 493 }); 494 }); 495 } 496 } 497 498 function thmTinyInit() { 499 // tiny slider 500 const tinyElm = document.querySelectorAll(".thm-tiny__slider"); 501 tinyElm.forEach(function (tinyElm) { 502 const tinyOptions = JSON.parse(tinyElm.dataset.tinyOptions); 503 let thmTinySlider = tns(tinyOptions); 504 }); 505 } 506 507 function ienetSlickInit() { 508 // slick slider 509 let ienetslickCarousel = $(".ienet-slick__carousel"); 510 if (ienetslickCarousel.length) { 511 ienetslickCarousel.each(function () { 512 let elm = $(this); 513 let options = elm.data("slick-options"); 514 let ienetslickCarousel = elm.slick( 515 "object" === typeof options ? options : JSON.parse(options) 516 ); 517 }); 518 } 519 } 520 521 /*-- Handle Scrollbar --*/ 522 function handleScrollbar() { 523 const bodyHeight = $('body').height(); 524 const scrollPos = $(window).innerHeight() + $(window).scrollTop(); 525 let percentage = ((scrollPos / bodyHeight) * 100); 526 if (percentage > 100) { 527 percentage = 100; 528 } 529 $('.scroll-to-top .scroll-to-top__inner').css('width', percentage + '%'); 530 } 531 532 /*-- One Page Menu --*/ 533 function SmoothMenuScroll() { 534 var anchor = $(".scrollToLink"); 535 if (anchor.length) { 536 anchor.children("a").bind("click", function (event) { 537 if ($(window).scrollTop() > 10) { 538 var headerH = "0"; 539 } else { 540 var headerH = "0"; 541 } 542 var target = $(this); 543 $("html, body") 544 .stop() 545 .animate({ 546 scrollTop: $(target.attr("href")).offset().top - headerH + "px" 547 }, 548 900, 549 "easeInOutExpo" 550 ); 551 anchor.removeClass("current"); 552 anchor.removeClass("current-menu-ancestor"); 553 anchor.removeClass("current_page_item"); 554 anchor.removeClass("current-menu-parent"); 555 target.parent().addClass("current"); 556 event.preventDefault(); 557 }); 558 } 559 } 560 SmoothMenuScroll(); 561 562 function OnePageMenuScroll() { 563 var windscroll = $(window).scrollTop(); 564 if (windscroll >= 117) { 565 var menuAnchor = $(".one-page-scroll-menu .scrollToLink").children("a"); 566 menuAnchor.each(function () { 567 var sections = $(this).attr("href"); 568 $(sections).each(function () { 569 if ($(this).offset().top <= windscroll + 100) { 570 var Sectionid = $(sections).attr("id"); 571 $(".one-page-scroll-menu").find("li").removeClass("current"); 572 $(".one-page-scroll-menu") 573 .find("li") 574 .removeClass("current-menu-ancestor"); 575 $(".one-page-scroll-menu") 576 .find("li") 577 .removeClass("current_page_item"); 578 $(".one-page-scroll-menu") 579 .find("li") 580 .removeClass("current-menu-parent"); 581 $(".one-page-scroll-menu") 582 .find("a[href*=\\#" + Sectionid + "]") 583 .parent() 584 .addClass("current"); 585 } 586 }); 587 }); 588 } else { 589 $(".one-page-scroll-menu li.current").removeClass("current"); 590 $(".one-page-scroll-menu li:first").addClass("current"); 591 } 592 } 593 594 // window scroll event 595 function stickyMenuUpScroll($targetMenu, $toggleClass) { 596 var lastScrollTop = 0; 597 window.addEventListener( 598 "scroll", 599 function () { 600 var st = window.pageYOffset || document.documentElement.scrollTop; 601 if (st > 500) { 602 if (st > lastScrollTop) { 603 // downscroll code 604 $targetMenu.removeClass($toggleClass); 605 // console.log("down"); 606 } else { 607 // upscroll code 608 $targetMenu.addClass($toggleClass); 609 // console.log("up"); 610 } 611 } else { 612 $targetMenu.removeClass($toggleClass); 613 } 614 lastScrollTop = st; 615 }, 616 false 617 ); 618 } 619 stickyMenuUpScroll($(".sticky-header--normal"), "active"); 620 621 //Strech Column 622 function ienet_stretch() { 623 var i = $(window).width(); 624 $(".row .ienet-stretch-element-inside-column").each(function () { 625 var $this = $(this), 626 row = $this.closest(".row"), 627 cols = $this.closest('[class^="col-"]'), 628 colsheight = $this.closest('[class^="col-"]').height(), 629 rect = this.getBoundingClientRect(), 630 l = row[0].getBoundingClientRect(), 631 s = cols[0].getBoundingClientRect(), 632 r = rect.left, 633 d = i - rect.right, 634 c = l.left + (parseFloat(row.css("padding-left")) || 0), 635 u = i - l.right + (parseFloat(row.css("padding-right")) || 0), 636 p = s.left, 637 f = i - s.right, 638 styles = { 639 "margin-left": 0, 640 "margin-right": 0 641 }; 642 if (Math.round(c) === Math.round(p)) { 643 var h = parseFloat($this.css("margin-left") || 0); 644 styles["margin-left"] = h - r; 645 } 646 if (Math.round(u) === Math.round(f)) { 647 var w = parseFloat($this.css("margin-right") || 0); 648 styles["margin-right"] = w - d; 649 } 650 $this.css(styles); 651 });
652 } 653 ienet_stretch(); 654 655 function ienet_cuved_circle() { 656 let circleTypeElm = $(".curved-circle--item"); 657 if (circleTypeElm.length) { 658 circleTypeElm.each(function () { 659 let elm = $(this); 660 let options = elm.data("circle-text-options"); 661 elm.circleType( 662 "object" === typeof options ? options : JSON.parse(options) 663 ); 664 }); 665 } 666 } 667 668 /*-- Price Range --*/ 669 function priceFilter() { 670 if ($(".price-ranger").length) { 671 $(".price-ranger #slider-range").slider({ 672 range: true, 673 min: 19, 674 max: 69, 675 values: [11, 500], 676 slide: function (event, ui) { 677 $(".price-ranger .ranger-min-max-block .min").val("$" + ui.values[0]); 678 $(".price-ranger .ranger-min-max-block .max").val("$" + ui.values[1]); 679 } 680 }); 681 $(".price-ranger .ranger-min-max-block .min").val( 682 "$" + $(".price-ranger #slider-range").slider("values", 0) 683 ); 684 $(".price-ranger .ranger-min-max-block .max").val( 685 "$" + $(".price-ranger #slider-range").slider("values", 1) 686 ); 687 } 688 } 689 690 // window load event 691 692 $(window).on("load", function () { 693 if ($(".preloader").length) { 694 $(".preloader").fadeOut(); 695 } 696 thmOwlInit(); 697 thmTinyInit(); 698 ienetSlickInit(); 699 priceFilter(); 700 701 if ($(".circle-progress").length) { 702 $(".circle-progress").appear(function () { 703 let circleProgress = $(".circle-progress"); 704 circleProgress.each(function () { 705 let progress = $(this); 706 let progressOptions = progress.data("options"); 707 progress.circleProgress(progressOptions); 708 }); 709 }); 710 } 711 if ($(".masonry-layout").length) { 712 $(".masonry-layout").imagesLoaded(function () { 713 $(".masonry-layout").isotope({ 714 layoutMode: "masonry" 715 }); 716 }); 717 } 718 if ($(".fitRow-layout").length) { 719 $(".fitRow-layout").imagesLoaded(function () { 720 $(".fitRow-layout").isotope({ 721 layoutMode: "fitRows" 722 }); 723 }); 724 } 725 726 if ($(".post-filter").length) { 727 var postFilterList = $(".post-filter li"); 728 // for first init 729 $(".filter-layout").isotope({ 730 filter: ".filter-item", 731 animationOptions: { 732 duration: 500, 733 easing: "linear", 734 queue: false 735 } 736 }); 737 // on click filter links 738 postFilterList.on("click", function () { 739 var Self = $(this); 740 var selector = Self.attr("data-filter"); 741 postFilterList.removeClass("active"); 742 Self.addClass("active"); 743 744 $(".filter-layout").isotope({ 745 filter: selector, 746 animationOptions: { 747 duration: 500, 748 easing: "linear", 749 queue: false 750 } 751 }); 752 return false; 753 }); 754 } 755 756 if ($(".post-filter.has-dynamic-filter-counter").length) { 757 // var allItem = $('.single-filter-item').length; 758 759 var activeFilterItem = $(".post-filter.has-dynamic-filter-counter").find( 760 "li" 761 ); 762 763 activeFilterItem.each(function () { 764 var filterElement = $(this).data("filter"); 765 var count = $(".filter-layout").find(filterElement).length; 766 $(this).append("<sup>[" + count + "]</sup>"); 767 }); 768 } 769 770 ienet_cuved_circle(); 771 }); 772 773 $(window).on("scroll", function () { 774 OnePageMenuScroll(); 775 handleScrollbar(); 776 if ($(".sticky-header--one-page").length) { 777 var headerScrollPos = 130; 778 var stricky = $(".sticky-header--one-page"); 779 if ($(window).scrollTop() > headerScrollPos) { 780 stricky.addClass("active"); 781 } else if ($(this).scrollTop() <= headerScrollPos) { 782 stricky.removeClass("active"); 783 } 784 } 785 786 var scrollToTopBtn = ".scroll-to-top"; 787 if (scrollToTopBtn.length) { 788 if ($(window).scrollTop() > 500) { 789 $(scrollToTopBtn).addClass("show"); 790 } else { 791 $(scrollToTopBtn).removeClass("show"); 792 } 793 } 794 }); 795 796 $(window).on("resize", function () { 797 ienet_stretch();
798 }); 799 800 // Sidebar 801 if ($(".main-header__toggler, .sidebar-one__overlay, .sidebar-one__close").length) { 802 $(".main-header__toggler, .sidebar-one__overlay, .sidebar-one__close").on("click", function (e) { 803 e.preventDefault(); 804 $(".sidebar-one").toggleClass("active"); 805 $("body").toggleClass("locked"); 806 }); 807 } 808})(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.