// 动画效果加载自定义配置 var wow=new wow({ boxclass:'wow', animateclass:'animated', offset:0, mobile:true, live:true }); wow.init(); // 滚动动画设置 try{typekit.load();}catch(e){} (function($) { 'use strict'; window.scrollreveal = new scrollreveal({ reset: true, move: '50px' }); })(); // 锚点定位 $(function(){ $("#myid").click(function(){ if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { var $target = $(this.hash); $target = $target.length && $target || $('[name=' + this.hash.slice(1) + ']'); if ($target.length) { var targetoffset = $target.offset().top; $('html,body').animate({scrolltop: targetoffset},800); return false; } } }); $("#newsjt").click(function(){ if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { var $target = $(this.hash); $target = $target.length && $target || $('[name=' + this.hash.slice(1) + ']'); if ($target.length) { var targetoffset = $target.offset().top; $('html,body').animate({scrolltop: targetoffset},800); return false; } } }); }); // 导航下拉 $('.nav ul li').hover(function(){ $(this).find('.showlist').stop(true,true).slidetoggle(); });