PageSourceSearch

https://elferriol.com/js/script.js

js elferriol.com collected 2026-10-06 09:35:36 UTC 6,356 bytes, 229 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/* Copyright Year
73 ========================================================*/
74;
75(function ($) {
76    var currentYear = (new Date).getFullYear();
77    $(document).ready(function () {
78        $("#copyright-year").text((new Date).getFullYear());
79    });
80})(jQuery);
81
82/* Google Map
83 ========================================================*/
84;
85(function ($) {
86    var o = document.getElementById("google-map");
87    if (o) {
88        include('//maps.google.com/maps/api/js?key= AIzaSyCtZYZpmbWTu-mQGsPiMZs6fJ1-J6s4ypU');
89        include('js/jquery.rd-google-map.js');
90
91        $(document).ready(function () {
92            var o = $('#google-map');
93            if (o.length > 0) {
94                o.googleMap({styles:[{"stylers":[{"hue":"#ff1a00"},{"invert_lightness":true},{"saturation":-100},{"lightness":33},{"gamma":0.5}]},{"featureType":"water","elementType":"geometry","stylers":[{"color":"#2D333C"}]}]});
95            }
96        });
97    }
98})
99(jQuery);
100/* Superfish menus
101 ========================================================*/
102;
103(function ($) {
104    include('js/superfish.js');
105})(jQuery);
106
107/* Navbar
108 ========================================================*/
109;
110(function ($) {
111    include('js/jquery.rd-navbar.js');
112})(jQuery);
113
114
115
116/* WOW
117 ========================================================*/
118;
119(function ($) {
120    var o = $('html');
121
122    if ((navigator.userAgent.toLowerCase().indexOf('msie') == -1 ) || (isIE() && isIE() > 9)) {
123        if (o.hasClass('desktop')) {
124            include('js/wow.js');
125
126            $(document).ready(function () {
127                new WOW().init();
128            });
129        }
130    }
131})(jQuery);
132
133
134/* Orientation tablet fix
135 ========================================================*/
136$(function () {
137    // IPad/IPhone
138    var viewportmeta = document.querySelector && document.querySelector('meta[name="viewport"]'),
139        ua = navigator.userAgent,
140
141        gestureStart = function () {
142            viewportmeta.content = "width=device-width, minimum-scale=0.25, maximum-scale=1.6, initial-scale=1.0";
143        },
144
145        scaleFix = function () {
146            if (viewportmeta && /iPhone|iPad/.test(ua) && !/Opera Mini/.test(ua)) {
147                viewportmeta.content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0";
148                document.addEventListener("gesturestart", gestureStart, false);
149            }
150        };
151
152    scaleFix();
153    // Menu Android
154    if (window.orientation != undefined) {
155        var regM = /ipod|ipad|iphone/gi,
156            result = ua.match(regM);
157        if (!result) {
158            $('.sf-menus li').each(function () {
159                if ($(">ul", this)[0]) {
160                    $(">a", this).toggle(
161                        function () {
162                            return false;
163                        },
164                        function () {
165                            window.location.href = $(this).attr("href");
166                        }
167                    );
168                }
169            })
170        }
171    }
172});
173var ua = navigator.userAgent.toLocaleLowerCase(),
174    regV = /ipod|ipad|iphone/gi,
175    result = ua.match(regV),
176    userScale = "";
177if (!result) {
178    userScale = ",user-scalable=0"
179}
180document.write('<meta name="viewport" content="width=device-width,initial-scale=1.0' + userScale + '">');
181/* Subscribe Form
182 ========================================================*/
183;
184(function ($) {
185    var o = $('#subscribe-form');
186    if (o.length > 0) {
187        include('js/sForm.js');
188    }
189})(jQuery);
190/* Camera
191========================================================*/
192;(function ($) {
193var o = $('#camera');
194    if (o.length > 0) {
195        if (!(isIE() && (isIE() > 9))) {
196            include('js/jquery.mobile.customized.min.js');
197        }
198
199        include('js/camera.js');
200
201        $(document).ready(function () {
202            o.camera({
203                autoAdvance: true,
204                height: '40.0390625%',
205                minHeight: '350px',
206                pagination: false,
207                thumbnails: false,
208                playPause: false,
209                hover: false,
210                loader: 'none',
211                navigation: true,
212                navigationHover: true,
213                mobileNavHover: false,
214                fx: 'simpleFade'
215            })
216        });
217    }
218})(jQuery);
219/* Parallax 
220=============================================*/ 
221;(function ($) { 
222    include('js/jquery.rd-parallax.js');
223})(jQuery);
224/* Mailform
225=============================================*/
226;(function ($) {
227    include('js/mailform/jquery.form.min.js'); 
228    include('js/mailform/jquery.rd-mailform.min.js');
229})(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.