PageSourceSearch

https://www.magicworldresort.com/themes/custom/marinador/js/hotel.js?tmgd8c

js magicworldresort.com collected 2026-10-09 18:23:09 UTC 2,318 bytes, 87 lines download raw bytes

1(function($) {
2  Drupal.behaviors.hotel = {
3    attach: function (context) {
4      $('.hotel__rooms>div', context)
5        .addClass('owl-carousel')
6        .owlCarousel({
7          autoplay: true,
8          dots: false,
9          items: 1,
10          loop: true,
11          nav: true,
12          responsiveClass:true,
13          autoplayHoverPause:true,
14          responsive:{
15            0:{
16                items:1,
17            },
18            600:{
19                items:2,
20            },
21            1000:{
22                items:3,
23            }
24          }
25      });
26
27
28        // Para .thalasso
29      $('.thalasso>div', context)
30        .addClass('owl-carousel')
31        .owlCarousel({
32          autoplay: false,       // Autoplay desactivado para .thalasso
33          dots: false,            // Puedes configurar las opciones de la misma manera
34          items: 1,
35          loop: true,
36          nav: true,            // Si quieres que las flechas estén desactivadas
37          responsiveClass: true,
38          autoplayHoverPause: true,
39          responsive: {
40            0: {
41              items: 1,
42            },
43            600: {
44              items: 2,
45            },
46            1000: {
47              items: 2,
48            },
49            1400: {
50              items: 4,
51            }
52          }
53        });
54
55
56      //Link logo club
57      setTimeout(function() {
58        $('.booking').on('click', '.roi-search-engine__item--destination label', function() {
59          window.open('https://reservas.magicworldresort.com/bookcore/partempresas/alta-particulares/?', '_blank');
60        });
61      }, 200);
62
63      /*var urlPathEndings = {
64     '/hotel-balneario-5': 0,
65    '/hotel-magic-fantasy-4': 1,
66    '/hotel-magic-games-4': 2,
67    '/hotel-magic-inn-3': 3,
68    '/hotel-magic-sports-4': 4
69      };
70
71      setTimeout(function() {
72        var currentPath = window.location.pathname;
73        var lastSegment = currentPath.substring(currentPath.lastIndexOf('/') + 1);
74
75        if (urlPathEndings.hasOwnProperty(lastSegment)) {
76
77          var select = document.querySelector('#id_destino-widget-0');
78          select.selectedIndex = urlPathEndings[lastSegment];
79          var event = new Event('change', { bubbles: true });
80          select.dispatchEvent(event);
81
82        }
83      }, 2000);*/
84
85    }
86  };
87})(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.