1//Set iclude function for all included scripts loading 2function include(url) { 3 document.write('<script src="/' + url +'"></script>'); 4 return false; 5}; 6 7/* Into the 21st Century 8 ========================================================*/ 9include('assets/js/modernizr.js'); 10include('assets/js/css3-mediaqueries.js'); 11include('assets/js/device.min.js'); 12 13 14/* Load Vegas background images 15 ========================================================*/ 16include('assets/js/vegas.min.js'); 17include('assets/js/resize.min.js'); 18 19 20/* Superfish Menu Function 21========================================================*/ 22include('assets/js/hoverIntent.js'); 23include('assets/js/superfish.js'); 24 25 26/* Mobile Menu 27========================================================*/ 28include('assets/js/jquery.mmenu.all.min.js'); 29 30 31// Include Responsive Slides for Homepage Quotes 32include("assets/js/responsiveslides.min.js"); 33 34 35// Include Owl Carousel for Events Section 36include("assets/js/jquery.matchHeight.min.js"); 37 38 39 40/* Function to reduce header on scroll 41========================================================*/ 42$(window).scroll(function() { 43 $(window).scrollTop() > 100 ? 44 $("body").addClass("fixedHeader"): 45 $("body").removeClass("fixedHeader"); 46}), 47 48 49/* Footer Logo Scroller 50========================================================*/ 51include('assets/js/jquery.carouFredSel.js'); 52 53$(function() { 54 var _scroll = { 55 delay: 1000, 56 easing: 'linear', 57 items: 1, 58 duration: 0.07, 59 timeoutDuration: 0, 60 pauseOnHover: 'immediate' 61 }; 62 $('#ticker').carouFredSel({ 63 width: '100%', 64 align: false, 65 items: { 66 width: 'variable', 67 height: 102, 68 visible: 1 69 }, 70 scroll: _scroll 71 }); 72}); 73 74 75/* Run standard functions 76 ========================================================*/ 77$(document).ready(function(e) { 78 79 80 // Function for Superfish menu 81 $('.sf-menu').superfish(); 82 83 84 // Function for copyright year 85 var i=(new Date) 86 .getFullYear(); 87 $("span#year").html(i); 88 89 90 // function for header search 91 $('a.searchOpen.header').click(function(e) { 92 $(this).hide(); 93 $('header #search').fadeIn(400); 94 e.preventDefault(); 95 }); 96 97 98 // function for header search close 99 $('header a.closeBTN').click(function(e) { 100 $('header a.searchOpen').show(); 101 $('header #search').fadeOut(400); 102 e.preventDefault(); 103 }); 104 105 106 // function for mobile menu 107 $("#menud").mmenu({ 108 extensions :["pagedim-black", "listview-huge", "fx-panels-slide-100", "fx-listitems-slide", "fx-menu-slide", "border-offset" ], 109 navbar: { 110 title: false, 111 }, 112 "navbars": [ 113 { 114 "position": "top", 115 "content": [ 116 "searchfield" 117 ] 118 } 119 ], 120 121 "offCanvas": { 122 "position": "left" 123 }, 124 searchfield: { 125 search: false 126 } 127 }); 128 $("#menud").prepend("<div class='mobileMenud'></div>"); 129 $("body").find(".innerHeader").prependTo(".mobileMenud"); 130 131 132 133 // Function for menu sidebar accordion 134 $('#sideMenu ul>li.has-sub').prepend('<span class="holder"></span>'); 135 $('#sideMenu li.has-sub .holder').on('click', function(){ 136 var element = $(this).parent('li'); 137 if (element.hasClass('open')) { 138 element.removeClass('open'); 139 element.find('li').removeClass('open'); 140 element.find('ul').slideUp(); 141 } 142 else { 143 element.addClass('open'); 144 element.children('ul').slideDown(); 145 element.siblings('li').children('ul').slideUp(); 146 element.siblings('li').removeClass('open'); 147 element.siblings('li').find('li').removeClass('open'); 148 element.siblings('li').find('ul').slideUp(); 149 } 150 }); 151 152 153 // function to show hidden internal page section menu on click 154 $('.sectionHeader a.linkAction').click(function(e) { 155 $('.collapse').slideToggle(); 156 $('.sectionHeader').toggleClass('sectionMenuOpen'); 157 e.preventDefault(); 158 }); 159 160 161 // Function for Rotating Quotation Section 162 $(".quoteRotator .rSlides").responsiveSlides({ 163 auto: true, 164 pager: true, 165 nav: false, 166 speed: 400, 167 namespace: "tsbtns" 168 }); 169 170 171 // Function for News Listing 172 $('#pageHolder section#pageContent ul.newsList li').matchHeight(); 173 174 175 176 // function - check to see users mobile platform 177var isMobile = { 178 Android: function() { 179 return navigator.userAgent.match(/Android/i); 180 }, 181 BlackBerry: function() { 182 return navigator.userAgent.match(/BlackBerry/i); 183 }, 184 iOS: function() { 185 return navigator.userAgent.match(/iPhone|iPad|iPod/i); 186 }, 187 Opera: function() { 188 return navigator.userAgent.match(/Opera Mini/i); 189 }, 190 Windows: function() { 191 return navigator.userAgent.match(/IEMobile/i); 192 }, 193 any: function() { 194 return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows()); 195 } 196}; 197 198// function - check if user is on touch device, if so complete functions below 199if (isMobile.any()) { 200 // run any functions here for this... 201} 202 203}); 204// end all jQuery normal functions 205 206 207/* Tablet orientation 208 ========================================================*/ 209$(function() { 210 //IPad-IPhone 211 var viewportmeta = document.querySelector && document.querySelector('meta[name="viewport"]'), 212 ua = navigator.userAgent, 213 214 gestureStart = function() { 215 viewportmeta.content = "width=device-width, minimum-scale=0.25, maximum-scale=1.0, initial-scale=1.0"; 216 }, 217 218 scaleFix = function() { 219 if(viewportmeta && /iPhone|iPad/.test(ua) && !/Opera Mini/.test(ua)) { 220 viewportmeta.content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0"; 221 document.addEventListener("gesturestart", gestureStart, false); 222 } 223 }; 224 225 scaleFix(); 226 227}); 228 229var ua = navigator.userAgent.toLocaleLowerCase(), 230 regV = /ipod|ipad|iphone/gi, 231 result = ua.match(regV), 232 userScale = ""; 233if(!result) { 234 userScale = ",user-scalable=0" 235}
236document.write('<meta name="viewport" content="width=device-width, initial-scale=1.0' + userScale + '">');
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.