PageSourceSearch

https://tarusa-hotel.ru/wp-content/themes/tarusahote/assets/js/custom.js?ver=1790972193

js tarusa-hotel.ru collected 2026-10-02 20:16:52 UTC 2,197 bytes, 78 lines download raw bytes

1function checkMedia(x) {
2  if (x.matches) {
3    gsap.registerPlugin(ScrollTrigger);
4
5    gsap.to('.views__line--left .views__img', {
6      scrollTrigger: {
7        trigger: '.views',
8        start: 'top top',
9        end: 'bottom top',
10        scrub: 1,
11        markers: true,
12        toggleActions: 'restart none none none',
13      },
14      x: '-100%',
15    });
16
17    gsap.to('.views__line--right .views__img', {
18      scrollTrigger: {
19        trigger: '.views',
20        start: 'top top',
21        end: 'bottom top',
22        scrub: 1,// Use markers for debugging, remove for production
23        toggleActions: 'restart none none none',
24      },
25      x: '100%',
26    });
27  } else {
28    gsap.set('.views__line--left .views__img', { x: '-20%' });
29    gsap.set('.views__line--right .views__img', { x: '-20%' });
30  }
31}
32
33// Initialize with media query
34let x = window.matchMedia("(min-width: 1200px)");
35checkMedia(x);
36x.addListener(checkMedia);
37
38
39document.querySelectorAll('table').forEach(table => {
40  // Проверяем, есть ли у таблицы родитель с классом table__wrapper
41  if (!table.parentElement.classList.contains('table__wrapper')) {
42    // Создаем новый div с классом table__wrapper
43    const wrapper = document.createElement('div');
44    wrapper.className = 'table__wrapper';
45
46    // Вставляем обёртку перед таблицей
47    table.parentNode.insertBefore(wrapper, table);
48
49    // Перемещаем таблицу внутрь обёртки
50    wrapper.appendChild(table);
51  }
52});
53
54
55(function(){
56    const el = document.querySelector('.hero-slider__swiper');
57    if (!el) return;
58
59    const swiper = new Swiper(el, {
60      loop: (el.querySelectorAll('.swiper-slide').length > 1),
61      speed: 600,
62      autoplay: {
63        delay: 5000,
64        disableOnInteraction: false
65      },
66      effect: 'slide',
67      pagination: {
68        el: el.querySelector('.swiper-pagination'),
69        clickable: true
70      },
71      navigation: {
72        nextEl: el.querySelector('.swiper-button-next'),
73        prevEl: el.querySelector('.swiper-button-prev')
74      },
75      // адаптив
76      allowTouchMove: true
77    });
78  })();

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.