slide_ca22c8b.js 1011 Bytes
define("modules/js/slide",function(n){var i=n("modules/lib/jquery"),o={paddingTop:i("#nav").height()+1,rang:["home","about","course","contact"],highLight:function(){var n=i(document).scrollTop()>200?.8:0;i("#nav").find(".nav-bg").stop().animate({opacity:n},{duration:100}),this.$mouse.stop().animate({opacity:i(document).scrollTop()+i(window).height()>900?0:1},{duration:100})},scroll:function(n){i(document.body).animate({scrollTop:n},{duration:500})},bindEvents:function(){var n=this;i(window).on("resize",function(){i(window).width()>900&&i("#nav").find("ul.nav-ul").removeClass("on-active"),n.paddingTop=i("#nav").height()+1}),i("#nav").on("click",".navbar-toggle",function(){i("#nav").find("ul.nav-ul").toggleClass("on-active")}).on("click",".nav-ul li",function(){i("#nav").find("ul.nav-ul").removeClass("on-active")});var n=this;i(window).on("scroll",function(){n.highLight()})},init:function(){this.$mouse=i("#home-section").find(".mouse"),this.highLight(),this.bindEvents()}};i(function(){o.init()})});