PageSourceSearch

https://www.hoteldelpintor.com/js/hoter/functions.js?v=2.15

js hoteldelpintor.com collected 2026-09-26 13:37:23 UTC 6,043 bytes, 203 lines download raw bytes

1$(window).load(function(){
2    $('img[lazy=true]').unveil();
3});
4
5$(function () {
6
7    $(".myFancyPopup").fancybox({
8        maxWidth: 800,
9        maxHeight: 600,
10        fitToView: false,
11        width: '70%',
12        height: '70%',
13        autoSize: false,
14        aspectRatio: false,
15        closeClick: false,
16        openEffect: 'none',
17        closeEffect: 'none',
18        afterLoad: function () {
19            try {
20                var fancybox_iframe = $('.fancybox-iframe');
21                if (fancybox_iframe.length && fancybox_iframe.contents().find('html').height() < $(window).height()) {
22                    fancybox_iframe.css("height", "auto");
23                }
24            } catch(e) {
25                console.log("Error trying to change fancybox height");
26                console.log(e);
27            }
28
29        },
30        afterShow: function () {
31            try {
32                var fancybox_iframe = $('.fancybox-iframe');
33                if (fancybox_iframe.length) {
34                    var fancybox_height = fancybox_iframe.contents().find('html').height();
35                    console.log(fancybox_height);
36                    console.log($(window).height());
37                    if (fancybox_height < $(window).height()) {
38                        this.height = fancybox_height;
39                        fancybox_iframe.css("height", fancybox_height);
40                    } else {
41                        fancybox_iframe.css("height", "100%");
42                    }
43                    $(".fancybox-type-iframe").css("visibility", "visible");
44                }
45            } catch(e) {
46                console.log("Error trying to change fancybox height");
47                console.log(e);
48            }
49        }
50    });
51
52
53    $(".myFancyPopupAuto").fancybox({
54        width: 650,
55        height: 'auto',
56        fitToView: false,
57        autoSize: false
58    });
59    $(".myFancyPopupVideo").fancybox({
60        width: 640,
61        height: 'auto',
62        fitToView: false,
63        autoSize: false
64    });
65
66    $(".button-promotion, .button_promotion").unbind('click');
67    only_execute_once = false;
68    $(".button-promotion, .button_promotion").click(function () {
69        prepare_booking_popup();
70        open_booking_full();
71
72        $(".remove_on_close_popup").remove();
73
74        if (!only_execute_once) {
75            only_execute_once = true;
76            $("#data select.selector_ninos").selectric("refresh");
77
78        }
79        var smartPackage = $(this).attr('smart-package-button');
80        if (smartPackage) {
81            var smart_package_input = $("<input type='hidden' class='remove_on_close_popup' name='package_preselection' value='true'>");
82            $("#data .paraty-booking-form").append(smart_package_input);
83        }
84    });
85
86
87
88    $('#lang').click(function () {
89        $('#language-selector-options').slideDown('fast');
90    });
91
92    $('#lang').mouseleave(function () {
93        $('#language-selector-options').slideUp('fast');
94    });
95
96    $(".see_more_slider").click(function (e) {
97        $(".see_more_slider .hidden_text").toggle("fast");
98    });
99
100    //Adding class to Main Item in Main Menu Item Menu when child are selected
101    $("#subsection-active").parent().parent().parent().attr('id', 'section-active');
102
103    if (window.PIE) {
104        $(".css3").each(function () {
105            PIE.attach(this);
106        });
107    }
108
109    $(".booking_widget.inline .entry_date").click(function(){
110        $("#ui-datepicker-div").css({
111            'top':'40px'
112        });
113    });
114    $(".booking_widget.inline .departure_date").click(function(){
115        $("#ui-datepicker-div").css({
116            'top':'40px'
117        });
118    });
119
120
121    if (typeof(TAPixel) !== "undefined") {TAPixel.impressionWithReferer("001F000000vA4u0");}
122
123    $.simpleWeather({
124        location: 'Malaga',
125        woeid: '',
126        unit: 'c',
127        success: function (weather) {
128            var html = "<div class='weather-text'><span class='weather-location'>" + 'Malaga' + '</div>' +
129                '<img class="weather-icon" src="https://cdn.paraty.es/static_files/web-secure-booking/generic/202604221558/images/weather/1/' + weather.code + '.png">' + '<p class="number"><span class="deegrees">' + Math.round(weather.temp) + '&deg; ' + '</span>' + '</p>';
130            $(".weather").html(html);
131        },
132        error: function (error) {
133            $("#weather").html('<p>' + error + '</p>');
134        }
135    });
136
137
138    $(window).scroll(function () {
139        repositionBooking();
140    });
141
142    repositionBooking();
143
144}
144);
145
146function repositionBooking() {
147    var actual_height = $(window).scrollTop();
148    var slider_height = $("#slider_container").height() + $("header").height();
149    if (actual_height > slider_height) {
150        $("#full_wrapper_booking").addClass("floating_booking").addClass("showed");
151    } else {
152        $("#full_wrapper_booking").removeClass("floating_booking").removeClass("showed");
153    }
154}
155
156(function () {
157    var po = document.createElement('script');
158    po.type = 'text/javascript';
159    po.async = true;
160    po.src = 'https://apis.google.com/js/plusone.js';
161    var s = document.getElementsByTagName('script')[0];
162    s.parentNode.insertBefore(po, s);
163})();
164
165
166function showGallery2(elements) {
167    $.fancybox(elements, {
168        'prevEffect': 'none',
169        'nextEffect': 'none',
170        'type': 'image',
171        'arrows': true,
172        'nextClick': true,
173        'mouseWheel': true,
174        'helpers': {
175            title: {
176                type: 'outside'
177            },
178            overlay: {
179                opacity: 0.8,
180                css: {
181                    'background-color': '#000'
182                }
183            },
184            thumbs: {
185                width: 50,
186                height: 50
187            }
188        }
189    });
190}
191
192// init Masonry
193var $grid = $('.gallery_1').masonry({
194  itemSelector: '.crop',
195  percentPosition: true,
196  columnWidth: '.crop',
197    gutter: 5
198});
199
200// layout Masonry after each image loads
201$grid.imagesLoaded().progress( function() {
202  $grid.masonry('layout');
203});

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.