// if (navigator.appname == "microsoft internet explorer" && navigator.appversion.split(";")[1].replace(/[ ]/g, "") == "msie6.0") { // }else if (navigator.appname == "microsoft internet explorer" && navigator.appversion.split(";")[1].replace(/[ ]/g, "") == "msie7.0") { // } else if (navigator.appname == "microsoft internet explorer" && navigator.appversion.split(";")[1].replace(/[ ]/g, "") == "msie8.0") { // } else { // aos.init({ // easing: 'ease-out-back', // duration: 1000, // once : true // }); // } $(function (){ // $(window).ng_detection({ // "position" : "fixed", // "bottom" : "0px", // "left" : "0px", // "border" : "1px solid #000", // "background-color" : "rgba(255,255,255,.4)", // "font-size" : "1.2rem", // "color" : "#000", // "z-index" : "400" // }); // // $("#os-fps").ng_showfps(); // $("#os-time").ng_showtime(); // $("#os-scrll").ng_showscroll(); (function (o,zb){ trlist=['leftup','moveright','movedown','centerbig','rightdownbig']; if($(o).length > 0){ var page = o + " .swiper-pagination"; var bprev = zb + " .v-the-prev"; var bnext = zb + " .v-the-next"; var inswiper1 = $(o).swiper({ loop : true , autoplay : 5000 , autoplaydisableoninteraction : false , speed : 500 , effect:'fade', pagination : page, paginationclickable :true, calculateheight : true , onslidechangestart: function(swiper){ nextslide=swiper.slides.eq(swiper.activeindex); nextslide.addclass(trlist[math.floor(math.random()*5)]); }, onslidechangeend: function(swiper){ prevslide=swiper.slides[swiper.previousindex]; prevslide.classname="swiper-slide"; // console.log(swiper.activeindex); if(swiper.activeindex == 6){ // console.log("jinlai"); $(o).find(".swiper-slide").eq(1).addclass(trlist[math.floor(math.random()*5)]); } }, }); $(bprev).bind("click",function (){ inswiper1.slideprev(); }); $(bnext).bind("click",function (){ inswiper1.slidenext(); }); } })(".ng-swiper .v-swiper",".ng-inebtn"); $(".ng-hnav>ul>li").hover( function (){ $(this).find(".n-level").show(); },function (){ $(this).find(".n-level").hide(); } ); $(".ng-hnav>ul>li .n-level>ul>li").hover( function (){ $(this).find(".n-three").show(); },function (){ $(this).find(".n-three").hide(); } ); $(window).scroll(function(){ if($(document).scrolltop() > 100){ $(".an-head").addclass("an-head-shrink"); }else{ $(".an-head").removeclass("an-head-shrink"); } }); layer.photos({ photos: '#layer-photos', anim: 5 }); $(".ng-tonavbtn").on("click",function (){ if(!$(".ng-tonavbtn").hasclass("ng-tonavbtn-on")){ $(".ng-tonavbtn").addclass("ng-tonavbtn-on"); $(".ng-hmax").addclass("ng-hmax-show"); $("html").addclass("ac-gn-noscroll"); }else{ $(".ng-tonavbtn").removeclass("ng-tonavbtn-on"); $(".ng-hmax").removeclass("ng-hmax-show"); $("html").removeclass("ac-gn-noscroll"); } }); if($(".int-box .int-ini").length > 0){ $(window).bind("resize",function (){ $(".int-box .int-ini").css({ "min-height" : $(".int-catbnt").height() }); }).resize(); } $(".int-catbnt").bind("click",function (){ $(".int-box .int-ini").css({ "min-height" : $(".int-catbnt").height() }); }); $(".int-catbnt-list .v-ikk-down").bind("click",function (e){ e.preventdefault(); if($(this).parent("li").hasclass("on-show-down")){ $(this).parent("li").removeclass("down-show").removeclass("on-show-down").find(".v-three").fadeout(); }else{ if(!$(this).parent("li").hasclass("down-show")){ $(this).parent("li").addclass("down-show").find(".v-three").fadein(); }else{ $(this).parent("li").removeclass("down-show").find(".v-three").fadeout(); } } }); (function (o,zb){ if($(o).length > 0){ var page = o + " .swiper-pagination"; var bprev = zb + " .v-the-prev"; var bnext = zb + " .v-the-next"; var proin_swiper1 = $(o).swiper({ loop : true , autoplay : 5000 , autoplaydisableoninteraction : false , speed : 500 , calculateheight : true }); $(bprev).bind("click",function (){ proin_swiper1.slideprev(); }); $(bnext).bind("click",function (){ proin_swiper1.slidenext(); }); } })(".proin-show .v-swiper",".proin-show-btn"); $(window).bind("resize",function (){ $(".proin-show .v-swiper .v-doc img").css({ "max-height" : $(".proin-show-ini").height()}); }).resize(); settimeout(function (){ $(".ng-supinmap .v-site li").each(function (){ $(this).css({ "left" : $(this).data("l") + "%", "top" : $(this).data("t") + "%" }); }); },600); $(".ng-supinmap .v-site li .v-ico").hover( function (){ $(this).parents("li").addclass("text-max"); },function (){ $(this).parents("li").removeclass("text-max"); } ); $(".ng-whikk-decline").on("click",function (event){ event.preventdefault(); if(!$(this).hasclass("ng-whikk-decline-on")){ $(this).addclass("ng-whikk-decline-on").next().slidedown(); }else{ $(this).removeclass("ng-whikk-decline-on").next().slideup(); } }); }); function checkinfo(mesadd){ if(mesadd.username.value==""){ layer.msg('姓名必填'); mesadd.username.focus(); return false; } if(mesadd.content.value==""){ layer.msg('投稿内容必填'); mesadd.content.focus(); return false; } if(mesadd.verifycode.value==""){ layer.msg('验证码必填'); mesadd.verifycode.focus(); return false; } }