PageSourceSearch

https://playlistretreat.com/assets/js/scripts.js

js playlistretreat.com collected 2026-10-09 04:10:04 UTC 19,443 bytes, 721 lines download raw bytes

1// @ts-ignore: Suppress unused variable warning
2
3(function ($) {
4  "use strict";
5
6  $(window).on("load", function () {
7    $(".preloader").delay(350).fadeOut("slow");
8  });
9
10
11
12  // =======Blog-gradient-border========>>>>>
13  $(document).ready(function () {
14    $('.blog-content').hover(
15      function () {
16        if ($('html').attr('data-bs-theme') === 'dark') {
17          $(this).addClass('blog-gradient-border');
18        }
19      },
20      function () {
21        $(this).removeClass('blog-gradient-border');
22      }
23    );
24  });
25  // =======Blog-gradient-border========>>>>>
26
27
28  // =======Social share========>>>>>
29  if ($('.share-link').length > 0) {
30    $('.share-link').on('click', function (event) {
31      event.preventDefault();
32      let iconList = $('.social-icons-list');
33      iconList.toggleClass('social-icons-toggle');
34    });
35  }
36  // =======Social share========>>>>>
37
38
39  // =======CounterUp JS-Odometer========>>>>>
40  if ($('.odometer').length > 0) {
41    $(window).on('scroll', function () {
42      let preloaderTimeout = 2500;
43
44      function winScrollPosition() {
45        var scrollPos = $(window).scrollTop(),
46          winHeight = $(window).height();
47        var scrollPosition = Math.round(scrollPos + winHeight / 0.07);
48        return scrollPosition;
49      }
50
51      var odometerElement = $('.odometer');
52      if (odometerElement.length > 0) {
53        var elemOffset = odometerElement.offset()?.top; // Check if offset exists
54        if (elemOffset && elemOffset < winScrollPosition()) {
55          setTimeout(function () {
56            $('.odometer').each(function () {
57              $(this).html($(this).data('count-to'));
58            });
59          }, preloaderTimeout + 200);
60        }
61      }
62    });
63  }
64
65  setTimeout(() => {
66    // =======CounterUp JS-Odometer========>>>>>
67
68    // =======Circle========>>>>>
69    const text = document.querySelector('.rotate-text p');
70    if (text) {
71      text.innerHTML = text.innerText.split("").map(
72        (char, i) =>
73        `<span style="transform:rotate(${i*9.6}deg)">${char}</span>`
74      ).join("");
75    }
76
77    const text2 = document.querySelector('.rotate-text2 p');
78    if (text2) {
79      text2.innerHTML = text2.innerText.split("").map(
80        (char, i) =>
81        `<span style="transform:rotate(${i*9.6}deg)">${char}</span>`
82      ).join("");
83    }
84
85    const text3 = document.querySelector('.rotate-text3 p');
86    if (text3) {
87      text3.innerHTML = text3.innerText.split("").map(
88        (char, i) =>
89        `<span style="transform:rotate(${i*9.6}deg)">${char}</span>`
90      ).join("");
91    }
92
93    const text4 = document.querySelector('.rotate-text4 p');
94    if (text4) {
95      text4.innerHTML = text4.innerText.split("").map(
96        (char, i) =>
97        `<span style="transform:rotate(${i*9.6}deg)">${char}</span>`
98      ).join("");
99    }
100
101    // =======Circle========>>>>>
102
103    // =======Swiper .ticket-swiper========>>>>>
104    if ($('.ticket-swiper').length > 0) {
105      new Swiper(".ticket-swiper", {
106        loop: true,
107        grabCursor: true,
108        slidesPerView: 1,
109        autoplay: {
110          delay: 5000,
111        },
112        pagination: {
113          el: ".ticket-swiper-pagination",
114          clickable: true,
115        },
116      });
117    }
118    // =======Swiper .ticket-swiper========>>>>>
119
120
121    // =======Swiper .swiper_gallery========>>>>>
122    if ($('.swiper_gallery').length > 0) {
123      new Swiper(".swiper_gallery", {
124        autoplay: {
125          delay: 0,
126        },
127        slidesPerView: 'auto',
128        pauseOnMouseEnter: true,
129        speed: 6000,
130        spaceBetween: 30,
131        loop: true,
132        pagination: false,
133        navigation: false,
134      });
135    }
136    if ($('.swiper_gallery3').length > 0) {
137      new Swiper(".swiper_gallery3", {
138        autoplay: {
139          delay: 0,
140        },
141        slidesPerView: 'auto',
142        pauseOnMouseEnter: true,
143        speed: 6000,
144        spaceBetween: 30,
145        loop: true,
146        pagination: false,
147        navigation: false,
148      });
149    }
150    if ($('.swiper_gallery2').length > 0) {
151      new Swiper(".swiper_gallery2", {
152        autoplay: {
153          delay: 0,
154        },
155        slidesPerView: 'auto',
156        pauseOnMouseEnter: true,
157        speed: 7000,
158        spaceBetween: 30,
159        loop: true,
160        pagination: false,
161        navigation: false,
162      });
163    }
164    // =======Swiper .swiper_gallery========>>>>>
165
166    // =======Swiper .highlight-swiper========>>>>>
167    new Swiper(".highlight-swiper", {
168      loop: true,
169      grabCursor: true,
170      spaceBetween: 20,
171      breakpoints: {
172        430: {
173          slidesPerView: 1,
174          slidesPerGroup: 1,
175          spaceBetween: 20
176        },
177        768: {
178          slidesPerView: 2,
179          slidesPerGroup: 1,
180          spaceBetween: 20
181        },
182        1100: {
183          slidesPerView: 3,
184          slidesPerGroup: 1,
185          spaceBetween: 20
186        }
187      },
188      pagination: {
189        el: ".swiper-pagination",
190        type: "progressbar",
191      },
192    });
193
194
195    //highlight-swiper-overflow========>>>>>
196    new Swiper(".highlight-swiper-overflow", {
197      loop: false,
198      grabCursor: true,
199      spaceBetween: 20,
200      breakpoints: {
201        430: {
202          slidesPerView: 1,
203          slidesPerGroup: 1,
204          spaceBetween: 20
205        },
206        768: {
207          slidesPerView: 2,
208          slidesPerGroup: 1,
209          spaceBetween: 20
210        },
211        1100: {
212          slidesPerView: 3,
213          slidesPerGroup: 1,
214          spaceBetween: 20
215        }
216      },
217      pagination: {
218        el: ".swiper-pagination",
219        type: "progressbar",
220      },
221    });
222    //highlight-swiper-overflow========>>>>
223
224    // if ($('.lineup-swiper').length > 0) {
225    //   new Swiper(".lineup-swiper", {
226    //     loop: true,
227    //     grabCursor: true,
228    //     pauseOnMouseEnter: true,
229    //     speed: 2000, // Increase transition speed for smooth feel
230    //     autoplay: {
231    //       delay: 0, // No delay between transitions
232    //     },
233    //     freeMode: true, // Enable free scrolling
234    //     freeModeMomentum: false, // Disable momentum for constant speed
235    //     spaceBetween: 20,
236    //     breakpoints: {
237    //       380: {
238    //         slidesPerView: 1,
239    //         slidesPerGroup: 1,
240    //       },
241    //       430: {
242    //         slidesPerView: 2,
243    //         slidesPerGroup: 2,
244    //       },
245    //       900: {
246    //         slidesPerView: 3,
247    //       }
248    //     },
249    //     pagination: {
250    //       el: ".lineup-swiper-pagination",
251    //       type: "progressbar",
252    //       speed: 0,
253    //     },
254    //     navigation: {
255    //       nextEl: ".swiper-button-next",
256    //       prevEl: ".swiper-button-prev",
257    //       speed: 0,
258    //     },
259    //   });
260    // }
261
262    // =======Swiper .highlight-2-swiper========>>>>>
263    new Swiper(".highlight-2-swiper", {
264      loop: true,
265      grabCursor: true,
266      spaceBetween: 20,
267      breakpoints: {
268        430: {
269          slidesPerView: 1,
270          slidesPerGroup: 1,
271          spaceBetween: 20
272        },
273        993: {
274          slidesPerView: 2,
275          slidesPerGroup: 1,
276          spaceBetween: 20
277        },
278        1400: {
279          slidesPerView: 3,
280          slidesPerGroup: 1,
281          spaceBetween: 20
282        }
283      },
284      pagination: {
285        el: ".swiper-pagination",
286        type: "progressbar",
287      },
288    });
289    // =======Swiper .highlight-2-swiper========>>>>>
290
291    // =======Swiper .brand-swiper========>>>>>
292    new Swiper(".brand-swiper", {
293      loop: true,
294      grabCursor: true,
295      pauseOnMouseEnter: true,
296      speed: 5000, // Increase transition speed for smooth feel
297      autoplay: {
298        delay: 0, // No delay between transitions
299        disableOnInteraction: false,
300      },
301      slidesPerView: 'auto',
302      spaceBetween: 50,
303      firstSlide: 0,
304      // breakpoints: {
305      //   300: {
306      //     slidesPerView: 2,
307      //     slidesPerGroup: 2,
308      //     spaceBetween: 20,
309      //   },
310      //   490: {
311      //     slidesPerView: 3,
312      //     slidesPerGroup: 2,
313      //     spaceBetween: 20
314      //   },
315      //   720: {
316      //     slidesPerView: 3,
317      //     slidesPerGroup: 2,
318      //     spaceBetween: 40
319      //   },
320      //   900: {
321      //     slidesPerView: 4,
322      //     slidesPerGroup: 2,
323      //     spaceBetween: 60
324      //   },
325      //   1200: {
326      //     slidesPerView: 5,
327      //     slidesPerGroup: 2,
328      //     spaceBetween: 90
329      //   }
330      // },
331      pagination: {
332        el: ".swiper-pagination",
333        type: "progressbar",
334      },
335      navigation: {
336        nextEl: ".swiper-button-next",
337        prevEl: ".swiper-button-prev",
338      },
339    });
340    // =======Swiper .brand-swiper========>>>>>
341
342    // =======Swiper .blog-swiper========>>>>>
343    new Swiper(".blog-swiper", {
344      loop: false,
345      // grabCursor: true,
346      spaceBetween: 20,
347
348      breakpoints: {
349        420: {
350          slidesPerView: 1,
351          slidesPerGroup: 1,
352          spaceBetween: 20
353        },
354        768: {
355          slidesPerView: 2,
356          slidesPerGroup: 1,
357          spaceBetween: 30
358        },
359      },
360
361      pagination: {
362        el: ".swiper-pagination",
363        type: "progressbar",
364      },
365      navigation: {
366        nextEl: ".swiper-button-next",
367        prevEl: ".swiper-button-prev",
368      },
369
370    });
371    // =======Swiper .blog-swiper========>>>>>
372
373
374    // =======Swiper .blog-swiper-2========>>>>>
375    new Swiper(".blog-swiper-2 ", {
376      loop: true,
377      grabCursor: true,
378      spaceBetween: 20,
379      breakpoints: {
380
381        330: {
382          slidesPerView: 1,
383          slidesPerGroup: 1,
384          spaceBetween: 20
385        },
386        540: {
387          slidesPerView: 2,
388          slidesPerGroup: 1,
389          spaceBetween: 20
390        },
391        1100: {
392          slidesPerView: 3,
393          slidesPerGroup: 1,
394          spaceBetween: 30
395        }
396      },
397
398      pagination: {
399        el: ".swiper-pagination",
400        type: "progressbar",
401      },
402    });
403    // =======Swiper .blog-swiper-2========>>>>>
404
405
406    // =======Swiper .blog-swiper-3========>>>>>
407    new Swiper(".blog-swiper-3 ", {
408      loop: true,
409      grabCursor: true,
410      spaceBetween: 30,
411      breakpoints: {
412
413        430: {
414          slidesPerView: 1,
415          slidesPerGroup: 1,
416          spaceBetween: 30
417        },
418        700: {
419          slidesPerView: 2,
420          slidesPerGroup: 1,
421          spaceBetween: 30
422        },
423      },
424
425      pagination: {
426        el: ".swiper-pagination",
427        type: "progressbar",
428      },
429    });
430    // =======Swiper .blog-swiper-3========>>>>>
431
432
433    // =======Swiper .merchandise-swiper========>>>>>
434    new Swiper(".merchandise-swiper", {
435      loop: true,
436      grabCursor: true,
437      spaceBetween: 30,
438      breakpoints: {
439        420: {
440          slidesPerView: 1,
441          slidesPerGroup: 1,
442          spaceBetween: 30
443        },
444        768: {
445          slidesPerView: 2,
446          slidesPerGroup: 1,
447          spaceBetween: 30
448        },
449        1100: {
450          slidesPerView: 3,
451          slidesPerGroup: 1,
452          spaceBetween: 20
453        },
454        1500: {
455          slidesPerView: 4,
456          slidesPerGroup: 1,
457          spaceBetween: 20
458        },
459      },
460
461      pagination: {
462        el: ".swiper-pagination",
463        type: "progressbar",
464      },
465      navigation: {
466        nextEl: ".swiper-button-next",
467        prevEl: ".swiper-button-prev",
468      },
469
470    });
471    // =======Swiper .merchandise-swiper========>>>>>
472
473
474    // =======Swiper .blog-2-swiper========>>>>>
475    new Swiper(".blog-2-swiper", {
476      loop: true,
477      // grabCursor: true,
478      spaceBetween: 30,
479      breakpoints: {
480        769: {
481          slidesPerView: 1,
482          slidesPerGroup: 1,
483          spaceBetween: 30
484        },
485        770: {
486          slidesPerView: 2,
487          slidesPerGroup: 1,
488          spaceBetween: 30
489        },
490        1100: {
491          slidesPerView: 3,
492          slidesPerGroup: 1,
493          spaceBetween: 30
494        }
495      },
496      pagination: {
497        el: ".swiper-pagination",
498        type: "progressbar",
499      },
500      navigation: {
501        nextEl: ".swiper-button-next",
502        prevEl: ".swiper-button-prev",
503      },
504    });
505    // =======Swiper .blog-2-swiper========>>>>>
506
507
508    // =======Swiper .pricing-swiper========>>>>>
509    new Swiper(".pricing-swiper", {
510      loop: true,
511      grabCursor: true,
512      spaceBetween: 30,
513      breakpoints: {
514        500: {
515          slidesPerView: 1,
516          slidesPerGroup: 1,
517        },
518        769: {
519          slidesPerView: 2,
520          slidesPerGroup: 1,
521          spaceBetween: 30
522        },
523
524        1200: {
525          slidesPerView: 3,
526          slidesPerGroup: 1,
527          spaceBetween: 30
528        }
529      },
530
531      pagination: {
532        el: ".swiper-pagination",
533        type: "progressbar",
534      },
535
536    });
537    // =======Swiper .pricing-swiper========>>>>>
538
539
540    // =========Button(Increse-Decrese)=========>>>>>
541    var buttonPlus = $(".plus-icon");
542    var buttonMinus = $(".dash-icon");
543
544    var incrementPlus = buttonPlus.click(function () {
545      var $n = $(this)
546        .parent(".ticket-amounts")
547        .find(".input-number");
548      $n.val(Number($n.val()) + 1);
549    });
550
551    var incrementMinus = buttonMinus.click(function () {
552      var $n = $(this)
553        .parent(".ticket-amounts")
554        .find(".input-number");
555      var amount = Number($n.val());
556      if (amount > 1) {
557        $n.val(amount - 1);
558      }
559    });
560    // =========Button(Increse-Decrese)=========>>>>>
561
562
563    // =========Ticket-Section Radio-Input=========>>>>>
564    $('input:radio:checked').parent().addClass("radio-checked-bg border-transparent");
565    $('input:radio').click(function () {
566      $('input:not(:checked)').parent().removeClass("radio-checked-bg border-transparent");
567      $('input:checked').parent().addClass("radio-checked-bg border-transparent");
568    });
569    // =========Ticket-Section Radio-Input=========>>>>>
570
571
572    // =======Magnific-PopUp========>>>>>
573    $('.image-link').magnificPopup({
574      type: 'image',
575      gallery: {
576        enabled: true
577      },
578      zoom: {
579        enabled: true,
580        duration: 300, // don't foget to change the duration also in CSS
581        opener: function (element) {
582          return element.find('img');
583        }
584      }
585    });
586
587
588    // Video popup
589    $('.video-popup-link').magnificPopup({
590      disableOn: 200,
591      type: 'iframe',
592      mainClass: 'mfp-fade',
593      removalDelay: 160,
594      preloader: false,
595      fixedContentPos: false
596    });
597    $('.video-popup-link2').magnificPopup({
598      disableOn: 200,
599      type: 'iframe',
600      mainClass: 'mfp-fade',
601      removalDelay: 160,
602      preloader: false,
603      fixedContentPos: false
604    });
605    // =======Magnific-PopUp========>>>>>
606
607    if ($('.hover-area').length > 0) {
608      var ball = document.querySelector(".ball");
609      var cursorText = document.querySelector(".cursor-text");
610
611      var hoverAreas = document.querySelectorAll('.hover-area');
612
613      var lastHoveredElement = null;
614
615      function updateCursor(e) {
616        var x = e.clientX;
617        var y = e.clientY;
618
619        var scrollX = window.pageXOffset || document.documentElement.scrollLeft;
620        var scrollY = window.pageYOffset || document.documentElement.scrollTop;
621
622        ball.style.left = x + scrollX + "px";
623        ball.style.top = y + scrollY + "px";
624        cursorText.style.left = x + scrollX + "px";
625        cursorText.style.top = y + scrollY + "px";
626
627        if (lastHoveredElement === null) {
628          ball.style.display = 'block';
629          ball.style.height = "10px";
630          ball.style.width = "10px";
631          cursorText.style.opacity = '0';
632        }
633      }
634
635      function handleHoverEnter(e) {
636        cursorText.innerHTML = e.target.getAttribute('data-cursor-text');
637        cursorText.style.opacity = '1';
638        ball.style.height = "50px";
639        ball.style.width = "130px";
640
641        lastHoveredElement = e.target;
642      }
643
644      function handleHoverLeave(_e) {
645        cursorText.style.opacity = '0';
646        ball.style.display = 'block';
647
648        lastHoveredElement = null;
649      }
650
651      document.addEventListener('mousemove', updateCursor);
652
653      hoverAreas.forEach(function (elem) {
654        elem.addEventListener('mouseenter', handleHoverEnter);
655        elem.addEventListener('mouseleave', handleHoverLeave);
656      });
657    }
658  }, 1000);
659
660
661})(jQuery);
662
663document.addEventListener("DOMContentLoaded", function () {
664  // menu dynamic active class js
665  function eventiva_dynamicCurrentMenuClass(selector) {
666    let currentPath = window.location.href.split("/").reverse()[0];
667    Array.from(selector.querySelectorAll("li")).forEach(function (li) {
668      let anchor = li.querySelector("a");
669      if (anchor.getAttribute("href") === currentPath) {
670        anchor.classList.add("active");
671      }
672    });
673    Array.from(selector.children).forEach(function (li) {
674      let anchor = li.querySelector("a");
675      if (li.querySelector(".active")) {
676        anchor.classList.add("active");
677      }
678    });
679    if (currentPath === "") {
680      selector.querySelector("li a").classList.add("active");
681    }
682  }
683
684  let navUL = document.querySelector(".menu-list");
685  if (navUL) {
686    eventiva_dynamicCurrentMenuClass(navUL);
687  }
688
689  // make it as accordion for smaller screens
690  if (window.innerWidth > 992) {
691    document.querySelectorAll('.hover-menu .nav-item.dropdown').forEach(function (everyitem) {
692      everyitem.addEventListener('mouseover', function (_e) {
693        let el_link = this.querySelector('a[data-bs-toggle]');
694        if (el_link !== null) {
695          let nextEl = el_link.nextElementSibling;
696          el_link.classList.add('show');
697          if (nextEl !== null && this.contains(nextEl)) {
698            nextEl.classList.add('show');
699          }
700        }
701      }.bind(everyitem)); // Explicitly bind the context to the current element
702      everyitem.addEventListener('mouseleave', function (_e) {
703        let el_link = this.querySelector('a[data-bs-toggle]');
704        if (el_link !== null) {
705          let nextEl = el_link.nextElementSibling;
706          if (nextEl !== null && this.contains(nextEl)) {
707            el_link.classList.remove('show');
708            nextEl.classList.remove('show');
709          }
710        }
711      }.bind(everyitem)); // Explicitly bind the context to the current element
712    });
713  }
714  // end if innerWidth
715
716  // toggle tooltip js
717  const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]');
718  if (tooltipTriggerList) {
719    const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl));
720  }
721});

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.