PageSourceSearch

https://crescenttours.com.au/themes/shop/js/script.js?vs=639269822400074757

js crescenttours.com.au collected 2026-10-07 22:04:27 UTC 4,830 bytes, 172 lines download raw bytes

1
2(function ($) {
3    "use strict";
4    $(document).on('click', '#news-letter-footer', function (e) {
5        debugger
6        var parsleyForm = $('#createNewsLetterfooter').parsley();
7        parsleyForm.validate();
8        if (!parsleyForm.isValid()) {
9            $('.parsley-error').each(function () {
10                $(this).parents(".form-group").addClass("has-error");
11            });
12            return false;
13        }
14        var email = $("#email-news-footer").val()
15        $.ajax({
16            url: "/NewsLetter/CreateNewsLetter",
17            type: 'POST',
18            dataType: 'json',
19            data: { email: email },
20            success: function (result) {
21
22                swal({
23                    title: "Thanks for Subscribe",
24                    // text: "Our specialist consultant will connecting with you",
25                    icon: "success",
26
27                }).then((willDelete) => {
28                    location.reload();
29                });
30
31            },
32            error: function () {
33                notifier.open({ type: "error", message: "Something bad happened" });
34            }
35        });
36    });
37    $(document).on('click', '.booking-form', function () {
38        var destination = $("#destination").val();
39        var city = $("#departure :selected").val();
40        var room = $("#type :selected").val();
41        if (destination == "") {
42            notifier.open({ type: "error", message: "Please Select Destination" });
43        }
44        else {
45            $("#room").val(room);
46            $("#room").trigger('change')
47            $("#city").val(city);
48            $("#city").trigger('change');
49            $("#subject").val(destination);
50            $('#contactModal').modal('show')
51        }
52    })
53    var Tawk_API = Tawk_API || {}, Tawk_LoadStart = new Date();
54    
55    // Dropdown on mouse hover
56    $(document).ready(function () {
57        $('.carousel-item').first().addClass('active');
58        function toggleNavbarMethod() {
59            if ($(window).width() > 992) {
60                $('.navbar .dropdown').on('mouseover', function () {
61                    $('.dropdown-toggle', this).trigger('click');
62                }).on('mouseout', function () {
63                    $('.dropdown-toggle', this).trigger('click').blur();
64                });
65            } else {
66                $('.navbar .dropdown').off('mouseover').off('mouseout');
67            }
68        }
69        toggleNavbarMethod();
70        $(window).resize(toggleNavbarMethod);
71        setTimeout(function () {
72            $('.counter').counterUp({
73                delay: 10,
74                time: 1000
75            });
76        }, 1000);
77    });
78
79
80    // Back to top button
81    $(window).scroll(function () {
82        if ($(this).scrollTop() > 100) {
83            $('.back-to-top').fadeIn('slow');
84        } else {
85            $('.back-to-top').fadeOut('slow');
86        }
87    });
88    $('.back-to-top').click(function () {
89        $('html, body').animate({ scrollTop: 0 }, 1500, 'easeInOutExpo');
90        return false;
91    });
92
93
94    // Date and time picker
95    $('.date').datetimepicker({
96        format: 'L'
97    });
98    $('.time').datetimepicker({
99        format: 'LT'
100    });
101
102    $(document).on('click', '.image-width', function () {
103        this.requestFullscreen()
104    })
105    // Testimonials carousel
106    $(".testimonial-carousel").owlCarousel({
107        autoplay: true,
108        smartSpeed: 500,
109        margin: 10,
110        dots: true,
111        loop: true,
112        center: true,
113        responsive: {
114            0: {
115                items: 1
116            },
117            576: {
118                items: 1
119            },
120            768: {
121                items: 2
122            },
123            992: {
124                items: 3
125            }
126        }
127    });
128    $(".side-carousel").owlCarousel({
129        autoplay: false,
130        smartSpeed: 500,
131        margin: 30,
132        dots: false,
133        loop: false,
134        center: false,
135        responsive: {
136            0: {
137                items: 1
138            },
139            576: {
140                items: 1
141            },
142            768: {
143                items: 2
144            },
145            992: {
146                items: 3
147            }
148        }
149    })
150    $('.owl-carousel.slider_active').owlCarousel({
151        loop: true,
152        margin: 30,
153        autoplay: true,
154        slideTransition: 'linear',
155        autoplayTimeout: 3000,
156        autoplayHoverPause: false,
157        responsive: {
158            0: {
159                items: 3
160            },
161            768: {
162                items: 4,
163            },
164            992: {
165                items: 5
166            }
167        }
168    });
169
170
171})(jQuery);
172

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.