1jQuery.noConflict(); 2(function( $ ) { 3 $(function() { 4 5 6 // Scroll to anchor 7 $('a[href^="#"]').click(function(event){ 8 $('html, body').animate({ 9 scrollTop: $( $.attr(this, 'href') ).offset().top 10 }, 500); 11 event.preventDefault(); 12 }); 13 14 $('.scrollToTop').click(function() { 15 $("html, body").animate({ scrollTop: 0 }, 2000); 16 return false; 17 }); 18 19 $(".homeSlider").slick({ 20 autoplay: true, 21 autoplaySpeed: 5000, //default 3000 22 speed: 1000, //default 300 23 pauseOnFocus: false, 24 pauseOnHover: false, 25 dots: false, 26 fade: true, 27 arrows: false, 28 infinite: true, 29 slidesToShow: 1, 30 slidesToScroll: 1, 31 rows:0, 32 }); 33 34 $(".partnersList").slick({ 35 autoplay: true, 36 autoplaySpeed: 5000, //default 3000 37 speed: 1000, //default 300 38 dots: false, 39 arrows: false, 40 infinite: true, 41 slidesToShow: 5, 42 slidesToScroll: 5, 43 rows:0, 44 responsive: [ 45 { 46 breakpoint: 1024, 47 settings: { 48 slidesToShow: 3, 49 slidesToScroll: 3, 50 infinite: true, 51 dots: true 52 } 53 }, 54 { 55 breakpoint: 600, 56 settings: { 57 slidesToShow: 4, 58 slidesToScroll: 4 59 } 60 }, 61 { 62 breakpoint: 480, 63 settings: { 64 slidesToShow: 2, 65 slidesToScroll: 2 66 } 67 } 68 ] 69 70 }); 71 72 $(".promisesList").slick({ 73 autoplay: true, 74 autoplaySpeed: 5000, //default 3000 75 speed: 1000, //default 300 76 dots: false, 77 arrows: false, 78 infinite: true, 79 slidesToShow: 2, 80 slidesToScroll: 1, 81 rows:0, 82 responsive: [ 83 { 84 breakpoint: 767, 85 settings: { 86 slidesToShow: 1, 87 slidesToScroll: 1, 88 infinite: true, 89 dots: true 90 } 91 } 92 ] 93 }); 94 95 $(".casestudiesList").slick({ 96 autoplay: false, 97 autoplaySpeed: 5000, //default 3000 98 speed: 1000, //default 300 99 fade: true, 100 dots: false, 101 arrows: false, 102 infinite: true, 103 slidesToShow: 1, 104 slidesToScroll: 1, 105 rows:0, 106 asNavFor: '.casestudyList', 107 }); 108 $(".casestudyList").slick({ 109 autoplay: false, 110 autoplaySpeed: 5000, //default 3000 111 speed: 1000, //default 300 112 dots: false, 113 arrows: false, 114 infinite: true, 115 slidesToShow: 10, 116 slidesToScroll: 1, 117 vertical:true, 118 rows:0, 119 asNavFor: '.casestudiesList', 120 focusOnSelect: true, 121 }); 122 123 124 125 $(".widget_slick_slider").slick({ 126 autoplay: false, 127 autoplaySpeed: 5000, 128 pauseOnFocus: false, 129 pauseOnHover: false, 130 dots: true, 131 arrows: false, 132 infinite: true, 133 speed: 1000, 134 slidesToShow: 1, 135 slidesToScroll: 1 136 }); 137 138 function BannerHeight(){ 139 var WH = $(window).outerHeight(); 140 var WW = $('#header').outerWidth(); 141 var HH = $('#header').outerHeight(); 142 var BH = WH - (WH*0.35); 143 //$('.SlideContentTable').css({'padding-top':HH}); 144 if (WW > 767){ 145 $('.homeSlideItem').css({'min-height':WH}); 146 }else{ 147 $('.homeSlideItem').css({'min-height':BH}); 148 } 149 } 150 151 152 /*$(".testimonial_shortcode_slider").slick({ 153 autoplay: false, 154 autoplaySpeed: 8000, 155 dots: true, 156 arrows: false, 157 infinite: true, 158 speed: 1000, 159 slidesToShow: 1, 160 slidesToScroll: 1 161 });*/ 162 163 /*Menu*/ 164 $('#OpenMenu').click(function(){ 165 $('#PushMenuWrap').addClass('opened'); 166 $('#PushMenuWrapOverlay').addClass('opened'); 167 $('#wrap').addClass('menuopened'); 168 }); 169 170 $('.close_menu').click(function(){ 171 $('#PushMenuWrap').removeClass('opened'); 172 $('#PushMenuWrapOverlay').removeClass('opened'); 173 $('#wrap').removeClass('menuopened'); 174 }); 175 $('.menu-item-has-children').each(function(index, element){ 176 $(this).append('<span class="submenu_open"><i class="fa fa-angle-right"></i></span>'); 177 }); 178 /*$('.menu-item-has-children').click(function(){ 179 $('ul.PushMenu').addClass('hidden'); 180 $('.sub-menu').removeClass('opened'); 181 $(this).find('ul').toggleClass('opened'); 182 $('.sub_menu_icon').addClass('opened'); 183 184 185 }); 186 $('.sub_menu_icon .close_submenu').click(function(){ 187 $('ul.PushMenu ul').removeClass('opened'); 188 $('.sub_menu_icon').removeClass('opened'); 189 $('ul.PushMenu').removeClass('hidden'); 190 });*/ 191 192 $(document).click(function(event) { 193 //if you click on anything except the modal itself or the "open modal" link, close the modal 194 if (!$(event.target).closest("#OpenMenu, .close_menu, .sub_menu_icon, #PushMenuWrap").length) { 195 $("body").find("#PushMenuWrap").removeClass("opened"); 196 } 197 }); 198 199 function animateAfterLoad(){ 200 setTimeout(function(){ $('.animateAfterLoad').addClass('in-view');}, 1000); 201 202 } 203 204 205 //Animate elements 206 var $animation_elements = $('.animation'); 207 var $window = $(window); 208 209 function check_if_in_view() { 210 var window_height = $window.height(); 211 var window_top_position = $window.scrollTop(); 212 var window_bottom_position = (window_top_position + window_height); 213 214 $.each($animation_elements, function() { 215 var $element = $(this); 216 var element_height = $element.outerHeight(); 217 var element_top_position = $element.offset().top; 218 var element_bottom_position = (element_top_position + element_height); 219 var element_middle_position = (element_top_position + (element_height/3)) 220 221 //check to see if this current container is within viewport 222 if ((element_bottom_position >= window_top_position) && (element_middle_position <= window_bottom_position)) { 223 setTimeout(function(){$element.addClass('in-view');}, 500); 224 }/* else { 225 $element.removeClass('in-view'); 226 }*/ 227 }); 228 } 229 230 $window.on('scroll resize', check_if_in_view); 231 $window.trigger('scroll'); 232 //Animate elements 233 234 //Move elements 235 /*var prevScroll = 0; 236 function moveElements(){ 237 var $this = $(this), 238 currScroll = $this.scrollTop(); 239 if (currScroll > prevScroll){ 240 $('.in-view').animate({top: '-=10'}, 5);
241 } else { 242 $('.in-view').animate({top: '+=10'}, 5); 243 } 244 245 prevScroll = currScroll; 246 } 247 $window.on('scroll', moveElements);*/ 248 //Move elements 249 250 251 function removeNoJsClass() { 252 $( 'html:first' ).removeClass( 'no-js' ); 253 } 254 255 /* Superfish the menu drops ---------------------*/ 256 function superfishSetup() { 257 $('.menu').superfish({ 258 delay: 200, 259 animation: {opacity:'show', height:'show'}, 260 speed: 'fast', 261 cssArrows: true, 262 autoArrows: true, 263 dropShadows: false 264 }); 265 } 266 267 /* Portfolio Filter ---------------------*/ 268 function isotopeSetup() { 269 var $grid = $('.blog_page, .team_page, .latestNewsPage').imagesLoaded( function() { 270 $grid.isotope({ 271 itemSelector: '.blog_holder, .team_holder, .latestNewsPost', 272 layoutMode: 'fitRows', 273 percentPosition: true, 274 }); 275 }); 276 } 277 278 function masonrySetup() { 279 var $masogrid = $('.GalleryList').imagesLoaded( function() { 280 $masogrid.isotope({ 281 itemSelector: '.GalleryTile', 282 layoutMode: 'masonry', 283 percentPosition: true, 284 masonry: { 285 gutter: '.gallerygutter' 286 } 287 }); 288 }); 289 } 290 291 /* Animating Menu Setup ---------------------*/ 292 function navScrollSetup() { 293 $('#header').data('size','big'); 294 } 295 296 //sticky header 297 var stickyHeaderTop = $('#header').offset().top + $('#header').outerHeight(); 298 $(window).scroll(function(){ 299 if( $(window).scrollTop() > stickyHeaderTop) { 300 $('#header').addClass("sticky"); 301 } else { 302 $('#header').removeClass("sticky"); 303 } 304 }); 305 306 307 /*function headerSpacing(){ 308 $('.bannerTableCell, .page-banner').css({'padding-top': $('#header').outerHeight()}); 309 }*/ 310 311 function simpleTabMenu(){ 312 $('.tabMenuItem').click(function(){ 313 var tabID = $(this).attr('id'); 314 if($(this).hasClass('active')){ 315 //do nothing; 316 }else{ 317 $('.tabMenuItem').removeClass('active'); 318 $('.tabContentWrap').removeClass('active'); 319 $('.tabContentWrap').hide(); 320 321 $(this).addClass('active'); 322 $('#'+tabID+'-content').addClass('active'); 323 $('#'+tabID+'-content').show(); 324 } 325 }); 326 } 327 328 function modifyPosts() { 329 330 /* Insert Nav Arrow Before Submenu ---------------------*/ 331 //$('<span class="nav-arrow"></span>').insertBefore('ul.sub-menu li:first-child, ul.menu ul li:first-child'); 332 333 /* Insert Line Break Before More Links ---------------------*/ 334 $('<br />').insertBefore('.content a.more-link'); 335 336 /* Hide Comments When No Comments Activated ---------------------*/ 337 $('.nocomments').parent().css('display', 'none'); 338 339 /* Animate Page Scroll ---------------------*/ 340 $(".scroll").click(function(event){ 341 event.preventDefault(); 342 $('html,body').animate({scrollTop:$(this.hash).offset().top}, 500); 343 }); 344 345 /* Fit Vids ---------------------*/ 346 $('.feature-vid, .content, .slidepopup_content').fitVids(); 347 348 } 349 350 //Force page scroll position to top at page refresh 351 /*$(window).on('unload', function() { 352 $(window).scrollTop(0); 353 });*/ 354 355 356 $( document ) 357 .ready( removeNoJsClass ) 358 .ready( navScrollSetup ) 359 .ready( superfishSetup ) 360 .ready( modifyPosts ) 361 .ready (simpleTabMenu) 362 //.ready( BannerHeight ) 363 //.ready( headerSpacing ) 364 .on( 'post-load', modifyPosts ); 365 366 $( window ) 367 .load( isotopeSetup ) 368 .load( masonrySetup ) 369 .load(animateAfterLoad) 370 //.load(headerSpacing) 371 //.load( BannerHeight ) 372 //.scroll(headerSpacing) 373 .resize( isotopeSetup ) 374 .resize( masonrySetup ) 375 //.resize(headerSpacing) 376 //.resize( BannerHeight ) 377 378 }); 379})(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.