1/*============================================ 2 Project Name : Inspina 3 Company Name : G-Projects 4 Company URL: https://themeforest.net/user/g-projects 5 Project Description: Inspina is a Universal Shop HTML Template 6============================================*/ 7jQuery(document).ready(function (a) { 8 "use strict"; 9 //console.log('t120-----------------------') 10 document.querySelectorAll('.list-group a').forEach(function (link) { 11 if (link.getAttribute('href') === window.location.pathname) { 12 link.parentElement.classList.add('active'); 13 } else { 14 link.parentElement.classList.remove('active'); 15 } 16 }); 17 document.querySelectorAll('#site-menu li > a').forEach(function (link) { 18 console.log('t120----------------------- site-menu') 19 link.addEventListener('click', function () { 20 // ä½ çäºä»¶é»è¾ 21 console.log('t120----------------------- site-menu-click') 22 if (link.getAttribute('href') === window.location.pathname) { 23 link.parentElement.classList.add('active'); 24 } else { 25 link.parentElement.classList.remove('active'); 26 } 27 }); 28 }); 29 document.addEventListener("click", function (e) { 30 const title = e.target.closest(".widget-title-footer"); 31 if (!title) return; 32 33 const content = title.nextElementSibling; 34 const icon = title.querySelector("i"); 35 36 if (!content || !icon) return; 37 38 if (content.style.display === "none" || content.style.display === "") { 39 content.style.display = "block"; // å±å¼å 容 40 icon.classList.remove("fa-chevron-down"); 41 icon.classList.add("fa-chevron-up"); 42 } else { 43 content.style.display = "none"; // æ¶èµ·å 容 44 icon.classList.remove("fa-chevron-up"); 45 icon.classList.add("fa-chevron-down"); 46 } 47 }); 48 $(document).on('click', ".offcanvas-menu li.has-children > span > a[href='javascript:void(0);']", function (e) { 49 $(this).siblings(".sub-menu-toggle").trigger("click"); 50 e.preventDefault() 51 }); 52 $(document).on('click', ".has-children .sub-menu-toggle", function (e) { 53 $(this).parent().parent().parent().addClass("off-view"); 54 $(this).parent().parent().find("> .offcanvas-submenu").addClass("in-view"); 55 $(this).parents(".menu").css("height", $(this).parent().parent().find("> .offcanvas-submenu").height()); 56 e.preventDefault() 57 }); 58 $(document).on('click', ".offcanvas-menu .offcanvas-submenu .back-btn", function (e) { 59 $(this).parent().removeClass("in-view"); 60 $(this).parent().parent().siblings().parent().removeClass("off-view"); 61 "menu" === $(this).parent().parent().siblings().parent().attr("class") ? $(this).parents(".menu").css("height", "") : $(this).parents(".menu").css("height", $(this).parent().parent().siblings().parent().height()); 62 e.preventDefault() 63 }); 64 $(document).on('click', ".toolbar .lang-currency-switcher", function () { 65 $(this).parent().addClass("show"); 66 $(this).parent().find(".dropdown-menu").addClass("show") 67 }); 68 $(document).on('click', function (e) { 69 $(e.target).closest(".lang-currency-switcher-wrap").length || ($(".lang-currency-switcher-wrap").removeClass("show"), $(".lang-currency-switcher-wrap .dropdown-menu").removeClass("show")) 70 }); 71 $(document).on('click', ".widget-categories .has-children > a span", function () { 72 var currentParent = $(this).parent().parent(); 73 if (currentParent.is(".expanded")) { 74 currentParent.removeClass("expanded"); 75 //$(this).text('+'); 76 } else { 77 currentParent.addClass("expanded"); 78 //$(this).text('-'); 79 } 80 }); 81 $(document).on('click', ".property-tab .property-tab-item", function () { 82 document.querySelectorAll('.property-tab .property-tab-item').forEach(function (tabItem) { 83 tabItem.classList.remove('active'); 84 }); 85 $(this).addClass('active'); 86 }) 87 $(document).on('click', ".site-backdrop", function (e) { 88 console.log('äºä»¶å§æï¼å ³éä¾§è¾¹æ --------------') 89 c(); 90 }); 91 var selectors = { 92 body: 'body', 93 sitenav: '#site-menu', 94 navLinks: '#site-menu li > a', 95 menuToggle: '.js-mobile-nav-toggle', 96 mobilenav: '#mobile-menu', 97 menuLinks: '#mobile-menu .an', 98 closemenu: '.closemobileMenu', 99 sideCart: '#minicart-drawer' 100 }; 101 102 $(selectors.navLinks).each(function () { 103 if ($(this).attr('href') == window.location.pathname) { 104 $(this).parent().addClass('active'); 105 } 106 }); 107 $(selectors.closemenu).on("click", function () { 108 body: 'body', 109 $(selectors.mobilenav).toggleClass("active"); 110 $(selectors.body).toggleClass("menuOn"); 111 $(selectors.menuToggle).toggleClass('mobile-nav--open mobile-nav--close'); 112 $(selectors.body).removeClass("offcanvas-open"); 113 $(selectors.body).css("overflow", "visible") 114 }); 115 $(selectors.sideCart).on("click", function () { 116 $('.mfp-bg').addClass('mfp-ready'); 117 $('.minicart-right-drawer').addClass('show') 118 }); 119 $('#close-cart').on('click', function () { 120 121 $('.minicart-right-drawer').removeClass('show'); 122 $('.mfp-bg').removeClass('mfp-ready'); 123 124 }); 125 $('.mfp-bg').on('click', function () { 126 $('.minicart-right-drawer').removeClass('show'); 127 $('.mfp-bg').removeClass('mfp-ready'); 128 }); 129 /*---------------------------- 130 Product Sticky Bottom Cart 131 ------------------------------ */ 132 function shopLook_sticky_cart() { 133 // 注éæï¼å·²ç± stickyCart_t120.js æ¥ç®¡æ§å¶ 134 }; 135 //$(".stickyOptions .selectedOpt").on("click", function () { 136 // $(".stickyOptions ul").slideToggle("fast"); 137 //}), 138 // $(".stickyOptions .vrOpt").on("click", function (e) { 139 // var t = $(this).attr("data-val"), 140 // s = $(this).attr("data-no"), 141 // a = $(this).text(); 142 // $(".selectedOpt").text(a), $(".stickyCart .selectbox").val(t).trigger("change"), $(".stickyOptions ul").slideUp("fast"), this.productvariants = JSON.parse(document.getElementById("ProductJson-" + i).innerHTML), $(".stickyCart .product-featured-img").attr("src", this.productvariants.variants[s].featured_image.src.replace(/(\.[^\.]*$|$)/, "_60x60$&")); 143 // }); 144 145 shopLook_sticky_cart(); 146 //$('.btn-addto-cart').on('click', function (event) { 147 // event.stopPropagation(); 148 // //event.preventDefault() 149 // console.log("å å ¥è´ç©è½¦") 150 // $('.pro-addtocart-popup').addClass('show'); 151 // $('.pro-addtocart-popup').css('display', 'block'); 152 //}); 153 function b(b) { 154 var c = a("body"), d = a(b.target).attr("href"); 155 a(d).addClass("active"), console.log(d), c.css("overflow", "hidden"), c.addClass("offcanvas-open"), b.preventDefault() 156 } 157 //$(selectors.body).on("click", function () { 158 // $(selectors.body).removeClass("offcanvas-open"); 159 // $(selectors.mobilenav).removeClass("active") 160 //}); 161 162 function c() { 163 var b = a("body"); 164 b.removeClass("offcanvas-open"), setTimeout(function () { 165 b.css("overflow", "visible"), console.log("æ¶èµ·ä¾§è¾¹æ "), a(".offcanvas-container").removeClass("active") 166 }, 450) 167 } 168 169 function e(b) { 170 var c = b.item.index, d = a(".owl-item").eq(c).find("[data-hash]").attr("data-hash"); 171 a(".product-thumbnails li").removeClass("active"), a('[href="#' + d + '"]').parent().addClass("active"), a(".gallery-wrapper .gallery-item").removeClass("active"), a('[data-hash="' + d + '"]').parent().addClass("active") 172 } 173 174 (function () { 175 176 if ("number" == typeof window.innerWidth) return window.innerWidth > document.documentElement.clientWidth; 177 var a, b = document.documentElement || document.body; 178 void 0 !== b.currentStyle && (a = b.currentStyle.overflow), a = a || window.getComputedStyle(b, "").overflow; 179 var c; 180 void 0 !== b.currentStyle && (c = b.currentStyle.overflowY), c = c || window.getComputedStyle(b, "").overflowY; 181 var d = b.scrollHeight > b.clientHeight, e = /^(visible|auto)$/.test(a) || /^(visible|auto)$/.test(c), 182 f = "scroll" === a || "scroll" === c; 183 return d && e || f 184 })() && a("body").addClass("hasScrollbar"), a('a[href="#"]').on("click", function (a) { 185 a.preventDefault() 186 }), function () {
187 var b = a("body"), c = a(".navbar-sticky"), d = a(".topbar").outerHeight(), e = c.outerHeight(); 188 c.length && a(window).on("scroll", function () { 189 a(this).scrollTop() > d ? (c.addClass("navbar-stuck"), c.hasClass("navbar-ghost") || b.css("padding-top", e)) : (c.removeClass("navbar-stuck"), b.css("padding-top", 0)) 190 }) 191 }(), function (b, c, d, e) { 192 a(b).on("click", function () { 193 a(e).addClass("search-visible"), setTimeout(function () { 194 a(e + " > input").focus() 195 }, 200) 196 }), a(c).on("click", function () { 197 a(e).removeClass("search-visible") 198 }), a(d).on("click", function () { 199 a(e + " > input").val(""), setTimeout(function () { 200 a(e + " > input").focus() 201 }, 200) 202 }) 203 }(".toolbar .tools .search", ".close-search", ".clear-search", ".site-search"), a(".topbar").on("click", " .lang-currency-switcher", function () { 204 205 a(this).parent().addClass("show"), a(this).parent().find(".dropdown-menu").addClass("show") 206 }), a(document).on("click", function (b) { 207 208 a(b.target).closest(".lang-currency-switcher-wrap").length || (a(".lang-currency-switcher-wrap").removeClass("show"), a(".lang-currency-switcher-wrap .dropdown-menu").removeClass("show")) 209 }), a('[data-toggle="offcanvas"]').on("click", b), a(".site-backdrop").on("click", c); 210 a(".offcanvas-menu .offcanvas-submenu").each(function () { 211 if (a(this).children(".back-btn").length === 0) { 212 a(this).prepend('<li class="back-btn"><a href="#">Back</a></li>') 213 } 214 }); 215 216 var g = a(".has-children .sub-menu-toggle"); 217 218 //a(".offcanvas-menu .offcanvas-submenu .back-btn").on("click", function (b) { 219 // var c = this, d = a(c).parent(), e = a(c).parent().parent().siblings().parent(), g = a(c).parents(".menu"); 220 // d.removeClass("in-view"), e.removeClass("off-view"), "menu" === e.attr("class") ? g.css("height", f) : g.css("height", e.height()), b.preventDefault() 221 //}), g.on("click", function (b) { 222 // var c = this, d = a(c).parent().parent().parent(), e = a(c).parents(".menu"); 223 // return d.addClass("off-view"), a(c).parent().parent().find("> .offcanvas-submenu").addClass("in-view"), e.css("height", a(c).parent().parent().find("> .offcanvas-submenu").height()), b.preventDefault(), !1 224 //}); 225 var h = a(".scroll-to-top-btn"); 226 if (h.length > 0 && (a(window).on("scroll", function () { 227 a(this).scrollTop() > 600 ? h.addClass("visible") : h.removeClass("visible") 228 }), h.on("click", function (b) { 229 b.preventDefault(), a("html").velocity("scroll", { 230 offset: 0, 231 duration: 1200, 232 easing: "easeOutExpo", 233 mobileHA: !1 234 }) 235 })), a(document).on("click", ".scroll-to", function (b) { 236 var c = a(this).attr("href"); 237 if ("#" === c) return !1; 238 var d = a(c); 239 if (d.length > 0) { 240 var e = d.data("offset-top") || 70; 241 a("html").velocity("scroll", { 242 offset: a(this.hash).offset().top - e, 243 duration: 1e3, 244 easing: "easeOutExpo", 245 mobileHA: !1 246 }) 247 } 248 b.preventDefault() 249 }), function (b) { 250 b.each(function () { 251 var b = a(this), c = b.data("filter-list"), d = b.find("input[type=text]"), 252 e = b.find("input[type=radio]"), f = a(c).find(".list-group-item"); 253 d.keyup(function () { 254 var b = d.val(); 255 f.each(function () { 256 0 == a(this).text().toLowerCase().indexOf(b.toLowerCase()) ? a(this).show() : a(this).hide() 257 }) 258 }), e.on("click", function (b) { 259 var c = a(this).val(); 260 "all" !== c ? (f.hide(), a("[data-filter-item=" + c + "]").show()) : f.show() 261 }) 262 }) 263 }(a("[data-filter-list]")), function (b, c) { 264 b.each(function () { 265 var b = a(this), d = a(this).data("date-time"); 266 // é²å¾¡ï¼2026-08-26ï¼ï¼æªé ç½®ç»ææ¶é´ç .countdown ç´æ¥è·³è¿ãdownCount 267 // è§£ææ ææ¥æä¼æ "Date is not defined"ï¼å¼å¸¸ç©¿é jQuery each å¹¶ææ 268 // æ¬ ready éå·é¾åç»å ¨é¨åå§åï¼data-toast çï¼ââ宿µ mode_1 å è 269 // åå¨ä¸¤ä¸ªæ data-date-time çå计æ¶å ç´ ï¼å±æ¢ææ°æ®ç¼ºé·ï¼è·³è¿ä¿æ¤åç»é¾ã 270 if (!d) return; 271 // PSI ä¼åï¼ä¸ visualBlockLoader_t120.js çå计æ¶éæ¾å ±ç¨ data-vbl-countdown 272 // äºæ¥æ è®°ï¼é²æ¢ Ajax æ³¨å ¥åççå计æ¶è¢«åéåå§åï¼count.min.js æ å®ä¾ 273 // 管çï¼éå¤è°ç¨ä¼å å ç¬ç«å®æ¶å¨ï¼ãé Ajax 页é¢ä»ä¸ºä¸æ¬¡æ§åå§åï¼è¡ä¸ºä¸åã 274 if (b.attr("data-vbl-countdown") == "1") return; 275 b.attr("data-vbl-countdown", "1"); 276 (c || b).downCount({ date: d, offset: 8 }) 277 }) 278 }(a(".countdown")), a("[data-toast]").on("click", function () { 279 var b = a(this), c = b.data("toast-type"), d = b.data("toast-icon"), e = b.data("toast-position"), 280 f = b.data("toast-title"), g = b.data("toast-message"), h = ""; 281 switch (e) { 282 case "topRight": 283 h = { 284 class: "iziToast-" + c || "", 285 title: f || "Title", 286 message: g || "toast message", 287 animateInside: !1, 288 position: "topRight", 289 progressBar: !1, 290 icon: d, 291 timeout: 3200, 292 transitionIn: "fadeInLeft", 293 transitionOut: "fadeOut", 294 transitionInMobile: "fadeIn", 295 transitionOutMobile: "fadeOut" 296 }; 297 break; 298 case "bottomRight": 299 h = { 300 class: "iziToast-" + c || "", 301 title: f || "Title", 302 message: g || "toast message", 303 animateInside: !1, 304 position: "bottomRight", 305 progressBar: !1, 306 icon: d, 307 timeout: 3200, 308 transitionIn: "fadeInLeft", 309 transitionOut: "fadeOut", 310 transitionInMobile: "fadeIn", 311 transitionOutMobile: "fadeOut" 312 }; 313 break; 314 case "topLeft": 315 h = { 316 class: "iziToast-" + c || "", 317 title: f || "Title", 318 message: g || "toast message", 319 animateInside: !1, 320 position: "topLeft", 321 progressBar: !1, 322 icon: d, 323 timeout: 3200, 324 transitionIn: "fadeInRight", 325 transitionOut: "fadeOut", 326 transitionInMobile: "fadeIn", 327 transitionOutMobile: "fadeOut" 328 }; 329 break; 330 case "bottomLeft": 331 h = { 332 class: "iziToast-" + c || "", 333 title: f || "Title", 334 message: g || "toast message", 335 animateInside: !1, 336 position: "bottomLeft", 337 progressBar: !1, 338 icon: d, 339 timeout: 3200, 340 transitionIn: "fadeInRight", 341 transitionOut: "fadeOut", 342 transitionInMobile: "fadeIn", 343 transitionOutMobile: "fadeOut" 344 }; 345 break; 346 case "topCenter": 347 h = { 348 class: "iziToast-" + c || "", 349 title: f || "Title", 350 message: g || "toast message", 351 animateInside: !1, 352 position: "topCenter", 353 progressBar: !1, 354 icon: d, 355 timeout: 3200, 356 transitionIn: "fadeInDown", 357 transitionOut: "fadeOut", 358 transitionInMobile: "fadeIn", 359 transitionOutMobile: "fadeOut" 360 }; 361 break; 362 case "bottomCenter": 363 h = { 364 class: "iziToast-" + c || "", 365 title: f || "Title", 366 message: g || "toast message", 367 animateInside: !1, 368 position: "bottomCenter", 369 progressBar: !1, 370 icon: d, 371 timeout: 3200, 372 transitionIn: "fadeInUp", 373 transitionOut: "fadeOut", 374 transitionInMobile: "fadeIn", 375 transitionOutMobile: "fadeOut" 376 }; 377 break; 378 default: 379 h = { 380 class: "iziToast-" + c || "", 381 title: f || "Title", 382 message: g || "toast message", 383 animateInside: !1, 384 position: "topRight", 385 progressBar: !1, 386 icon: d, 387 timeout: 3200, 388 transitionIn: "fadeInLeft", 389 transitionOut: "fadeOut", 390 transitionInMobile: "fadeIn", 391 transitionOutMobile: "fadeOut" 392 } 393 } 394 iziToast.show(h) 395 }), a(".isotope-grid").length) var i = a(".isotope-grid").imagesLoaded(function () { 396 i.isotope({ 397 itemSelector: ".grid-item", 398 transitionDuration: "0.7s", 399 masonry: { columnWidth: ".grid-sizer", gutter: ".gutter-sizer" } 400 }) 401 }); 402 if (a(".filter-grid").length > 0) { 403 var j = a(".filter-grid"); 404 a(".nav-pills").on("click", "a", function (b) { 405 b.preventDefault(), a(".nav-pills a").removeClass("active"), a(this).addClass("active"); 406 var c = a(this).attr("data-filter"); 407 j.isotope({ filter: c }) 408 }) 409 } 410 //var k = a(".widget-categories .has-children > a span"); 411 //k.on("click", function (b) { 412 // var currentParent = a(this).parent().parent(); 413 // if (currentParent.is(".expanded")) { 414 // currentParent.removeClass("expanded"); 415 // a(this).text('+'); 416 // } else { 417 // currentParent.addClass("expanded"); 418 // a(this).text('-'); 419 // } 420 //}), 421 a('[data-toggle="tooltip"]').tooltip(), a('[data-toggle="popover"]').popover(); 422 var l = document.querySelector(".ui-range-slider"); 423 if (void 0 !== l && null !== l) { 424 var m = parseInt(l.parentNode.getAttribute("data-start-min"), 10), 425 n = parseInt(l.parentNode.getAttribute("data-start-max"), 10), 426 o = parseInt(l.parentNode.getAttribute("data-min"), 10), 427 p = parseInt(l.parentNode.getAttribute("data-max"), 10), 428 q = parseInt(l.parentNode.getAttribute("data-step"), 10), 429 r = document.querySelector(".ui-range-value-min span"), 430 s = document.querySelector(".ui-range-value-max span"), 431 t = document.querySelector(".ui-range-value-min input"), 432 u = document.querySelector(".ui-range-value-max input"); 433 // Override start values from URL if present 434 try { 435 var params = new URL(window.location.href).searchParams; 436 var urlMin = parseInt(params.get('minPrice'), 10); 437 var urlMax = parseInt(params.get('maxPrice'), 10); 438 if (!isNaN(urlMin)) { 439 m = Math.max(o, Math.min(urlMin, p)); 440 } 441 if (!isNaN(urlMax)) { 442 n = Math.max(o, Math.min(urlMax, p)); 443 } 444 if (m > n) { var tmp = m; m = n; n = tmp; } 445 } catch (e) { } 446 noUiSlider.create(l, { 447 start: [m, n], 448 connect: !0, 449 step: q, 450 range: { min: o, max: p } 451 }), l.noUiSlider.on("update", function (a, b) { 452 var c = a[b]; 453 b ? (s.innerHTML = Math.round(c), u.value = Math.round(c)) : (r.innerHTML = Math.round(c), t.value = Math.round(c)) 454 }) 455 } 456 var v = a(".interactive-credit-card"); 457 if (v.length && v.card({ 458 form: ".interactive-credit-card", 459 container: ".card-wrapper" 460 }), a(".gallery-wrapper").length) { 461 !function (b) { 462 function c(a, b) { 463 return (" " + a.className + " ").indexOf(" " + b + " ") > -1 464 } 465 466 for (var d = function (b) { 467 for (var c, d, e, f, g = a(b).find(".gallery-item:not(.isotope-hidden)").get(), h = g.length, i = [], j = 0; j < h; j++) c = g[j], 1 === c.nodeType && (d = c.children[0], "video" == a(d).data("type") ? f = { html: a(d).data("video") } : (e = d.getAttribute("data-size").split("x"), f = { 468 src: d.getAttribute("href"), 469 w: parseInt(e[0], 10), 470 h: parseInt(e[1], 10) 471 }), c.children.length > 1 && (f.title = a(c).find(".caption").html()), d.children.length > 0 && (f.msrc = d.children[0].getAttribute("src")), f.el = c, i.push(f)); 472 return i 473 }, e = function a(b, c) { 474 return b && (c(b) ? b : a(b.parentNode, c)) 475 }, f = function (b) { 476 b = b || window.event, b.preventDefault ? b.preventDefault() : b.returnValue = !1; 477 var d = b.target || b.srcElement, f = e(d, function (a) { 478 return c(a, "gallery-item") 479 }); 480 if (f) { 481 for (var h, i = f.closest(".gallery-wrapper"), j = a(f.closest(".gallery-wrapper")).find(".gallery-item:not(.isotope-hidden)").get(), k = j.length, l = 0, m = 0; m < k; m++) if (1 === j[m].nodeType) { 482 if (j[m] === f) { 483 h = l; 484 break 485 } 486 l++ 487 } 488 return h >= 0 && g(h, i), !1 489 } 490 }, g = function (b, c, e, f) { 491 var g, h, i, j = document.querySelectorAll(".pswp")[0]; 492 if (i = d(c), h = { 493 closeOnScroll: !1, 494 galleryUID: c.getAttribute("data-pswp-uid"), 495 getThumbBoundsFn: function (b) { 496 var c = i[b].el.getElementsByTagName("img")[0]; 497 if (a(c).length > 0) { 498 var d = window.pageYOffset || document.documentElement.scrollTop, 499 e = c.getBoundingClientRect(); 500 return { x: e.left, y: e.top + d, w: e.width } 501 } 502 } 503 }, f) if (h.galleryPIDs) { 504 for (var k = 0; k < i.length; k++) if (i[k].pid == b) { 505 h.index = k; 506 break 507 } 508 } else h.index = parseInt(b, 10) - 1; else h.index = parseInt(b, 10); 509 isNaN(h.index) || (e && (h.showAnimationDuration = 0), g = new PhotoSwipe(j, PhotoSwipeUI_Default, i, h), g.init(), g.listen("beforeChange", function () { 510 var b = a(g.currItem.container); 511 a(".pswp__video").removeClass("active"); 512 b.find(".pswp__video").addClass("active"); 513 a(".pswp__video").each(function () { 514 a(this).hasClass("active") || a(this).attr("src", a(this).attr("src")) 515 }) 516 }), g.listen("close", function () { 517 a(".pswp__video").each(function () { 518 a(this).attr("src", a(this).attr("src")) 519 }) 520 })) 521 }, h = document.querySelectorAll(b), i = 0, j = h.length; i < j; i++) h[i].setAttribute("data-pswp-uid", i + 1), h[i].onclick = f; 522 var k = function () { 523 var a = window.location.hash.substring(1), b = {}; 524 if (a.length < 5) return b; 525 for (var c = a.split("&"), d = 0; d < c.length; d++) if (c[d])
525{ 526 var e = c[d].split("="); 527 e.length < 2 || (b[e[0]] = e[1]) 528 } 529 return b.gid && (b.gid = parseInt(b.gid, 10)), b 530 }(); 531 k.pid && k.gid && g(k.pid, h[k.gid - 1], !0, !0) 532 }(".gallery-wrapper") 533 } 534 var w = a(".product-carousel"); 535 w.length && w.owlCarousel({ 536 items: 1, 537 loop: !1, 538 dots: !1, 539 URLhashListener: !0, 540 startPosition: "URLHash", 541 onTranslate: e 542 }); 543 var x = a(".google-map"); 544 x.length && x.each(function () { 545 var b = a(this).data("height"), c = a(this).data("address"), d = a(this).data("zoom"), e = a(this).data("disable-controls"), f = a(this).data("scrollwheel"), g = a(this).data("marker"), h = a(this).data("marker-title"), i = a(this).data("styles"); 546 a(this).height(b), a(this).gmap3({ 547 marker: { 548 address: c, 549 data: h, 550 options: { icon: g }, 551 events: { 552 mouseover: function (b, c, d) { 553 var e = a(this).gmap3("get"), f = a(this).gmap3({ get: { name: "infowindow" } }); 554 f ? (f.open(e, b), f.setContent(d.data)) : a(this).gmap3({ 555 infowindow: { 556 anchor: b, 557 options: { content: d.data } 558 } 559 }) 560 }, mouseout: function () { 561 var b = a(this).gmap3({ get: { name: "infowindow" } }); 562 b && b.close() 563 } 564 } 565 }, map: { options: { zoom: d, disableDefaultUI: e, scrollwheel: f, styles: i } } 566 }) 567 }) 568});
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.