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 19/* Stick up menus 20 ========================================================*/ 21; 22(function ($) { 23 var o = $('html'); 24 if (o.hasClass('desktop')) { 25 include('js/tmstickup.js'); 26 27 $(document).ready(function () { 28 $('#stuck_container').TMStickUp({}) 29 }); 30 } 31})(jQuery); 32 33/* ToTop 34 ========================================================*/ 35; 36(function ($) { 37 var o = $('html'); 38 if (o.hasClass('desktop')) { 39 include('js/jquery.ui.totop.js'); 40 41 $(document).ready(function () { 42 $().UItoTop({ 43 easingType: 'easeOutQuart', 44 containerClass: 'toTop fa fa-angle-up' 45 }); 46 }); 47 } 48})(jQuery); 49 50/* EqualHeights 51 ========================================================*/ 52; 53(function ($) { 54 var o = $('[data-equal-group]'); 55 if (o.length > 0) { 56 include('js/jquery.equalheights.js'); 57 } 58})(jQuery); 59 60 61/* Copyright Year 62 ========================================================*/ 63; 64(function ($) { 65 var currentYear = (new Date).getFullYear(); 66 $(document).ready(function () { 67 $("#copyright-year").text((new Date).getFullYear()); 68 }); 69})(jQuery); 70 71 72; 73(function ($) { 74 function include(url) {
75 document.write('<script src="js/' + url + '"></script>'); 76 return false; 77 } 78 79 include('superfish.js'); 80 jQuery(function () { 81 }) 82})(jQuery); 83 84 85/* Responsive Tabs 86 ========================================================*/ 87; 88(function ($) { 89 var o = $('.resp-tabs'); 90 if (o.length > 0) { 91 include('js/jquery.responsive.tabs.js'); 92 93 $(document).ready(function () { 94 o.easyResponsiveTabs(); 95 }); 96 } 97})(jQuery); 98 99 100/* Navbar 101 ========================================================*/ 102; 103(function ($) { 104 include('js/jquery.rd-navbar.js'); 105})(jQuery); 106 107 108/* JQuery UI Accordion 109 ========================================================*/ 110; 111(function ($) { 112 var o = $('.accordion'); 113 if (o.length > 0) { 114 include('js/jquery.ui.accordion.min.js'); 115 116 $(document).ready(function () { 117 o.accordion({ 118 active: false, 119 header: '.accordion_header', 120 heightStyle: 'content', 121 collapsible: true 122 }); 123 }); 124 } 125})(jQuery); 126 127/* Google Map 128 ========================================================*/ 129; 130(function ($) { 131 var o = document.getElementById("google-map"); 132 if (o) { 133 include('//maps.google.com/maps/api/js?sensor=false'); 134 include('js/jquery.rd-google-map.js'); 135 136 $(document).ready(function () { 137 var o = $('#google-map'); 138 if (o.length > 0) { 139 o.googleMap({styles: [ 140 { 141 "stylers": [ 142 { 143 "saturation": -100 144 }, 145 { 146 "gamma": 1 147 } 148 ] 149 }, 150 { 151 "elementType": "labels.text.stroke", 152 "stylers": [ 153 { 154 "visibility": "off" 155 } 156 ] 157 }, 158 { 159 "featureType": "poi.business", 160 "elementType": "labels.text", 161 "stylers": [ 162 { 163 "visibility": "off" 164 } 165 ] 166 }, 167 { 168 "featureType": "poi.business", 169 "elementType": "labels.icon", 170 "stylers": [ 171 { 172 "visibility": "off" 173 } 174 ] 175 }, 176 { 177 "featureType": "poi.place_of_worship", 178 "elementType": "labels.text", 179 "stylers": [ 180 { 181 "visibility": "off" 182 } 183 ] 184 }, 185 { 186 "featureType": "poi.place_of_worship", 187 "elementType": "labels.icon", 188 "stylers": [ 189 { 190 "visibility": "off" 191 } 192 ] 193 }, 194 { 195 "featureType": "road", 196 "elementType": "geometry", 197 "stylers": [ 198 { 199 "visibility": "simplified" 200 } 201 ] 202 }, 203 { 204 "featureType": "water", 205 "stylers": [ 206 { 207 "visibility": "on" 208 }, 209 { 210 "saturation": 50 211 }, 212 { 213 "gamma": 0 214 }, 215 { 216 "hue": "#50a5d1" 217 } 218 ] 219 }, 220 { 221 "featureType": "administrative.neighborhood", 222 "elementType": "labels.text.fill", 223 "stylers": [ 224 { 225 "color": "#333333" 226 } 227 ] 228 }, 229 { 230 "featureType": "road.local", 231 "elementType": "labels.text", 232 "stylers": [ 233 { 234 "weight": 0.5 235 }, 236 { 237 "color": "#333333" 238 } 239 ] 240 }, 241 { 242 "featureType": "transit.station", 243 "elementType": "labels.icon", 244 "stylers": [ 245 { 246 "gamma": 1 247 }, 248 { 249 "saturation": 50 250 } 251 ] 252 } 253 ]}); 254 } 255 }); 256 } 257}) 258(jQuery); 259 260 261/* Owl Carousel
262 ========================================================*/ 263; 264(function ($) { 265 var o = $('.owl-carousel'); 266 if (o.length > 0) { 267 include('js/owl.carousel.min.js'); 268 $(document).ready(function () { 269 o.owlCarousel({ 270 margin: 30, 271 smartSpeed: 450, 272 loop: true, 273 dots: false, 274 dotsEach: 1, 275 nav: true, 276 navClass: ['owl-prev fa fa-angle-left', 'owl-next fa fa-angle-right'], 277 responsive: { 278 0: {items: 1}, 279 768: {items: 1}, 280 980: {items: 1} 281 } 282 }); 283 }); 284 } 285})(jQuery); 286 287 288/* WOW 289 ========================================================*/ 290; 291(function ($) { 292 var o = $('html'); 293 294 if ((navigator.userAgent.toLowerCase().indexOf('msie') == -1 ) || (isIE() && isIE() > 9)) { 295 if (o.hasClass('desktop')) { 296 include('js/wow.js'); 297 298 $(document).ready(function () { 299 new WOW().init(); 300 }); 301 } 302 } 303})(jQuery); 304 305 306/* Orientation tablet fix 307 ========================================================*/ 308$(function () { 309 // IPad/IPhone 310 var viewportmeta = document.querySelector && document.querySelector('meta[name="viewport"]'), 311 ua = navigator.userAgent, 312 313 gestureStart = function () { 314 viewportmeta.content = "width=device-width, minimum-scale=0.25, maximum-scale=1.6, initial-scale=1.0"; 315 }, 316 317 scaleFix = function () { 318 if (viewportmeta && /iPhone|iPad/.test(ua) && !/Opera Mini/.test(ua)) { 319 viewportmeta.content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0"; 320 document.addEventListener("gesturestart", gestureStart, false); 321 } 322 }; 323 324 scaleFix(); 325 // Menu Android 326 if (window.orientation != undefined) { 327 var regM = /ipod|ipad|iphone/gi, 328 result = ua.match(regM); 329 if (!result) { 330 $('.sf-menus li').each(function () { 331 if ($(">ul", this)[0]) { 332 $(">a", this).toggle( 333 function () { 334 return false; 335 }, 336 function () { 337 window.location.href = $(this).attr("href"); 338 } 339 ); 340 } 341 }) 342 } 343 } 344}); 345var ua = navigator.userAgent.toLocaleLowerCase(), 346 regV = /ipod|ipad|iphone/gi, 347 result = ua.match(regV), 348 userScale = ""; 349if (!result) { 350 userScale = ",user-scalable=0" 351}
352document.write('<meta name="viewport" content="width=device-width,initial-scale=1.0' + userScale + '">'); 353 354/* Camera 355 ========================================================*/ 356;(function ($) { 357 var o = $('#camera'); 358 if (o.length > 0) { 359 if (!(isIE() && (isIE() > 9))) { 360 include('js/jquery.mobile.customized.min.js'); 361 } 362 363 include('js/camera.js'); 364 365 $(document).ready(function () { 366 o.camera({ 367 autoAdvance: true, 368 height: '34.6341%', 369 minHeight: '300px', 370 pagination: false, 371 thumbnails: false, 372 playPause: false, 373 hover: false, 374 loader: 'none', 375 navigation: true, 376 navigationHover: false, 377 mobileNavHover: false, 378 fx: 'simpleFade' 379 }) 380 }); 381 } 382})(jQuery); 383 384/* Search.js 385 ========================================================*/ 386; 387(function ($) { 388 var o = $('.search-form'); 389 if (o.length > 0) { 390 include('js/TMSearch.js'); 391 } 392})(jQuery); 393 394 395/* Mailform 396 =============================================*/ 397; 398(function ($) { 399 include('js/mailform/jquery.form.min.js'); 400 include('js/mailform/jquery.rd-mailform.min.js'); 401})(jQuery); 402 403 404 405 406/* Facebook 407 ========================================================*/ 408 409; 410(function (d, s, id) { 411 var js, fjs = d.getElementsByTagName(s)[0]; 412 if (d.getElementById(id)) return; 413 js = d.createElement(s); 414 js.id = id; 415 js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.3"; 416 fjs.parentNode.insertBefore(js, fjs); 417}(document, 'script', 'facebook-jssdk')); 418 419; 420(function ($) { 421 var o = $('.fb-page'); 422 423 $(window).load(function () { 424 o.css({'display': 'block'}) 425 .find('span').css({ 426 'width': '100%', 427 'display': 'block', 428 'text-align': 'inherit' 429 }) 430 .find('iframe').css({ 431 'display': 'inline-block', 432 'position': 'static' 433 }); 434 }); 435 436 $(window).on('load resize', function () { 437 if (o.parent().width() < o.find('iframe').width()) { 438 o.find('iframe').css({ 439 'transform': 'scale(' + (o.width() / o.find('iframe').width()) + ')', 440 'transform-origin': '0% 0%' 441 }) 442 .parent().css({ 443 'height': (o.find('iframe').height() * (o.width() / o.find('iframe').width())) + 'px' 444 }); 445 } else { 446 o 447 .find('span').css({ 448 'height': 'auto' 449 }) 450 .find('iframe').css({ 451 'transform': 'none' 452 }); 453 } 454 }); 455})(jQuery); 456 457 458/* FancyBox 459 ========================================================*/ 460; 461(function ($) { 462 var o = $('.thumb'); 463 if (o.length > 0) { 464 include('js/jquery.fancybox.js'); 465 include('js/jquery.fancybox-media.js'); 466 include('js/jquery.fancybox-buttons.js'); 467 $(document).ready(function () { 468 o.fancybox(); 469 }); 470 } 471})(jQuery); 472 473/* Parallax 474 =============================================*/ 475; 476(function ($) { 477 include('js/jquery.rd-parallax.js'); 478})(jQuery); 479 480 481
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.