//=== viewid:dh_style_36_1573091249276 ===// /*pc,鎵嬫満鏄剧ず闅愯棌*/ function is_mobile(){ return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767); } $(function(){ $("#dh_style_36_1573091249276 li").each(function(){ }); }) //=== viewid:dh_style_36_1573091249276 ===// function navSwtich(obj) { $(obj).siblings(".menuUlCopy").slideToggle(200); $(obj).toggleClass('ontoggle'); $(obj).parent().siblings().find(".menuUlCopy").slideUp(200); $(obj).parent().siblings().find(".fa-angle-down").removeClass('ontoggle'); } function subLeft_dh_style_36_1573091249276(){ $("#dh_style_36_1573091249276 .menuUl>li").each(function(){ $(this).find(".menuUl03").css("left",'100%'); }) } $(window).resize(function() { subLeft_dh_style_36_1573091249276(); }) $(function(){ $("#dh_style_36_1573091249276 .fa-navicon").click(function(){ $("#dh_style_36_1573091249276").addClass('clearTransform'); $("#dh_style_36_1573091249276 .menuUlCopy").each(function(){ $(this).siblings(".fa").show(); }) }) subLeft_dh_style_36_1573091249276(); $("#dh_style_36_1573091249276 .subBox").css("top",$("#dh_style_36_1573091249276 .menuUl_box").height()); if($("#dh_style_36_1573091249276 .menuUl").hasClass("noHover")){ var tabNum = 0; $("#dh_style_36_1573091249276 .menuUl>li").find(".Onsub").each(function(){ tabNum += 1; $(this).parent().attr("tabNum",tabNum) }) $("#dh_style_36_1573091249276 .menuUl>li .Onsub").mouseover(function(){ $("#dh_style_36_1573091249276 .subBox").show(); var index = $(this).parent().attr("tabNum"); $("#dh_style_36_1573091249276 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide(); $("#dh_style_36_1573091249276 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide(); }) $("#dh_style_36_1573091249276 .subBox").mouseleave(function(){ $(this).hide(); }); $("#dh_style_36_1573091249276 .menuUl>li .Nosub").mouseover(function(){ $("#dh_style_36_1573091249276 .subBox").hide(); }) //椋庢牸41 42 } }) //=== viewid:searchbox_style_02_1573091249254 ===// $("#searchbox_style_02_1573091249254 .search-btn").click(function(){ var kw=$("#searchbox_style_02_1573091249254 .search_input").val(); var gourl = $(this).attr("attrhref"); href = gourl+(gourl.indexOf('?')>-1?'&':'?')+"nkeyword="+kw; location.href = href; }) function searchOne(lname){ var gourl = $(lname).attr("attrhref"); href = gourl+(gourl.indexOf('?')>-1?'&':'?')+"nkeyword="+$(lname).html(); location.href = href; } $("#searchbox_style_02_1573091249254 .search_input").val(decodeURIComponent(Request("nkeyword"))); function goSearch(form) { console.log('form: ', form); $(form).find('.search-btn').trigger('click'); return false; } //=== viewid:lang_style_12_1574148385897,lang_style_12_1574147866104,lang_style_12_1574147974213,lang_style_12_1574148019430 ===// $(document).ready(function(){ }); //=== viewid:lang_style_12_1574148019430 ===// $('#lang_style_12_1574148019430 .lang_main').mousemove(function(){ $('#lang_style_12_1574148019430 .lang_content').show(); }).mouseout(function(){ $('#lang_style_12_1574148019430 .lang_content').hide(); }); //=== viewid:homelink_style_02_1573204320700,homelink_style_02_1573026459106,homelink_style_02_1573029713631,homelink_style_02_1573029994608 ===// //=== viewid:dh_style_menu2_01_1573629285230,dh_style_menu2_01_1573626250330,dh_style_menu2_01_1573627522363,dh_style_menu2_01_1573627600170 ===// // 椋庢牸style_menu2_03 浜や簰 //=== viewid:image_style_11_1573023675360 ===// var sys_url_image_style_11_1573023675360="viewid=image_style_11_1573023675360&name=image&style=style_11&langid=0&pageid=128069&viewCtrl=photo"; //=== viewid:image_style_11_1573023675360 ===// $(function(){ let obj = $("#image_style_11_1573023675360"); let picItems = obj.find("li.imgItems"); let num = 0; let picBox; picItems.click(function(){ let topH = $(window).scrollTop(); let index = $(this).index(); let curPic = $(this).find(".theimgdiv").css("backgroundImage"); let curIcon,curIconStyle,curPicStyle; if(curPic){ curPic = curPic.replace('url(','').replace(')','').replaceAll('"','').replaceAll("'",''); curPicStyle = ''; curIcon = ''; curIconStyle = 'display:none;'; }else{ curPic = ''; curPicStyle = 'display:none;'; curIcon = $(this).find(".bbx-new-font").text(); curIconStyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curIcon+"
"; let picBoxhtml = $(html); //"+""+"涓轰簡韬插紑鍥剧墖寤舵椂鍔犺浇鐨勪唬鐮佹浛鎹 $("body").append(picBoxhtml); picBox = $(".imgShowBox"); pdSize(); //鍒ゆ柇涓嬩竴寮犲拰涓婁竴寮犳寜閽殑鏄剧ず if(picItems.length == 1){ $("body").find(".imgButton>.nextImg,.imgButton>.prevImg").css("visibility","hidden") } if(picItems.length-1 == $(this).index()){ $("body").find(".imgButton>.nextImg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgButton>.prevImg").css("visibility","hidden") } //鍏抽棴 $("body").find(".imgButton>.closeShowPic").click(function(){ $(".imgShowBox").remove(); $("body").removeClass("pos_fixed"); $(window).scrollTop(topH); }); //涓嬩竴寮 $("body").find(".imgButton>.nextImg").click(function(){ $(".imgShowBox img").css("max-height","none"); let len = obj.find("li:has('.imgCont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curPics(); pdSize(); }); //涓婁竴寮 $("body").find(".imgButton>.prevImg").click(function(){ $(".imgShowBox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curPics(); pdSize(); }); }); //鍒囨崲澶у浘 function curPics(){ let that = obj.find("li").eq(num); let curPic = that.find(".theimgdiv").css("backgroundImage"); let curIcon,curIconStyle,curPicStyle; let boxImg = picBox.find("img"); let boxIcon = picBox.find(".bbx-new-font"); if(curPic){ curPic = curPic.replace('url(','').replace(')','').replaceAll('"','').replaceAll("'",''); boxImg.attr("src",curPic); boxImg.show(0); boxIcon.hide(0); }else{ curIcon = that.find(".bbx-new-font").text(); curIconStyle = that.find(".bbx-new-font").attr('style'); boxIcon.text(curIcon); boxIcon.attr('style',curIconStyle); boxImg.hide(0); } } //鍒ゆ柇灞曞紑鏄剧ず鏁堟灉 function pdSize(){ let imgH = picBox.find("img").height(); let winH = $(window).height(); if(imgH>winH){ $("body").addClass("pos_fixed"); picBox.addClass("scroll"); picBox.animate({"scrollTop":"0px"},200); }else{ $("body").removeClass("pos_fixed"); picBox.removeClass("scroll"); $(".imgShowBox img").css("max-height","80%"); } } }) //=== viewid:prohibitCopy_style_01_1667789418215 ===// document.body.onselectstart=document.body.oncontextmenu=function(){return false;};