1jQuery(function($){ 2 "use strict"; 3 4var VESTIGE = window.VESTIGE || {}; 5VESTIGE.megaMenu = function() { 6 jQuery('.megamenu-sub-title').closest('ul.sub-menu').wrapInner('<div class="row" />').wrapInner('<div class ="megamenu-container container" />').wrapInner('<li />'); 7 jQuery('.megamenu-container').closest('li.menu-item-has-children').addClass('megamenu'); 8 var $class = ''; 9 jQuery(".megamenu-container").each(function(index, elem) { 10 var numImages = $(this).find('.row').children().length; 11 switch (numImages) 12 { 13 case 1: 14 $class = 12; 15 break; 16 case 2: 17 $class = 6; 18 break; 19 case 3: 20 $class = 4; 21 break; 22 case 4: 23 $class = 3; 24 break; 25 default: 26 $class = 2; 27 } 28 $(this).find('.row').find('.col-md-3').each(function() { 29 jQuery(this).removeClass('col-md-3').addClass('col-md-' + $class); 30 }) 31 //$('.megamenu-container .row .div:has(.col-md-3)').addClass('col-md-' + $class).removeClass('col-md-3'); 32 //jQuery(this).find('.row').children().addClass('col-md-' + $class).removeClass('col-md-3'); 33 // do whatever processing you wanted to with numImages here 34}); 35} 36/* ================================================== 37 Contact Form Validations 38================================================== */ 39 VESTIGE.ContactForm = function(){ 40 $('.contact-form').each(function(){ 41 var formInstance = $(this); 42 formInstance.submit(function(){ 43 44 var action = $(this).attr('action'); 45 46 $("#message").slideUp(750,function() { 47 $('#message').hide(); 48 49 $('#submit') 50 .after('<img src="' + $('#image_path').val() + '/images/assets/ajax-loader.gif" class="loader" />') 51 .attr('disabled','disabled'); 52 53 $.post(action, { 54 fname: $('#fname').val(), 55 lname: $('#lname').val(), 56 email: $('#email').val(), 57 phone: $('#phone').val(), 58 comments: $('#comments').val() 59 }, 60 function(data){ 61 document.getElementById('message').innerHTML = data; 62 $('#message').slideDown('slow'); 63 $('.contact-form img.loader').fadeOut('slow',function(){$(this).remove()}); 64 $('#submit').removeAttr('disabled'); 65 if(data.match('success') != null) $('.contact-form').slideUp('slow'); 66 67 } 68 ); 69 }); 70 return false; 71 }); 72 }); 73 } 74/* ================================================== 75 Scroll to Top 76================================================== */ 77 VESTIGE.scrollToTop = function(){ 78 var windowWidth = $(window).width(), 79 didScroll = false; 80 81 var $arrow = $('#back-to-top'); 82 83 $arrow.on("click", function(e) { 84 $('body,html').animate({ scrollTop: "0" }, 750, 'easeOutExpo' ); 85 e.preventDefault(); 86 }) 87 88 $(window).scroll(function() { 89 didScroll = true; 90 }); 91 92 setInterval(function() { 93 if( didScroll ) { 94 didScroll = false; 95 96 if( $(window).scrollTop() > 200 ) { 97 $arrow.fadeIn(); 98 } else { 99 $arrow.fadeOut(); 100 } 101 } 102 }, 250); 103 } 104/* ================================================== 105 Accordion 106================================================== */ 107 VESTIGE.accordion = function(){ 108 var accordion_trigger = $('.accordion-heading.accordionize'); 109 110 accordion_trigger.delegate('.accordion-toggle','click', function(event){ 111 if($(this).hasClass('active')){ 112 $(this).removeClass('active'); 113 $(this).addClass('inactive'); 114 } 115 else{ 116 accordion_trigger.find('.active').addClass('inactive'); 117 accordion_trigger.find('.active').removeClass('active'); 118 $(this).removeClass('inactive'); 119 $(this).addClass('active'); 120 } 121 event.preventDefault(); 122 }); 123 } 124/* ================================================== 125 Toggle 126================================================== */ 127 VESTIGE.toggle = function(){ 128 var accordion_trigger_toggle = $('.accordion-heading.togglize'); 129 130 accordion_trigger_toggle.delegate('.accordion-toggle','click', function(event){ 131 if($(this).hasClass('active')){ 132 $(this).removeClass('active'); 133 $(this).addClass('inactive'); 134 } 135 else{ 136 $(this).removeClass('inactive'); 137 $(this).addClass('active'); 138 } 139 event.preventDefault(); 140 }); 141 } 142/* ================================================== 143 Tooltip 144================================================== */ 145 VESTIGE.toolTip = function(){ 146 $('a[data-toggle=tooltip]').tooltip(); 147 $('a[data-toggle=tooltip]').tooltip(); 148 $('a[data-toggle=popover]').popover({html:true}).on("click", function(e) { 149 e.preventDefault(); 150 $(this).focus(); 151 }); 152 } 153/* ================================================== 154 Hero Flex Slider 155================================================== */ 156 VESTIGE.heroflex = function() { 157 $('.heroflex').each(function(){ 158 var carouselInstance = $(this); 159 var carouselAutoplay = carouselInstance.attr("data-autoplay") == 'yes' ? true : false 160 var carouselPagination = carouselInstance.attr("data-pagination") == 'yes' ? true : false 161 var carouselArrows = carouselInstance.attr("data-arrows") == 'yes' ? true : false 162 var carouselDirection = carouselInstance.attr("data-direction") ? carouselInstance.attr("data-direction") : "horizontal" 163 var carouselStyle = carouselInstance.attr("data-style") ? carouselInstance.attr("data-style") : "fade" 164 var carouselSpeed = carouselInstance.attr("data-speed") ? carouselInstance.attr("data-speed") : "5000" 165 var carouselPause = carouselInstance.attr("data-pause") == 'yes' ? true : false 166 167 carouselInstance.flexslider({ 168 animation: carouselStyle, 169 easing: "swing", 170 direction: carouselDirection, 171 slideshow: carouselAutoplay, 172 slideshowSpeed: carouselSpeed, 173 animationSpeed: 600, 174 initDelay: 0, 175 randomize: false, 176 pauseOnHover: carouselPause, 177 controlNav: carouselPagination, 178 directionNav: carouselArrows, 179 prevText: "", 180 nextText: "" 181 }); 182 }); 183 } 184/* ================================================== 185 Flex Slider 186================================================== */ 187 VESTIGE.galleryflex = function() { 188 $('.galleryflex').each(function(){ 189 var carouselInstance = $(this); 190 var carouselAutoplay = carouselInstance.attr("data-autoplay") == 'yes' ? true : false 191 var carouselPagination = carouselInstance.attr("data-pagination") == 'yes' ? true : false 192 var carouselArrows = carouselInstance.attr("data-arrows") == 'yes' ? true : false 193 var carouselDirection = carouselInstance.attr("data-direction") ? carouselInstance.attr("data-direction") : "horizontal" 194 var carouselStyle = carouselInstance.attr("data-style") ? carouselInstance.attr("data-style") : "fade" 195 var carouselSpeed = carouselInstance.attr("data-speed") ? carouselInstance.attr("data-speed") : "5000" 196 var carouselPause = carouselInstance.attr("data-pause") == 'yes' ? true : false 197 198 carouselInstance.flexslider({ 199 animation: carouselStyle, 200 easing: "swing", 201 direction: carouselDirection, 202 slideshow: carouselAutoplay, 203 slideshowSpeed: carouselSpeed, 204 animationSpeed: 600, 205 initDelay: 0, 206 randomize: false, 207 pauseOnHover: carouselPause, 208 controlNav: carouselPagination, 209 directionNav: carouselArrows, 210 prevText: "", 211 nextText: "" 212 }); 213 }); 214 } 215/* ==================================================
216 Owl Carousel 217================================================== */ 218 VESTIGE.OwlCarousel = function() { 219 $('.owl-carousel').each(function(){ 220 var carouselInstance = $(this); 221 var carouselColumns = carouselInstance.attr("data-columns") ? carouselInstance.attr("data-columns") : "1" 222 var carouselitemsDesktop = carouselInstance.attr("data-items-desktop") ? carouselInstance.attr("data-items-desktop") : "4" 223 var carouselitemsDesktopSmall = carouselInstance.attr("data-items-desktop-small") ? carouselInstance.attr("data-items-desktop-small") : "3" 224 var carouselitemsTablet = carouselInstance.attr("data-items-tablet") ? carouselInstance.attr("data-items-tablet") : "2" 225 var carouselitemsMobile = carouselInstance.attr("data-items-mobile") ? carouselInstance.attr("data-items-mobile") : "1" 226 var carouselAutoplay = carouselInstance.attr("data-autoplay") ? carouselInstance.attr("data-autoplay") : false 227 var carouselPagination = carouselInstance.attr("data-pagination") == 'yes' ? true : false 228 var carouselArrows = carouselInstance.attr("data-arrows") == 'yes' ? true : false 229 var carouselSingle = carouselInstance.attr("data-single-item") == 'yes' ? true : false 230 var carouselStyle = carouselInstance.attr("data-style") ? carouselInstance.attr("data-style") : "fade" 231 232 carouselInstance.owlCarousel({ 233 items: carouselColumns, 234 autoPlay : carouselAutoplay, 235 navigation : carouselArrows, 236 pagination : carouselPagination, 237 itemsDesktop:[1199,carouselitemsDesktop], 238 itemsDesktopSmall:[979,carouselitemsDesktopSmall], 239 itemsTablet:[768,carouselitemsTablet], 240 itemsMobile:[479,carouselitemsMobile], 241 singleItem:carouselSingle, 242 navigationText: ["<i class='fa fa-chevron-left'></i>","<i class='fa fa-chevron-right'></i>"], 243 stopOnHover: true, 244 lazyLoad: true, 245 transitionStyle: 'carouselStyle' 246 }); 247 }); 248 } 249/* ================================================== 250 Nivo Slider 251================================================== */ 252 VESTIGE.NivoSlider = function() { 253 $('.nivoSlider').each(function(){ 254 var nivoInstance = $(this); 255 var nivoAutoplay = nivoInstance.attr("data-autoplay") == 'no' ? true : false 256 var nivoPagination = nivoInstance.attr("data-pagination") == 'yes' ? true : false 257 var nivoArrows = nivoInstance.attr("data-arrows") == 'yes' ? true : false 258 var nivoThumbs = nivoInstance.attr("data-thumbs") == 'yes' ? true : false 259 var nivoEffect = nivoInstance.attr("data-effect") ? nivoInstance.attr("data-effect") : "random" 260 var nivoSlices = nivoInstance.attr("data-slices") ? nivoInstance.attr("data-slices") : "15" 261 var nivoanimSpeed = nivoInstance.attr("data-animSpeed") ? nivoInstance.attr("data-animSpeed") : "500" 262 var nivopauseTime = nivoInstance.attr("data-pauseTime") ? nivoInstance.attr("data-pauseTime") : "3000" 263 var nivoPause = nivoInstance.attr("data-pauseonhover") == 'yes' ? true : false 264 265 nivoInstance.nivoSlider({ 266 effect: nivoEffect, 267 slices: nivoSlices, 268 animSpeed: nivoanimSpeed, 269 pauseTime: nivopauseTime, 270 directionNav: nivoArrows, 271 controlNav: nivoPagination, 272 controlNavThumbs: nivoThumbs, 273 pauseOnHover: nivoPause, 274 manualAdvance: nivoAutoplay 275 }); 276 }); 277 } 278/* ================================================== 279 PrettyPhoto 280================================================== */ 281 VESTIGE.PrettyPhoto = function() { 282 $("a[data-rel^='prettyPhoto']").prettyPhoto({ 283 opacity: 0.5, 284 social_tools: "", 285 deeplinking: false 286 }); 287 } 288/* ================================================== 289 Animated Counters 290================================================== */ 291 VESTIGE.Counters = function() { 292 $('.counters').each(function () { 293 $(".timer .count").appear(function() { 294 var counter = $(this).html(); 295 $(this).countTo({ 296 from: 0, 297 to: counter, 298 speed: 2000, 299 refreshInterval: 60 300 }); 301 }); 302 }); 303 304 $(".countdown .timer .count").appear(function() { 305 var counter = $(this).html(); 306 $(this).countTo({ 307 from: 0, 308 to: counter, 309 speed: 2000, 310 refreshInterval: 60, 311 }); 312 }); 313 } 314/* ================================================== 315 SuperFish menu 316================================================== */ 317 VESTIGE.SuperFish = function() { 318 $('.sf-menu').superfish({ 319 delay: 200, 320 animation: {opacity:'show', height:'show'}, 321 speed: 'fast',
322 cssArrows: false, 323 disableHI: true 324 }); 325 $(".dd-menu > ul > li:has(ul)").find("a:first").append(" <i class='fa fa-angle-down'></i>"); 326 $(".dd-menu > ul > li > ul > li:has(ul)").find("a:first").append(" <i class='fa fa-angle-right'></i>"); 327 $(".dd-menu > ul > li > ul > li > ul > li:has(ul)").find("a:first").append(" <i class='fa fa-angle-right'></i>"); 328 } 329/* ================================================== 330 Header Functions 331================================================== */ 332 VESTIGE.StickyHeader = function() { 333 $('.header-style1 .site-header, .header-style2 .site-header').sticky(); 334 $('.header-style3 .main-navbar').sticky(); 335 if($(window).width() < 992){$('.header-style3 .site-header').sticky();} 336 } 337/* ================================================== 338 Responsive Nav Menu 339================================================== */ 340 VESTIGE.MobileMenu = function() { 341 // Responsive Menu Events 342 $('#menu-toggle').on("click", function(){ 343 $(this).toggleClass("opened"); 344 $(".toggle-menu").slideToggle(); 345 return false; 346 }); 347 $(window).resize(function(){ 348 if($("#menu-toggle").hasClass("opened")){ 349 $(".toggle-menu").css("display","block"); 350 } else { 351 $("#menu-toggle").css("display","none"); 352 } 353 }); 354 } 355/* ================================================== 356 IsoTope Portfolio 357================================================== */ 358 VESTIGE.IsoTope = function() { 359 $("ul.sort-source").each(function() { 360 var source = $(this); 361 var destination = $("ul.sort-destination[data-sort-id=" + $(this).attr("data-sort-id") + "]"); 362 if(destination.get(0)) { 363 $(window).load(function() { 364 destination.isotope({ 365 itemSelector: ".grid-item", 366 layoutMode: 'sloppyMasonry' 367 }); 368 source.find("a").on("click", function(e) { 369 e.preventDefault(); 370 var $this = $(this), 371 filter = $this.parent().attr("data-option-value"); 372 source.find("li.active").removeClass("active"); 373 $this.parent().addClass("active"); 374 destination.isotope({ 375 filter: filter 376 }); 377 if(window.location.hash != "" || filter.replace(".","") != "*") { 378 self.location = "#" + filter.replace(".",""); 379 } 380 return false; 381 }); 382 $(window).on("hashchange", function(e) { 383 var hashFilter = "." + location.hash.replace("#",""), 384 hash = (hashFilter == "." || hashFilter == ".*" ? "*" : hashFilter); 385 source.find("li.active").removeClass("active"); 386 source.find("li[data-option-value='" + hash + "']").addClass("active"); 387 destination.isotope({ 388 filter: hash 389 }); 390 }); 391 var hashFilter = "." + (location.hash.replace("#","") || "*"); 392 var initFilterEl = source.find("li[data-option-value='" + hashFilter + "'] a"); 393 if(initFilterEl.get(0)) { 394 source.find("li[data-option-value='" + hashFilter + "'] a").click(); 395 } else { 396 source.find("li:first-child a").click(); 397 } 398 }); 399 } 400 }); 401 $(window).load(function() { 402 var IsoTopeCont = $(".isotope-grid"); 403 IsoTopeCont.isotope({ 404 itemSelector: ".grid-item", 405 layoutMode: 'sloppyMasonry' 406 }); 407 if ($(".grid-holder").length > 0){ 408 var $container_blog = $('.grid-holder'); 409 $container_blog.isotope({ 410 itemSelector : '.grid-item' 411 }); 412 $(window).resize(function() { 413 var $container_blog = $('.grid-holder'); 414 $container_blog.isotope({ 415 itemSelector : '.grid-item' 416 }); 417 }); 418 } 419 }); 420 } 421/* ================================================== 422 Init Functions 423================================================== */ 424$(document).ready(function(){ 425 VESTIGE.megaMenu(); 426 VESTIGE.ContactForm(); 427 VESTIGE.scrollToTop(); 428 VESTIGE.accordion(); 429 VESTIGE.toggle(); 430 VESTIGE.toolTip(); 431 VESTIGE.OwlCarousel(); 432 VESTIGE.PrettyPhoto(); 433 VESTIGE.SuperFish(); 434 VESTIGE.Counters(); 435 VESTIGE.IsoTope(); 436 VESTIGE.StickyHeader(); 437 VESTIGE.heroflex(); 438 VESTIGE.galleryflex(); 439 VESTIGE.NivoSlider(); 440 VESTIGE.MobileMenu(); 441 $('.selectpicker').selectpicker({container:'body'}); 442 $('.datepicker').datepicker(); 443 ExFunc(); 444 LOGOH(); 445 WWHGetter(); 446 $('.widget_spacer-widget, .widget_hr-widget').parents('.panel-grid').css("margin-bottom",0); 447 $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { 448 var target = $(e.target).attr("href") // activated tab 449 if(target=="#venuetab") 450 { 451 $("#venuetab").css({"display":"block"}); 452 } 453 else 454 { 455 $("#venuetab").css({"display":"none"}); 456 } 457 }); 458}); 459 460// DESIGN ELEMENTS // 461 462// Events Grid Time Stamp Positioning 463$(".events-grid .grid-item").has(".grid-featured-img").find(".event-time").css("position","absolute"); 464 465// Homepage Exhibitions Timeline Equal Height 466function ExFunc(){ 467 $('.exhibitions-timeline').each(function(){ 468 var timeline_slot = $(this).find('.timeline-slot').height(); 469 var timeline_stamp = $(this).find('.timeline-stamp-table').height(); 470 if (timeline_slot < timeline_stamp){ 471 $(this).find('.timeline-slot').css("height",timeline_stamp); 472 } 473 $(this).find('.timeline-stamp-table').css("height",timeline_slot); 474 }); 475} 476 477// Featured Blocks Text Line Height 478function FBLH(){ 479 var FIMH = $('.featured-block figure img').height(); 480 $('.featured-block figure .caption').css('line-height',FIMH+'px'); 481} 482//Donation Modal 483$(".donate-paypal").on("click", function(e) { 484 var CauseName = $(this).parents(".list-item").find("h3").html(); 485 $(".payment-to-cause").html(CauseName); 486}); 487$('select[name="donation amount"]').change(function(){ 488 if ($(this).val() === "Custom") 489 { 490 $('.custom-donate-amount').show(); 491 $('input[name="Custom Donation Amount"]').focus(); 492 } 493 else 494 { 495 $('.custom-donate-amount').hide(); 496 } 497}); 498// apply matchHeight to each item container's items 499$('.content').each(function() { 500 $(this).find('.owl-carousel .grid-item').find('.grid-item-content').matchHeight({ 501 //property: 'min-height' 502 }); 503 $(this).find('.spaces-item').find('.grid-item-content').matchHeight({ 504 //property: 'min-height' 505 }); 506}); 507// Header and Navigation Height as per the Logo height 508function LOGOH(){ 509 var LHM = $('.site-logo img').height(); 510 var LHMM = LHM + 34; 511 if($(window).width() < 992){ 512 $('.header-style2 .dd-menu').css('top',LHMM+'px'); 513 $('.header-style2 #menu-toggle').css('line-height',LHMM+'px'); 514 $('.header-style3 #menu-toggle').css('line-height',LHMM+'px'); 515 } 516} 517 518// WINDOW RESIZE FUNCTIONS // 519$(window).resize(function(){ 520 ExFunc(); 521 FBLH(); 522 LOGOH(); 523 WWHGetter(); 524}); 525 526// Centering the dropdown menus 527$(".main-navigation ul li").mouseover(function() { 528 var the_width = $(this).find("a").width(); 529 var child_width = $(this).find("ul").width(); 530 var width = ((child_width - the_width)/2); 531 $(this).find("ul").css('left', -width); 532}); 533 534// Main Nav Line Height 535var SiteLogoH = $('.site-logo').height(); 536$('.header-style2 .main-navigation > ul > li > a').css('line-height',SiteLogoH+'px'); 537 538// Any Button Scroll to section 539$('.scrollto').on("click", function(){ 540 $.scrollTo( this.hash, 800, { easing:'easeOutQuint' }); 541 return false;
542}); 543 544// FITVIDS 545$(".fw-video, .post-media").fitVids(); 546 547 548$(window).load(function(){ 549 $(".format-image").each(function(){ 550 $(this).find(".media-box").append("<span class='zoom'><span class='icon'><i class='icon-expand'></i></span></span>"); 551 }); 552 $(".format-standard").each(function(){ 553 $(this).find(".media-box").append("<span class='zoom'><span class='icon'><i class='fa fa-arrow-right'></i></span></span>"); 554 }); 555 $(".gallery-grid .format-video").each(function(){ 556 $(this).find(".media-box").append("<span class='zoom'><span class='icon'><i class='icon-music-play'></i></span></span>"); 557 }); 558 $(".gallery-grid .format-link").each(function(){ 559 $(this).find(".media-box").append("<span class='zoom'><span class='icon'><i class='fa fa-link'></i></span></span>"); 560 }); 561 $(".additional-images .owl-carousel .item-video").each(function(){ 562 $(this).append("<span class='icon'><i class='fa fa-play'></i></span>"); 563 }); 564 VESTIGE.StickyHeader(); 565 FBLH(); 566 $('.carousel-wrapper').css('background','none'); 567 568}); 569 570// Icon Append 571$(".cust-counter" ).wrapAll( "<section class=\"counters padding-tb45 accent-color text-align-center\"><div class=\"container\"><div class=\"row\">"); 572$("#comment-submit").wrapAll("<div class=\"row\"><div class=\"form-group\"><div class=\"col-md-12\">"); 573$("#comment-submit").addClass("btn btn-primary btn-lg"); 574$('.basic-link').append(' <i class="fa fa-angle-right"></i>'); 575$('.basic-link.backward').prepend(' <i class="fa fa-angle-left"></i> '); 576$('ul.checks li, .add-features-list li').prepend('<i class="fa fa-check"></i> '); 577$('ul.angles li, .widget_categories ul li a, .widget_archive ul li a, .widget_recent_entries ul li a, .widget_recent_comments ul li a, .widget_links ul li a, .widget_meta ul li a, .widget_nav_menu ul li a').prepend('<i class="fa fa-angle-right"></i> '); 578$('ul.chevrons li').prepend('<i class="fa fa-chevron-right"></i> '); 579$('ul.carets li, ul.inline li, .filter-options-list li').prepend('<i class="fa fa-caret-right"></i> '); 580$('a.external').prepend('<i class="fa fa-external-link"></i> '); 581 582// Animation Appear 583var AppDel; 584function AppDelFunction($appd) { 585 $appd.addClass("appear-animation"); 586 if(!$("html").hasClass("no-csstransitions") && $(window).width() > 767) { 587 $appd.appear(function() { 588 var delay = ($appd.attr("data-appear-animation-delay") ? $appd.attr("data-appear-animation-delay") : 1); 589 if(delay > 1) $appd.css("animation-delay", delay + "ms"); 590 $appd.addClass($appd.attr("data-appear-animation")); 591 setTimeout(function() { 592 $appd.addClass("appear-animation-visible"); 593 }, delay); 594 clearTimeout(); 595 }, {accX: 0, accY: -150}); 596 } else { 597 $appd.addClass("appear-animation-visible"); 598 } 599} 600function AppDelStopFunction() { 601 clearTimeout(AppDel); 602} 603$("[data-appear-animation]").each(function() { 604 var $this = $(this); 605 AppDelFunction($this); 606 AppDelStopFunction(); 607}); 608// Animation Progress Bars 609 610var AppAni; 611function AppAniFunction($anim) { 612 $anim.appear(function() { 613 var delay = ($anim.attr("data-appear-animation-delay") ? $anim.attr("data-appear-animation-delay") : 1); 614 if(delay > 1) $anim.css("animation-delay", delay + "ms"); 615 $anim.addClass($anim.attr("data-appear-animation")); 616 setTimeout(function() { 617 $anim.animate({ 618 width: $anim.attr("data-appear-progress-animation") 619 }, 1500, "easeOutQuad", function() { 620 $anim.find(".progress-bar-tooltip").animate({ 621 opacity: 1 622 }, 500, "easeOutQuad"); 623 }); 624 }, delay); 625 clearTimeout(); 626 }, {accX: 0, accY: -50}); 627} 628function AppAniStopFunction() { 629 clearTimeout(AppAni); 630} 631$("[data-appear-progress-animation]").each(function() { 632 var $this = $(this); 633 AppAniFunction($this); 634 AppAniStopFunction(); 635}); 636 637// Parallax Jquery Callings 638if(!Modernizr.touch) { 639 $(window).on('load', function () {
640 parallaxInit(); 641 }); 642} 643function parallaxInit() { 644 $('.parallax1').parallax("50%", 0.1); 645 $('.parallax2').parallax("50%", 0.1); 646 $('.parallax3').parallax("50%", 0.1); 647 $('.parallax4').parallax("50%", 0.1); 648 $('.parallax5').parallax("50%", 0.1); 649 $('.parallax6').parallax("50%", 0.1); 650 $('.parallax7').parallax("50%", 0.1); 651 $('.parallax8').parallax("50%", 0.1); 652 /*add as necessary*/ 653} 654 655// Window height/Width Getter Classes 656function WWHGetter(){ 657 var wheighter = $(window).height(); 658 var wwidth = $(window).width(); 659 $(".wheighter").css("height",wheighter); 660 $(".wwidth").css("width",wwidth); 661} 662});
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.