1jQuery(document).ready(function(){ 2 3 var deviceAgent = navigator.userAgent.toLowerCase(); 4 var agentID = deviceAgent.match(/(iphone|ipod|ipad)/); 5 6 jQuery('.homemenu ul.menu').superfish({ 7 animation: {opacity:'show'}, 8 speed: 'normal', 9 delay: 1000, 10 autoArrows: true, 11 dropShadows: true 12 }); 13 14 15 jQuery.fn.equalCols = function(){ 16 //Array Sorter 17 var sortNumber = function(a,b){return b - a;}; 18 var heights = []; 19 //Push each height into an array 20 jQuery(this).each(function(){ 21 heights.push(jQuery(this).height()); 22 }); 23 24 heights.sort(sortNumber); 25 var maxHeight = heights[0]; 26 return this.each(function(){ 27 //Set each column to the max height 28 jQuery(this).css({'height': maxHeight}); 29 }); 30 }; 31 // Set equal height for grid columns 32 jQuery('.gridservice_col1,.gridservice_col2,.gridservice_col3').equalCols(); 33 // Check on window resize and set equal height for responsive change 34 jQuery(window).resize(function(){ 35 jQuery('.gridservice_col1,.gridservice_col2,.gridservice_col3').css('height','auto'); 36 jQuery('.gridservice_col1,.gridservice_col2,.gridservice_col3').equalCols(); 37 38 }); 39 40 // Mobile Menu 41 curr_menu_item=jQuery(".responsive-mobile-menu .current-menu-item a").eq(0).text(); 42 if ( curr_menu_item ){ 43 jQuery(".mobile-menu-selected").text(curr_menu_item); 44 } 45 jQuery(".mobile-menu-toggle").click(function(){ 46 jQuery(".responsive-mobile-menu").slideToggle(); 47 }); 48 49 50 //Sidebar toggle function 51 jQuery(".menu-toggle-off").live('click',function () { 52 53 54 55 jQuery(".top-menu-wrap").stop().animate({top:'-100','opacity':'0'},500, function() { 56 jQuery(".grid-list-position").fadeOut(); 57 jQuery(".super-navigation, .control-underlay,.slidshowbackground-panel,#fullscr-copyright,#play-button,.fullscreenslideshow-audio").fadeOut(); 58 }); 59 60 jQuery('.menu-toggle').css({"bottom":"12px","right":"28px","height":"30","width":"30"}); 61 62 63 jQuery("#slidecaption").css({"visibility":"hidden"}); 64 jQuery('.container').stop().animate({left:'-500','opacity':'0'},500, function() { 65 jQuery(".container").css({"display":"none"}); 66 }); 67 jQuery(".homemenu").stop().animate({'opacity':'0'},150, function() { 68 jQuery(".mainmenu-navigation").css({"display":"none"}); 69 }); 70 jQuery('.menu-toggle').removeClass('menu-toggle-off'); 71 jQuery('.menu-toggle').addClass('menu-toggle-on'); 72 jQuery('.mcycletextwrap').css({"visibility":"hidden"}); 73 74 jQuery('.logo').css({"display":"block"}); 75 }); 76 77 //Sidebar toggle function 78 jQuery(".menu-toggle-on").live('click',function () { 79 80 jQuery(".top-menu-wrap").stop().animate({top:'0','opacity':'1'},500, function() { 81 jQuery(".grid-list-position").fadeIn(); 82 jQuery('.gridservice_col1,.gridservice_col2,.gridservice_col3').css('height','auto'); 83 jQuery('.gridservice_col1,.gridservice_col2,.gridservice_col3').equalCols(); 84 85 jQuery(".super-navigation, .control-underlay,.slidshowbackground-panel,#fullscr-copyright,#play-button,.fullscreenslideshow-audio").fadeIn(); 86 }); 87 88 jQuery('.menu-toggle').css({"bottom":"7px","right":"23px","height":"40","width":"40"}); 89 90 jQuery(".homemenu").stop().animate({'opacity':'1'},500); 91 jQuery(".mainmenu-navigation").css({"display":"block"}); 92 jQuery('.menu-toggle').removeClass('menu-toggle-on'); 93 jQuery('.menu-toggle').addClass('menu-toggle-off'); 94 jQuery(".container").css({"display":"block"}); 95 jQuery("#slidecaption").css({"visibility":"visible"}); 96 jQuery('.container').stop().animate({left:'0','opacity':'1'},500); 97 jQuery('.mcycletextwrap').css({"visibility":"visible"}); 98 }); 99 100 101 102 103 //Portfolio Hover effects 104 jQuery("span.ajax-portfolio-icon").fadeTo("fast", 0); 105 106 //Portfolio Hover effects 107 jQuery(".gototop,.hrule.top a").click(function(){ 108 jQuery('html, body').animate({scrollTop:0}, 'slow'); 109 return false; 110 }); 111 112 jQuery("span.portfolio-gallery-icon").fadeTo("fast", 0); 113 jQuery("a.portfolio-image-link").hover( 114 function () { 115 jQuery(this).find("span.portfolio-gallery-icon").stop().animate({"top": "40%", "opacity" : "0.6"}, 300); 116 }, 117 function () { 118 jQuery(this).find("span.portfolio-gallery-icon").stop().animate({"top": "70%", "opacity" : "0"}, 300); 119 }); 120 121 // Fit videos to page 122 jQuery(".fitVids").fitVids(); 123 124 // Home Service hover block effects 125 jQuery(".service-block").hover( 126 function () { 127 var homeimage_height = jQuery(this).find(".gridservice_image img").height(); 128 jQuery(this).find(".gridservice_image").stop().animate({"top": "-" + homeimage_height + "px", "opacity" : "1"}, 300); 129 }, 130 function () { 131 jQuery(this).find(".gridservice_image").stop().animate({"top": "0", "opacity" : "0"}, 300); 132 }); 133 134 // Responsive dropdown list triggered on Mobile platforms 135 jQuery('#top-select-menu').bind('change', function () { // bind change event to select 136 var url = jQuery(this).val(); // get selected value 137 if (url != '') { // require a URL 138 window.location = url; // redirect 139 } 140 return false;
141 }); 142 143 //Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state) 144 jQuery("h4.trigger").click(function(){ 145 jQuery(this).toggleClass("active").next().slideToggle("fast"); 146 return false; 147 }); 148 jQuery('h4.trigger').trigger('click'); 149 150 jQuery(".postformat-image-lightbox img").fadeTo("fast", 0.8); 151 jQuery(".postformat-image-lightbox img").hover( 152 function () { 153 jQuery(this).stop().fadeTo("fast", 0.9); 154 }, 155 function () { 156 jQuery(this).stop().fadeTo("fast", 0.8); 157 }); 158 159 jQuery("#main-portfolio-carousel .preload").hover( 160 function () { 161 jQuery(this).stop().fadeTo("fast", 0.6); 162 }, 163 function () { 164 jQuery(this).stop().fadeTo("fast", 1); 165 }); 166 167 jQuery(".portfolio-image-holder").hover( 168 function () { 169 jQuery(this).stop().fadeTo("fast", 0.6); 170 }, 171 function () { 172 jQuery(this).stop().fadeTo("fast", 1); 173 }); 174 175 jQuery(".thumbnail-image").hover( 176 function () { 177 jQuery(this).stop().fadeTo("fast", 0.6); 178 }, 179 function () { 180 jQuery(this).stop().fadeTo("fast", 1); 181 }); 182 183 jQuery(".pictureframe").hover( 184 function () { 185 jQuery(this).stop().fadeTo("fast", 0.6); 186 }, 187 function () { 188 jQuery(this).stop().fadeTo("fast", 1); 189 }); 190 191 jQuery(".filter-image-holder").hover( 192 function () { 193 jQuery(this).stop().fadeTo("fast", 0.6); 194 }, 195 function () { 196 jQuery(this).stop().fadeTo("fast", 1); 197 }); 198 199 200 jQuery('.qtips').tipsy({gravity: 'n'}); 201 jQuery('.etips').tipsy({gravity: 'e'}); 202 jQuery('.stips').tipsy({gravity: 's'}); 203 204}); 205 206jQuery(function () { 207 jQuery('.portfolio-thumbnail-block').hide(); 208 jQuery('.filter-thumbnail-block').hide(); 209}); 210 211var i = 0;//initialize 212var int=0;//Internet Explorer Fix 213jQuery(window).bind("load", function() { 214 var int = setInterval("doThis(i)",10); 215 216 jQuery('.filter-thumbnail-loader').hide(); 217 jQuery('.filter-thumbnail-block:hidden').fadeIn(800); 218 219 220}); 221 222function doThis() { 223 var images = jQuery('.portfolio-image-holder').length; 224 if (i >= images) { 225 clearInterval(int); 226 } 227 jQuery('.thumbnail-loader').eq(i).fadeOut(0); 228 jQuery('.portfolio-thumbnail-block:hidden').eq(0).fadeIn(800); 229 i++; 230}
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.