2017-10-11 10:54:42 +02:00
|
|
|
(function(c){c(document).ready(function(){c(window).load(function(){c("#st-container").removeClass("disable-scrolling");c("#loading-animation").fadeOut();c("#preloader").delay(350).fadeOut(800);a();equalheight(".same-height")});if(c(window).width()>1500){c(".effect-wrapper").addClass("col-lg-3")}if(c(window).width()<768){c(".animated").removeClass("animated").removeClass("hiding");c(".stat span").removeClass("timer");c(".timeslot-label").addClass("stick-label")}if(c(window).height()<512){c("#bottom-navlinks").removeClass("bottom-navlinks").addClass("bottom-navlinks-small")}if(c(window).scrollTop()>=100){c("#top-header").addClass("after-scroll");c("#logo-header .logo").removeClass("logo-light").addClass("logo-dark")}c(window).scroll(function(){var h=c(this).scrollTop();var l=c("#top-header");var k=c("#logo-header .logo");var i=c(".right-nav-button");var j=l.height()+c(".track-header").height();if(h>=100){l.addClass("after-scroll");k.removeClass("logo-light").addClass("logo-dark")}else{l.removeClass("after-scroll");k.removeClass("logo-dark").addClass("logo-light")}if(h>=c(".top-section").height()&&c(window).width()>767){i.removeClass("right-nav-button-hidden")}else{if(h<c(".top-section").height()&&c(window).width()>767){i.addClass("right-nav-button-hidden")}}c(".slot").each(function(){var n=c(this).offset().top-h;var m=j+c(this).find(".slot-title").height();if(n<=m&&n>=0){c(".track-header.sticky").find(".slot-detail").html(c(this).data("slotDetail"))}})});c(window).resize(function(){if(c(window).width()>1500){c(".effect-wrapper").addClass("col-lg-3")}else{c(".effect-wrapper").removeClass("col-lg-3")}if(c(window).width()<768){c(".same-height").css("height","100%");c(".timeslot-label").addClass("stick-label")}else{c(".timeslot-label").removeClass("stick-label");if(e.hasClass("st-menu-open")){e.removeClass("st-menu-open");c("body").css("overflow","auto")}equalheight(".same-height")}if(c(window).height()<512){c(".st-menu").addClass("scrollable");c("#bottom-navlinks").removeClass("bottom-navlinks").addClass("bottom-navlinks-small")}else{c(".st-menu").removeClass("scrollable");c("#bottom-navlinks").removeClass("bottom-navlinks-small").addClass("bottom-navlinks")}});c(function(){c("a[href*=#]:not([href=#])").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var h=c(this.hash);h=h.length?h:c("[name="+this.hash.slice(1)+"]");if(h.length){c("html,body").animate({scrollTop:h.offset().top},1000);return false}}})});c(function(){c("a[href=#]").click(function(){event.preventDefault()})});c(function(){if(window.location.href.indexOf("schedule")>-1&&window.location.hash){var h=window.location.hash;c(h).click()}});c(function(){var l,j,k,o,n,h,m;m=c(".appear-animation");for(n=0,h=m.length;n<h;n++){k=m[n];o=k.offsetLeft+k.offsetTop;j=o/1000;c(k).css("transition-delay",""+(j*0.47)+"s");c(k).css("transition-duration",""+0.2+"s")}});c(".appear-animation-trigger").appear(function(){setTimeout(function(){c(".appear-animation-trigger").parent("div").find(".appear-animation").addClass("visible")},1000)});c(".animated").appear(function(){var i=c(this);var j=i.data("animation");var h=i.data("delay");if(h){setTimeout(function(){i.addClass(j+" visible");i.removeClass("hiding");if(i.hasClass("counter")){i.find(".timer").countTo()}},h)}else{i.addClass(j+" visible");i.removeClass("hiding");if(i.hasClass("counter")){i.find(".timer").countTo()}}},{accY:-150});equalheight=function(i){var h=0,j=0,m=new Array(),l,k=0;c(i).each(function(){l=c(this);c(l).height("auto");topPostion=l.position().top;if(j!=topPostion){for(currentDiv=0;currentDiv<m.length;currentDiv++){m[currentDiv].height(h)}m.length=0;j=topPostion;h=l.height();m.push(l)}else{m.push(l);h=(h<l.height())?(l.height()):(h)}for(currentDiv=0;currentDiv<m.length;currentDiv++){m[currentDiv].height(h)}})};var e=c(".st-container");c("#menu-trigger").click(function(h){h.stopPropagation();e.toggleClass("st-menu-open")});c(".st-pusher").click(function(){if(e.hasClass("st-menu-open")){e.removeClass("st-menu-open")}});c(".track-header").each
|