var initModule,animated_contents,minheight,alertinfo,exists,backtotop,fenleishow,loadtemp,navactive,scrollto,numselect;exists=function(t){"use strict";return jQuery(t).length>0},animated_contents=function(){"use strict";exists(".animate-element")&&$(".animate-element:in-viewport").each(function(t){var e=$(this);e.hasClass("in-viewport")||setTimeout(function(){e.addClass("in-viewport")},100*t)})},navactive=function(t){$("header .header-nav nav a").removeClass("on"),$("header .header-nav nav a").eq(t).addClass("on")},alertinfo=function(t,e){$(".alert_player").fadeIn(),$(".alert_player .info").html(t),void 0===e||$(".alert_player .queren_btn,.alert_player .bg").click(function(){location.href=e})},backtotop=function(){$("#backtotop").on("click",function(){return $("body,html").animate({scrollTop:0},1e3),!1})},numselect=function(){$(".num-select .jia").click(function(t){var e=Number($(this).prev(".number").val());$(this).prev(".number").val(e+1)}),$(".num-select .jian").click(function(t){var e=Number($(this).next(".number").val());e>1&&$(this).next(".number").val(e-1)})},minheight=function(){var t,e=$("header").height(),n=$("footer").height(),i=$(".footer-quick").height();$(window).height(),$("nav").height();t=$(window).height()-n-e-i,t<458&&(t=458),$("article").css("min-height",t+"px")},fenleishow=function(){$(".fenlei>ul").css({display:"block"})},loadtemp=function(){exists(".jiazai")&&$(".jiazai").each(function(t,e){var n=$(this).attr("id"),i=$(this).attr("data-callback");if(i)var a=i.split(",");$.get("./"+n+".html",function(t){if($("#"+n).html(t),i)for(var e=eval,o=0;o<a.length;o++){var l=a[o].split(":");e(l[1]?l[0]+"("+l[1]+");":l[0]+"();")}})})},scrollto=function(){$(".scrollto").click(function(t){t.preventDefault();var e=$(this).attr("href");$(".scroller-inner").animate({scrollTop:$(e).offset().top},800)})},initModule=function(){$(window).width();$(".scroller").scrollbar({_callback:function(){console.log(2)}}),minheight(),backtotop(),loadtemp(),scrollto(),numselect(),animated_contents(),$(".scroller-inner").scroll(function(t){animated_contents()}),$(window).on("debouncedresize",function(){minheight()}),$(".alert_player .bg,.alert_player .queren_btn").click(function(){$(".alert_player").fadeOut()})},$(document).ready(function(){initModule()});