PageSourceSearch

https://www.courtyard.ie/files/js/settings-home.js

js courtyard.ie collected 2026-10-04 09:28:07 UTC 6,145 bytes, 222 lines download raw bytes

1jQuery(document).ready(function () {
2
3    $(".featuredOfferPanel h3").each(function () {
4        if ($(this).text().length > 70) {
5            $(this).text($(this).text().substr(0, 70));
6            $(this).append('...');
7        }
8    });
9
10
11    // Carousel Start
12    $(".mycarousel").jCarouselLite({
13        btnNext: ".FeaturedPanelHolder .next",
14        btnPrev: ".FeaturedPanelHolder .prev",
15        visible: 4,
16        auto: 4000,
17        speed: 1000,
18    });
19
20    // featuredOfferPanel Carousel Start
21
22    var offers = $(".featuredOfferPanel li").length;
23    //console.log(offers);
24    if (offers > 0) {
25        featuredOfferPanel();
26    }
27    function featuredOfferPanel() {
28        $(".featuredOfferPanel").jCarouselLite({
29            visible: 1,
30            auto: 4000,
31            speed: 1000
32        });
33    }
34
35    // home page content sliding down
36//    $(".searchbox-holder .wrapper").hide();
37    $(".searchbox-trigger a").click(function () {
38        $(".searchbox-holder .wrapper").slideToggle("slow");
39    });
40
41    // mobile page show/hidden nav panel
42    $(".nav-trigger").click(function () {
43        $(this).toggleClass("nav-trigger-x");
44        $(".pnav").toggle("slow");
45    });
46
47    // Slideshow 1
48    $("#slider1").responsiveSlides({
49        speed: 800
50    });
51
52    $('.fancybox').fancybox();
53
54    $('.bxslider').bxSlider({
55        pagerCustom: '#bx-pager'
56    });
57
58
59    setTimeout(function () {
60
61        $('#bx-pager a').first().addClass('first');
62        $('#bx-pager a').last().addClass('last');
63
64        var tabIndex = $('#bx-pager a').index() + 1;
65        var tabWidthInt = 1 / tabIndex;
66        var tabWidthP = Math.abs(tabWidthInt * 100) + '%';
67
68        $('#bx-pager a').css("width", tabWidthP);
69
70    }, 200);
71
72    // desktop
73    var ismobile = navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(android)|(webOS)/i);
74    var isDesktop = !(ismobile);
75    if (ismobile) {
76        $(".scroll-page, .back-to-top,.featuredOfferPanelHolder").hide();
77    }
78
79    if (isDesktop) {
80
81
82        // when page scroll down/up fade out/in buts
83        var lastScrollTop = 0;
84        $(window).scroll(function (event) {
85            var st = $(this).scrollTop();
86            if (st > lastScrollTop) {
87                //console.log('Scroll down');
88                $('.back-to-top').stop().animate({
89                    opacity: 0.5
90                }, 800);
91                scroll_button_out();
92            } else if (st <= lastScrollTop) {
93                //console.log('Scroll up');
94                scroll_button_in();
95            }
96
97            lastScrollTop = st;
98        });
99        // when .back-to-top click page sroll to top
100        $('.back-to-top').click(function () {
101            $('body,html').animate({
102                scrollTop: 0
103            }, 800);
104            return false;
105        });
106        // .scroll-page click page scroll and .scroll-page btu fade out
107        var HeightofDocument = $(window).height();
108        $('.scroll-page').click(function () {
109            scroll_button_out();
110            $('body,html').animate({
111                scrollTop: HeightofDocument
112            }, 1000);
113        });
114        // detect page sroll to top .scroll-page fade in again
115        $(document).scroll(function () {
116            if ($(document).scrollTop() == 0) {
117                scroll_button_in();
118
119                $('.back-to-top').stop().animate({
120                    opacity: 0
121                }, 800);
122            }
123        });
124        // btu fade out 
125            function scroll_button_out() {
126                $(".scroll-page").stop().css('visibility', 'hidden').animate({
127                    opacity: 0
128                }, 800);
129            }
130            ;
131            // but fadde in
132            function scroll_button_in() {
133                $(".scroll-page").stop().css('visibility', 'visible').animate({
134                    opacity: 0.8
135                }, 800);
136            }
137        //bottom page
138        $(window).scroll(function () {
139            if (document.body.scrollHeight - $(this).scrollTop() <= $(this).height()) {
140                scroll_button_out();
141            }
142        });
143
144        // $('a[href*=\\#]:not([href=\\#])').on('click', function (event) {
145        //     event.preventDefault();
146        //     $('html,body').animate({scrollTop: $(this.hash).offset().top}, 1500);
147        // });
148
149
150    }
151
152
153
154    // FLOATING BANNER START	  
155
156    // FLOATING BANNER END */			
157
158});
159
160
161
162$(window).load(function () {
163    $.get('/floating-banner.html', function (data) {
164        $('#f_banner_wrapper').html($(data).filter('#fl_banner'));
165
166        //full width of float banner / 2 
167        var float_banner_width = $("#fl_banner").width();
168        $("#fl_banner").css({marginLeft: '-405px'});
169        //$("#fl_banner").css( { marginLeft : '-' + float_banner_width/2 + 'px' } );
170
171
172        $("#fl_banner").animate({
173            top: "16%",
174            left: "50%"
175        }, 2500);
176        $("#fl_banner").bind("mouseenter", function () {
177            $(".closer", this).fadeIn("fast");
178        }).bind("mouseleave", function () {
179            $(".closer", this).fadeOut("fast");
180        });
181        $("#fl_banner").click(function () {
182            $(this).fadeOut("slow");
183        });
184    });
185});
186
187
188$(window).scroll(function () {
189    if ($(window).scrollTop() < 20) {
190        $('#floatBanner').stop(true, true).fadeOut("slow");
191    }
192});
193
194
195$(document).ready(function () {
196
197
198    //
199    $("#floatBanner").delay(3000).fadeIn('slow');
200    $(".overlaybanner").delay(3000).fadeIn('slow');
201
202
203    //
204    $(".floatBanner-closer").click(function () {
205        $("#floatBanner").fadeOut("slow");
206    });
207    //
208
209
210});
211
212
213
214$(document).ready(function () {
215
216    $(".sparkle").sparkle({color: "#FFFFFF", count: 10, overlap: 0, speed: 1, minSize: 4, maxSize: 7, direction: "both"});
217    $(".sparkle").trigger("mouseover");
218    $(".sparkle").mouseleave(function () {
219        $(".sparkle").trigger("mouseover");
220    });
221
222});

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.