PageSourceSearch

https://coombehouse.co.uk/js/script.js

js coombehouse.co.uk collected 2026-10-09 03:15:58 UTC 8,269 bytes, 277 lines download raw bytes

1function include(scriptUrl) {
2    document.write('<script src="' + scriptUrl + '"></script>');
3}
4
5function isIE() {
6    var myNav = navigator.userAgent.toLowerCase();
7    return (myNav.indexOf('msie') != -1) ? parseInt(myNav.split('msie')[1]) : false;
8};
9
10/* cookie.JS
11 ========================================================*/
12include('js/jquery.cookie.js');
13
14/* Easing library
15 ========================================================*/
16include('js/jquery.easing.1.3.js');
17
18/* PointerEvents  
19 ========================================================*/
20;
21(function ($) {
22    if(isIE() && isIE() < 11){ 
23        include('js/pointer-events.js');
24        $('html').addClass('lt-ie11'); 
25        $(document).ready(function(){
26            PointerEventsPolyfill.initialize({});
27        });
28    }
29})(jQuery); 
30
31/* Stick up menus
32 ========================================================*/
33;
34(function ($) {
35    var o = $('html');
36    if (o.hasClass('desktop')) {
37        include('js/tmstickup.js');
38
39        $(document).ready(function () {
40            $('#stuck_container').TMStickUp({})
41        });
42    }
43})(jQuery);
44
45/* ToTop
46 ========================================================*/
47;
48(function ($) {
49    var o = $('html');
50    if (o.hasClass('desktop')) {
51        include('js/jquery.ui.totop.js');
52
53        $(document).ready(function () {
54            $().UItoTop({
55                easingType: 'easeOutQuart',
56                containerClass: 'toTop fa fa-angle-up'
57            });
58        });
59    }
60})(jQuery);
61
62/* EqualHeights
63 ========================================================*/
64;
65(function ($) {
66    var o = $('[data-equal-group]');
67    if (o.length > 0) {
68        include('js/jquery.equalheights.js');
69    }
70})(jQuery);
71
72/* SMOOTH SCROLLIG
73 ========================================================*/
74;
75(function ($) {
76    var o = $('html');
77    if (o.hasClass('desktop')) {
78        include('js/jquery.mousewheel.min.js');
79        include('js/jquery.simplr.smoothscroll.min.js');
80
81        $(document).ready(function () {
82            $.srSmoothscroll({
83                step: 150,
84                speed: 800
85            });
86        });
87    }
88})(jQuery);
89
90/* Copyright Year
91 ========================================================*/
92;
93(function ($) {
94    var currentYear = (new Date).getFullYear();
95    $(document).ready(function () {
96        $("#copyright-year").text((new Date).getFullYear());
97    });
98})(jQuery);
99
100
101/* Superfish menus
102 ========================================================*/
103;
104(function ($) {
105    include('js/superfish.js');    
106})(jQuery);
107
108/* Navbar
109 ========================================================*/
110;
111(function ($) {
112    include('js/jquery.rd-navbar.js');
113})(jQuery);
114
115
116/* Google Map
117 ========================================================*/
118;
119(function ($) {
120    var o = document.getElementById("google-map");
121    if (o) {
122        include('//maps.google.com/maps/api/js?sensor=false');
123        include('js/jquery.rd-google-map.js');
124
125        $(document).ready(function () {
126            var o = $('#google-map');
127            if (o.length > 0) {
128                o.googleMap({
129                    styles: [{"featureType":"water","elementType":"all","stylers":[{"hue":"#76aee3"},{"saturation":38},{"lightness":-11},{"visibility":"on"}]},{"featureType":"road.highway","elementType":"all","stylers":[{"hue":"#8dc749"},{"saturation":-47},{"lightness":-17},{"visibility":"on"}]},{"featureType":"poi.park","elementType":"all","stylers":[{"hue":"#c6e3a4"},{"saturation":17},{"lightness":-2},{"visibility":"on"}]},{"featureType":"road.arterial","elementType":"all","stylers":[{"hue":"#cccccc"},{"saturation":-100},{"lightness":13},{"visibility":"on"}]},{"featureType":"administrative.land_parcel","elementType":"all","stylers":[{"hue":"#5f5855"},{"saturation":6},{"lightness":-31},{"visibility":"on"}]},{"featureType":"road.local","elementType":"all","stylers":[{"hue":"#ffffff"},{"saturation":-100},{"lightness":100},{"visibility":"simplified"}]},{"featureType":"water","elementType":"all","stylers":[]}]
130                });
131            }
132        });
133    }
134})
135(jQuery);
136
137/* WOW
138 ========================================================*/
139;
140(function ($) {
141    var o = $('html');
142
143    if ((navigator.userAgent.toLowerCase().indexOf('msie') == -1 ) || (isIE() && isIE() > 9)) {
144        if (o.hasClass('desktop')) {
145            include('js/wow.js');
146
147            $(document).ready(function () {
148                new WOW().init();
149            });
150        }
151    }
152})(jQuery);
153
154/* Contact Form
155 ========================================================*/
156;
157(function ($) {
158    var o = $('#contact-form');
159    if (o.length > 0) {
160        include('js/modal.js');
161        include('js/TMForm.js'); 
162
163        if($('#contact-form .recaptcha').length > 0){
164        	include('//www.google.com/recaptcha/api/js/recaptcha_ajax.js');
165        }
166    }
167})(jQuery);
168
169/* Orientation tablet fix
170 ========================================================*/
171$(function () {
172    // IPad/IPhone
173    var viewportmeta = document.querySelector && document.querySelector('meta[name="viewport"]'),
174        ua = navigator.userAgent,
175
176        gestureStart = function () {
177            viewportmeta.content = "width=device-width, minimum-scale=0.25, maximum-scale=1.6, initial-scale=1.0";
178        },
179
180        scaleFix = function () {
181            if (viewportmeta && /iPhone|iPad/.test(ua) && !/Opera Mini/.test(ua)) {
182                viewportmeta.content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0";
183                document.addEventListener("gesturestart", gestureStart, false);
184            }
185        };
186
187    scaleFix();
188    // Menu Android
189    if (window.orientation != undefined) {
190        var regM = /ipod|ipad|iphone/gi,
191            result = ua.match(regM);
192        if (!result) {
193            $('.sf-menus li').each(function () {
194                if ($(">ul", this)[0]) {
195                    $(">a", this).toggle(
196                        function () {
197                            return false;
198                        },
199                        function () {
200                            window.location.href = $(this).attr("href");
201                        }
202                    );
203                }
204            })
205        }
206    }
207});
208var ua = navigator.userAgent.toLocaleLowerCase(),
209    regV = /ipod|ipad|iphone/gi,
210    result = ua.match(regV),
211    userScale = "";
212if (!result) {
213    userScale = ",user-scalable=0"
214}
215document.write('<meta name="viewport" content="width=device-width,initial-scale=1.0' + userScale + '">');
216
217/* Camera
218========================================================*/
219;(function ($) {
220var o = $('#camera');
221    if (o.length > 0) {
222        if (!(isIE() && (isIE() > 9))) {
223            include('js/jquery.mobile.customized.min.js');
224        }
225
226        include('js/camera.js');
227
228        $(document).ready(function () {
229            o.camera({
230                autoAdvance: true,
231                height: '10.859375%',
232                minHeight: '350px',
233                pagination: false,
234                thumbnails: false,
235                playPause: false,
236                hover: false,
237                loader: 'none',
238                navigation: true,
239                navigationHover: false,
240                mobileNavHover: false,
241                fx: 'simpleFade'
242            })
243        });
244    }
245})(jQuery);
246
247/* Owl Carousel
248========================================================*/
249;(function ($) {
250    var o = $('.owl-carousel');
251    if (o.length > 0) {
252        include('js/owl.carousel.min.js');
253        $(document).ready(function () {
254            o.owlCarousel({
255                margin: 30,
256                smartSpeed: 450,
257                loop: true,
258                dots: true,
259                dotsEach: 1,
260                nav: false,
261                navClass: ['owl-prev fa fa-angle-left', 'owl-next fa fa-angle-right'],
262                responsive: {
263                    0: { items: 1 },
264                    768: { items: 1},
265                    980: { items: 1}
266                }
267            });
268        });
269    }
270})(jQuery);
271
272/* Mailform
273=============================================*/
274;(function ($) {
275    include('js/mailform/jquery.form.min.js');
276    include('js/mailform/jquery.rd-mailform.min.c.js');
277})(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.