//=== viewid:videobanner_style_01_1613097916996 ===// $(document).ready(function(){ arrowShow(); $(window).resize(function(){ arrowShow(); }); // 绠ご鏄剧ず function arrowShow(){ if(window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767) || navigator.userAgent.indexOf('Mac OS X') != -1){ $("#videobanner_style_01_1613097916996 .bannerStyle_01 .awesome-font").show().siblings().hide(); }else{ $("#videobanner_style_01_1613097916996 .bannerStyle_01 .awesome-font").hide().siblings().show(); } } var video = ''; var datestay=parseFloat('3')*1000; var timeAnimi=parseFloat('0.5')*1000; var obj=$("#videobanner_style_01_1613097916996"); if(obj&&obj.length>0){ var timeoutObj=null; var nowItem=0; var father=obj.find(".bannerStyle_01 .main_image ul"); var Ulen = father.children("li").length; father.children("li").eq(nowItem).css({"display":"block","float":"none","left":"0%","top":"0px","position":"absolute"}).siblings("li").css({"display":"block","float":"none","left":"100%","top":"0px","position":"absolute"}); father.children("li").hover(function(){ if(father.children("li").eq(nowItem).hasClass('imgArea')){ if(timeoutObj){ window.clearTimeout(timeoutObj); } } },function(){ if(father.children("li").eq(nowItem).hasClass('imgArea')){ timeoutObj=setTimeout(function(){ animiIn(animiIn); },datestay); } }); $("#videobanner_style_01_1613097916996 .arrowLeft").click(function(){ animiOut(animiIn); }); $("#videobanner_style_01_1613097916996 .arrowRight").click(function(){ animiIn(animiIn); }); function animiOut(callback){ if(timeoutObj){ window.clearTimeout(timeoutObj); } if(Ulen>1){ var now=nowItem;//鐜板湪鐨?鍗冲皢閫€鍑虹殑 var next=now-1;//涓婁竴涓?鍗冲皢杩涘叆鐨 if(next<0){ next=Ulen-1; } animiTurn(callback,now,next,"out"); } } // 杞挱鍥剧涓€寮犱负鍥剧墖鎴栨槸缂栬緫鐘舵€ if(father.children("li").eq(0).hasClass('imgArea') || false == true){ timeoutObj=setTimeout(function(){ animiIn(animiIn); },datestay); }else if(father.children("li").eq(0).hasClass('videoArea') && 'on' == 'off'){ video = $('.myvideo_0'); video[0].load(); timeoutObj=setTimeout(function(){ if(!video[0].paused){ video[0].onended = function(){ // 鎾斁瀹屾瘯x绉掑悗杩涜涓嬩竴涓殑閫€鍑哄拰涓嬩笅涓殑杩涘叆 if(typeof(callback)=="function"){ timeoutObj=setTimeout(function(){ animiIn(animiIn); },datestay); } } }else{ animiIn(animiIn); } },datestay); }else if(father.children("li").eq(0).hasClass('videoArea') && 'on' == 'on'){ // 杞挱鍥剧涓€寮犱负瑙嗛涓斾笉鏄紪杈戠姸鎬 // 瑙嗛鍔犺浇鍙婃挱鏀 video = $('.myvideo_0'); video[0].load(); video[0].play(); touchPlay(video); //鐩戞帶褰撳墠瑙嗛鏄惁鎾斁瀹屾瘯 video[0].onended = function(){ // 鎾斁瀹屾瘯x绉掑悗杩涜涓嬩竴涓殑閫€鍑哄拰涓嬩笅涓殑杩涘叆 timeoutObj=setTimeout(function(){ animiIn(animiIn); },datestay); } } //鑷姩鎾斁 function touchPlay(){ if(false == false && 'on' == 'on'){ if(video.length>0){ document.addEventListener('WeixinJSBridgeReady',autoPlayFunc,false); document.addEventListener('touchstart',autoPlayFunc, false); document.addEventListener('touchend', autoPlayFunc, false); } } } function autoPlayFunc(){ if(video[0].currentTime == 0){ video[0].play(); } } function animiIn(callback){ if(timeoutObj){ window.clearTimeout(timeoutObj); } if(Ulen>1){ var now=nowItem; //鐜板湪鐨?鍗冲皢閫€鍑虹殑 var next = now+1; //涓嬩竴涓?鍗冲皢杩涘叆鐨 if(next>=Ulen){ next=0; } animiTurn(callback,now,next,"in"); } } function animiTurn(callback,now,next,turnType){ if(turnType == 'in'){ var nowleft = "-100%"; var nextleft = "100%"; }else if(turnType == 'out'){ var nowleft = "100%"; var nextleft = "-100%"; } // 濡傛灉涓嬩竴涓槸鍥剧墖next if(father.children("li").eq(next).hasClass('imgArea')){ // 绗竴涓€€鍑簄ow father.children("li").eq(now).stop().animate({"left":nowleft},timeAnimi,function(){ // 鏆傚仠鎵€鏈塿ideo for(var i=0;i 0 && $('body').width() < 767); } $(function(){ $("#dh_style_28_1615767718913 li").each(function(){ }); }) //=== viewid:dh_style_28_1615767718913 ===// 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_28_1615767718913(){ $("#dh_style_28_1615767718913 .menuUl>li").each(function(){ $(this).find(".menuUl03").css("left",'100%'); }) } $(window).resize(function() { subLeft_dh_style_28_1615767718913(); }) $(function(){ $("#dh_style_28_1615767718913 .fa-navicon").click(function(){ $("#dh_style_28_1615767718913 .menuUlCopy").each(function(){ $(this).siblings(".fa").show(); }) }) subLeft_dh_style_28_1615767718913(); $("#dh_style_28_1615767718913 .subBox").css("top",$("#dh_style_28_1615767718913 .menuUl_box").height()); if($("#dh_style_28_1615767718913 .menuUl").hasClass("noHover")){ var tabNum = 0; $("#dh_style_28_1615767718913 .menuUl>li").find(".Onsub").each(function(){ tabNum += 1; $(this).parent().attr("tabNum",tabNum) }) $("#dh_style_28_1615767718913 .menuUl>li .Onsub").mouseover(function(){ $("#dh_style_28_1615767718913 .subBox").show(); var index = $(this).parent().attr("tabNum"); $("#dh_style_28_1615767718913 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide(); $("#dh_style_28_1615767718913 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide(); }) $("#dh_style_28_1615767718913 .subBox").mouseleave(function(){ $(this).hide(); }); $("#dh_style_28_1615767718913 .menuUl>li .Nosub").mouseover(function(){ $("#dh_style_28_1615767718913 .subBox").hide(); }) //椋庢牸41 42 } }) var color = $('#dh_style_28_1615767718913 .menuStyle_28 .menuUl02 .subMenu02').css('background-color'); $('#dh_style_28_1615767718913 .menuStyle_28').append(``); $('#dh_style_28_1615767718913 .menuStyle_28 .menuUl02 .subMenu02').mouseover(function(){ let that = $(this); setTimeout(function(){ var hoverColor = that.css('background-color'); $('#dh_style_28_1615767718913 .menuStyle_28').append(``); },100); }); //=== viewid:productList_style_23_1615275846734 ===// //-- $(function(){ var viewid="productList_style_23_1615275846734"; var sys_url="viewid=productList_style_23_1615275846734&name=productList&style=style_23&langid=0&pageid=2378453&viewCtrl=default&isfb=1"; var moreParams=''; if(typeof(history.pushState) != 'undefined'){ var hstate=JSON.stringify(history.state); if(hstate!='null'&& hstate!=null){ eval('var hjson = ' + hstate); moreParams=hjson.moreParamsproductList_style_23_1615275846734; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:productList_style_05_1498112766363,productList_style_04_1498112543032,productList_style_23_1615275846734,productList_style_03_1615521132674,productList_style_23_1615530796698 ===// var showSub = '0'; //=== viewid:productList_style_05_1498112766363,productList_style_04_1498112543032,productList_style_23_1615275846734,productList_style_03_1615521132674,productList_style_23_1615530796698 ===// //=== viewid:productList_style_23_1615275846734 ===// if(typeof addcart !== 'function'){ function addcart(pid,is_virtual,idspecprice,idpackage){ var lang=0; if(lang == '0'){ lang = Default_isFT; if(BodyIsFt == '0'){ lang = BodyIsFt; }else if(BodyIsFt == '1'){ lang = BodyIsFt; } } var packStr = ''; if(typeof (idpackage) != 'undefined'){ packStr = "&idpackage="+idpackage; } if(is_mobile()){ var locationUrl = "https://admin.mifwl.com/exusers/u_cart.php?idweb=70757&lang="+lang+"&pid="+pid+"&act=add&ismobile=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://admin.mifwl.com/exusers/u_cart.php?idweb=70757&lang="+lang+"&act=add&ismobile=1" + pid + (idspecprice ? idspecprice : ""); } var res = "0"; if(res == '1' && is_virtual == 0){ locationUrl+= "&use_ajax=1&callback=?"; $.getJSON(locationUrl,function(ret){ if(ret.i_AddFlag){ $.alerts.dialogClass = 'success'; alert(ret.message); } }); }else{ window.location = locationUrl; } }else{ var locationUrl = "https://admin.mifwl.com/exusers/u_cart.php?idweb=70757&pid="+pid+"&act=add&lang="+lang+"&ispc=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://admin.mifwl.com/exusers/u_cart.php?idweb=70757&lang="+lang+"&act=add&ispc=1" + pid + (idspecprice ? idspecprice : ""); } document.getElementById("boxName").innerHTML="鍔犲叆璐墿杞?; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="脳"; document.getElementById("showiframe").src=locationUrl; box.Show({width:"840px",height:"420px"}); } } } function is_mobile(){ return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767); } $(function(){ $('#productList_style_23_1615275846734 .prod_infos .end_time').each(function(){ purchase_clock(this);//寮€鍚€掕鏃 }); }); //鎷艰喘鍊掕鏃 function purchase_clock(obj) { var time = parseInt($(obj).attr('data-time')); if (time > 0) { var str = ''; var num = 0; num = parseInt(time/86400); if(num > 0)str += num.toString() + '澶?; time -= num * 86400; num = parseInt(time/3600); if(num > 0)str += num.toString() + '鏃?; time -= num * 3600; num = parseInt(time/60); if(num > 0)str += num.toString() + '鍒?; time -= num * 60; if(num > 0)str += time.toString() + '绉?; $(obj).text(str).attr('data-time', parseInt($(obj).attr('data-time')) - 1); setTimeout(function(){ purchase_clock(obj); }, 1000); } else { $(obj).text('0澶?鏃?鍒?绉?); } } //=== viewid:productList_style_03_1615521132674 ===// //-- $(function(){ var viewid="productList_style_03_1615521132674"; var sys_url="viewid=productList_style_03_1615521132674&name=productList&style=style_35&langid=0&pageid=2378453&viewCtrl=default&isfb=1"; var moreParams=''; if(typeof(history.pushState) != 'undefined'){ var hstate=JSON.stringify(history.state); if(hstate!='null'&& hstate!=null){ eval('var hjson = ' + hstate); moreParams=hjson.moreParamsproductList_style_03_1615521132674; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:productList_style_03_1615521132674 ===// if(typeof addcart !== 'function'){ function addcart(pid,is_virtual,idspecprice,idpackage){ var lang=0; if(lang == '0'){ lang = Default_isFT; if(BodyIsFt == '0'){ lang = BodyIsFt; }else if(BodyIsFt == '1'){ lang = BodyIsFt; } } var packStr = ''; if(typeof (idpackage) != 'undefined'){ packStr = "&idpackage="+idpackage; } if(is_mobile()){ var locationUrl = "https://admin.mifwl.com/exusers/u_cart.php?idweb=70757&lang="+lang+"&pid="+pid+"&act=add&ismobile=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://admin.mifwl.com/exusers/u_cart.php?idweb=70757&lang="+lang+"&act=add&ismobile=1" + pid + (idspecprice ? idspecprice : ""); } var res = "0"; if(res == '1' && is_virtual == 0){ locationUrl+= "&use_ajax=1&callback=?"; $.getJSON(locationUrl,function(ret){ if(ret.i_AddFlag){ $.alerts.dialogClass = 'success'; alert(ret.message); } }); }else{ window.location = locationUrl; } }else{ var locationUrl = "https://admin.mifwl.com/exusers/u_cart.php?idweb=70757&pid="+pid+"&act=add&lang="+lang+"&ispc=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://admin.mifwl.com/exusers/u_cart.php?idweb=70757&lang="+lang+"&act=add&ispc=1" + pid + (idspecprice ? idspecprice : ""); } document.getElementById("boxName").innerHTML="鍔犲叆璐墿杞?; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="脳"; document.getElementById("showiframe").src=locationUrl; box.Show({width:"840px",height:"420px"}); } } } function is_mobile(){ return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767); } $(function(){ $('#productList_style_03_1615521132674 .prod_infos .end_time').each(function(){ purchase_clock(this);//寮€鍚€掕鏃 }); }); //鎷艰喘鍊掕鏃 function purchase_clock(obj) { var time = parseInt($(obj).attr('data-time')); if (time > 0) { var str = ''; var num = 0; num = parseInt(time/86400); if(num > 0)str += num.toString() + '澶?; time -= num * 86400; num = parseInt(time/3600); if(num > 0)str += num.toString() + '鏃?; time -= num * 3600; num = parseInt(time/60); if(num > 0)str += num.toString() + '鍒?; time -= num * 60; if(num > 0)str += time.toString() + '绉?; $(obj).text(str).attr('data-time', parseInt($(obj).attr('data-time')) - 1); setTimeout(function(){ purchase_clock(obj); }, 1000); } else { $(obj).text('0澶?鏃?鍒?绉?); } } //=== viewid:productList_style_03_1615521132674 ===// //鍒╃敤鍏ㄥ眬鍩?瀹氫箟姣忎釜瀹氭椂鍣ㄧ殑鍙橀噺鍚?瑙e喅鍙戝竷/涓存椂鐩綍鏃舵墽琛屼袱娆★紙娉?锛夊悗clearTimeout锛堟敞2锛夐棶棰 // 娉?锛氭墽琛屼袱娆℃槸鍦ㄧ綉椤垫墽琛屼竴娆★紝鏈嶅姟鍣ㄤ笂鎵ц涓€娆 // 娉?锛氬鏋滃湪鍏ㄥ眬鍩熷畾涔夛紝clearTimeout浼氬彧娓呴櫎涓€涓 var timerout1productList_style_03_1615521132674 = ''; var timerout2productList_style_03_1615521132674 = ''; var timerout3productList_style_03_1615521132674 = ''; //鍒╃敤鏈湴鍩 閬垮厤鐩稿悓椋庢牸鐨勫嚱鏁板悕绉拌皟鐢ㄦ贩娣嗗嚭閿 $(function(){ var cur = 1; var num = 8; var selnum = 4;//绗竴娆¤繘鍏ラ粯璁ゆ樉绀?涓 var trantime = 150 * 25; var width = ''; var ul1 = $('#productList_style_03_1615521132674 #boxNewsList'); var ul2 = $('#productList_style_03_1615521132674 #boxNewsList2'); var box1 = $('#productList_style_03_1615521132674 .content_box'); selnum = num?num:selnum; for(var i = 0;i=1200?20:bodywidth>=640?20:8; let liWidth = bodywidth>=1200?285:bodywidth>=640?212:178; width = marginRight + liWidth; if(!false){ tran(); } },100); } function tran(){ clearTimeout(timerout1productList_style_03_1615521132674); timerout1productList_style_03_1615521132674 = setTimeout(function(){ tranmove(); },trantime); } function tranmove(){ cur++; var left = (cur - 1)*width*-1; $('#productList_style_03_1615521132674 .content_box').css('transition','all 1s linear'); $('#productList_style_03_1615521132674 .content_box').css('left',left+'px'); if(cur == num+1){ clearTimeout(timerout2productList_style_03_1615521132674); timerout2productList_style_03_1615521132674 = setTimeout(function(){ cur = 1; $('#productList_style_03_1615521132674 .content_box').css('transition','all 0s linear'); $('#productList_style_03_1615521132674 .content_box').css('left','0px'); },1000); } tran(); } if(!false){ box1.hover(function(){ clearTimeout(timerout1productList_style_03_1615521132674); },function(){ tranmove(); }); } }) //=== viewid:image_style_01_1615638058001 ===// function gomodel_div_a_includeBlock_1615704095229(obj){//杩欎釜鏄烦杞ā鍧楃殑 var viewid = "div_a_includeBlock_1615704095229"; //绌虹殑璇濆氨涓嶈繘鍏ヤ簡锛岄槻姝㈡姤閿 if(viewid) $("html,body").stop().animate({scrollTop:$("#"+viewid).offset().top+"px"},window.scrollTime); } //=== viewid:video_style_02_1615704095398 ===// $(document).ready(function(){ }); //=== viewid:video_style_02_1615704095398 ===// $(function(){ if('true' == 'true' || '0' == '1'){ //鑷姩鎾斁鎴栭€夋嫨棣栧抚鍋氬皝闈 let u = navigator.userAgent; let isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android缁堢 let isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios if(isAndroid){ setTimeout(function(){ document.getElementById("myVideovideo_style_02_1615704095398").addEventListener("durationchange", androidShow());},300); }else if(isiOS){ iosShow(); } } function androidShow(){ let $videovideo_style_02_1615704095398 = $("#myVideovideo_style_02_1615704095398"); setTimeout(function(){ $videovideo_style_02_1615704095398[0].play(true); if('true' != 'true'){ //閫夋嫨棣栧抚鍋氬皝闈㈡椂鍊欐殏鍋滐紝鑷姩鎾斁涓嶇敤鏆傚仠 let time = 0; let timer = setInterval(function(){ $videovideo_style_02_1615704095398[0].pause(true); time++; if($videovideo_style_02_1615704095398[0].paused && time>=6 ){ clearInterval(timer); } },100); } },50); } function iosShow(){ if (window.WeixinJSBridge) { doPlayvideo_style_02_1615704095398(); if('true' != 'true'){ //閫夋嫨棣栧抚鍋氬皝闈㈡椂鍊欐殏鍋滐紝鑷姩鎾斁涓嶇敤鏆傚仠 setTimeout(function(){ doPausevideo_style_02_1615704095398(); },50); } } else { document.addEventListener("WeixinJSBridgeReady", function(){ doPlayvideo_style_02_1615704095398(); if('true' != 'true'){ //閫夋嫨棣栧抚鍋氬皝闈㈡椂鍊欐殏鍋滐紝鑷姩鎾斁涓嶇敤鏆傚仠 setTimeout(function(){ doPausevideo_style_02_1615704095398(); },50); } }, false); } } function doPlayvideo_style_02_1615704095398(){ WeixinJSBridge.invoke('getNetworkType', {}, function (e) { let $videovideo_style_02_1615704095398 = $("#myVideovideo_style_02_1615704095398") $videovideo_style_02_1615704095398[0].play(true) }) } function doPausevideo_style_02_1615704095398(){ WeixinJSBridge.invoke('getNetworkType', {}, function (e) { let $videovideo_style_02_1615704095398 = $("#myVideovideo_style_02_1615704095398") $videovideo_style_02_1615704095398[0].pause(true) }) } $("#myVideovideo_style_02_1615704095398")[0].addEventListener("play", function(){//鎾斁浜嬩欢 $("#myVideovideo_style_02_1615704095398")[0].setAttribute('poster', ''); }); }) //=== viewid:video_style_02_1615704095398 ===// var video = $("#video_style_02_1615704095398 video")[0]; if(video) { video.addEventListener('playing',function(){ var this1 = this; this1.play(); for(var j=$('video').length-1; j>=0; j--) { var this2 = $('video')[j]; if(this1 !== this2) { this2.pause(); } } }); if(typeof WeixinJSBrdgeReady=="object" && typeof WeixinJSBridge.invoke == "function"){ video.play() }else{ if (document.addEventListener) { document.addEventListener("WeixinJSBridgeReady", function () { if(video.currentTime == 0 || video.currentTime == 0.01){ video.play(); } }, false); document.addEventListener('touchstart', function () { if(video.currentTime == 0 || video.currentTime == 0.01){ video.play(); } }, false); document.addEventListener('touchend', function () { if(video.currentTime == 0 || video.currentTime == 0.01){ video.play(); } }, false); } else if (document.attachEvent) { document.attachEvent("WeixinJSBridgeReady", function () { video.play(); }); document.attachEvent("onWeixinJSBridgeReady", function () { video.play(); }); } } } //=== viewid:productList_style_23_1615530796698 ===// //-- $(function(){ var viewid="productList_style_23_1615530796698"; var sys_url="viewid=productList_style_23_1615530796698&name=productList&style=style_23&langid=0&pageid=2378453&viewCtrl=default&isfb=1"; var moreParams=''; if(typeof(history.pushState) != 'undefined'){ var hstate=JSON.stringify(history.state); if(hstate!='null'&& hstate!=null){ eval('var hjson = ' + hstate); moreParams=hjson.moreParamsproductList_style_23_1615530796698; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:productList_style_23_1615530796698 ===// if(typeof addcart !== 'function'){ function addcart(pid,is_virtual,idspecprice,idpackage){ var lang=0; if(lang == '0'){ lang = Default_isFT; if(BodyIsFt == '0'){ lang = BodyIsFt; }else if(BodyIsFt == '1'){ lang = BodyIsFt; } } var packStr = ''; if(typeof (idpackage) != 'undefined'){ packStr = "&idpackage="+idpackage; } if(is_mobile()){ var locationUrl = "https://admin.mifwl.com/exusers/u_cart.php?idweb=70757&lang="+lang+"&pid="+pid+"&act=add&ismobile=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://admin.mifwl.com/exusers/u_cart.php?idweb=70757&lang="+lang+"&act=add&ismobile=1" + pid + (idspecprice ? idspecprice : ""); } var res = "0"; if(res == '1' && is_virtual == 0){ locationUrl+= "&use_ajax=1&callback=?"; $.getJSON(locationUrl,function(ret){ if(ret.i_AddFlag){ $.alerts.dialogClass = 'success'; alert(ret.message); } }); }else{ window.location = locationUrl; } }else{ var locationUrl = "https://admin.mifwl.com/exusers/u_cart.php?idweb=70757&pid="+pid+"&act=add&lang="+lang+"&ispc=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://admin.mifwl.com/exusers/u_cart.php?idweb=70757&lang="+lang+"&act=add&ispc=1" + pid + (idspecprice ? idspecprice : ""); } document.getElementById("boxName").innerHTML="鍔犲叆璐墿杞?; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="脳"; document.getElementById("showiframe").src=locationUrl; box.Show({width:"840px",height:"420px"}); } } } function is_mobile(){ return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767); } $(function(){ $('#productList_style_23_1615530796698 .prod_infos .end_time').each(function(){ purchase_clock(this);//寮€鍚€掕鏃 }); }); //鎷艰喘鍊掕鏃 function purchase_clock(obj) { var time = parseInt($(obj).attr('data-time')); if (time > 0) { var str = ''; var num = 0; num = parseInt(time/86400); if(num > 0)str += num.toString() + '澶?; time -= num * 86400; num = parseInt(time/3600); if(num > 0)str += num.toString() + '鏃?; time -= num * 3600; num = parseInt(time/60); if(num > 0)str += num.toString() + '鍒?; time -= num * 60; if(num > 0)str += time.toString() + '绉?; $(obj).text(str).attr('data-time', parseInt($(obj).attr('data-time')) - 1); setTimeout(function(){ purchase_clock(obj); }, 1000); } else { $(obj).text('0澶?鏃?鍒?绉?); } } //=== viewid:newsList_style_27_1615550204691 ===// //-- $(function(){ var viewid="newsList_style_27_1615550204691"; var sys_url="viewid=newsList_style_27_1615550204691&name=newsList&style=style_27&langid=0&pageid=2378453&viewCtrl=newsList&isfb=1"; var moreParams=''; if(typeof(history.pushState) != 'undefined'){ var hstate=JSON.stringify(history.state); if(hstate!='null'&& hstate!=null){ eval('var hjson = ' + hstate); moreParams=hjson.moreParamsnewsList_style_27_1615550204691; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_27_1615550204691 ===// if(false) { $('#newsList_style_27_1615550204691 #boxNewsList .sumary_list').each(function (i) { if (i < 12) { $(this).show(); } else { $(this).hide(); } }) } $(function(){ var box1 = $('#newsList_style_27_1615550204691 .bcon'); var box2 = $('#newsList_style_27_1615550204691 .list_lh'); var ul1 = $('#newsList_style_27_1615550204691 #boxNewsList'); var ul2 = $('#newsList_style_27_1615550204691 #boxNewsList2'); var max_width = 0; if(!false){ //璁$畻楂樺害 function heightFunc(){ $('#newsList_style_27_1615550204691 #boxNewsList .sumary_list').each(function(i){ if(i < 12){ max_width += $(this).outerWidth(true); $(this).show(); }else{ $(this).hide(); } }) } heightFunc(); $(window).resize(function(){ item_height = 0; max_width = 0; heightFunc(); }); ul2.html(ul1.html()); var value = 0; var rolltimes = 200*25; var liwidth1 = $('#newsList_style_27_1615550204691 #boxNewsList .sumary_list:last').width(); var liwidth2 = $('#newsList_style_27_1615550204691 #boxNewsList .sumary_list:last').css('marginRight'); if(!liwidth2){ return; } liwidth2=liwidth2.substring(0,liwidth2.length-2); var liwidth = parseInt(liwidth1) + parseInt(liwidth2); var speed = rolltimes/liwidth; if(0 == 0){ box2.css('left','0px'); }else{ box2.css('left',-max_width+'px'); } //婊氬姩浜嬩欢 function scrollFunc(){ if(0 == 0){ if(value <= -max_width) { value = 0; }else{ value --; } box2.css('left',value+'px'); }else{ if(parseInt(box2.css('left')) >= 0) { box2.css('left',-max_width+'px'); value = -max_width; }else{ value = parseInt(box2.css('left')) + 1; box2.css('left',value+'px'); } } } var timer = setInterval(scrollFunc,speed); //榧犳爣浜嬩欢鍋滄瀹氭椂鍣 box1.mouseover(function(){ clearInterval(timer); }).mouseout(function(){ timer = setInterval(scrollFunc,speed); }); } }) //=== viewid:text_default_1579405177282 ===// var cnzz_protocol = (("https:" == document.location.protocol) ? "https://" : "http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1278583868'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s9.cnzz.com/z_stat.php%3Fid%3D1278583868%26show%3Dpic' type='text/javascript'%3E%3C/script%3E")); //=== viewid:qqol_style_01_1575620923404 ===// /* * *************************************************************** * 鐗囨鍒楄〃绫 */ function FragmentList(config) { this._default = { 'prefix':'fragment-', 'css':{} }; config = $.extend(true, this._default, config); this.config = config; this.list = []; this.object = $('
'); // 鎵ц閰嶇疆 this.init(config); } /* * 鍒濆鍖 */ FragmentList.prototype.init = function(config) { config.css && this.object.css(config.css); }; /* * 娣诲姞 */ FragmentList.prototype.append = function (fragment) { this.list.push(fragment); }; /* * 鑾峰彇jquery瀵硅薄 */ FragmentList.prototype.get = function () { this.object.addClass(this.config.prefix + 'list').children().remove(); for(var i = 0, len = this.list.length, html = ''; i < len; ++i) { html += this.list[i].html(); } return this.object.html(html); }; /* * 杈撳嚭 */ FragmentList.prototype.html = function () { return this.get().prop('outerHTML'); }; /* * *************************************************************** * 鐗囨绫 */ Fragment.prototype.prefix = 'fragment-'; function Fragment(config) { (!config.init || Util.prototype.type(config.init) != 'function') && (config.init = function () {}); !config.html && (config.html = '
'); this._default = { 'name':'item' }; config = $.extend(true, this._default, config); // 鍒涘缓jquery瀵硅薄 config.data && (config.html = Util.prototype.replace(config.html, Util.prototype.toArray(config.data))); this.object = $(config.html).addClass((config.name != 'item' ? this.prefix + 'item': '') + ' ' + this.prefix + config.name); config.init(this.object); delete config.html; // jquery瀵硅薄鍒涘缓鍚? config.html 涓嶅啀浣跨敤 this.config = config; // 鎵ц閰嶇疆 this.init(config); } /* * 澶嶅埗 */ Fragment.prototype.clone = function () { return new Fragment($.extend(true, {}, this.config)); }; /* * 鍒濆鍖 */ Fragment.prototype.init = function(config) { config.css && this.object.css(config.css); }; /* * 淇敼鏍峰紡 */ Fragment.prototype.css = function(css) { css && this.object.css(css); return this; }; /* * 杈撳嚭 */ Fragment.prototype.html = function () { return this.object.prop('outerHTML'); }; /* * 浣跨敤鎸囧畾鏁版嵁鏇存柊鑷繁 */ Fragment.prototype.data = function (data) { this.object.html(Util.prototype.replace(this.html(), Util.prototype.toArray(data))); return this; }; /* * *************************************************************** * 杈规爮绫 */ function Sidebar(config) { this._default = { // 榛樿閰嶇疆, 甯搁噺, 涓嶅簲璇ヤ慨鏀? 瀵硅薄鍒濆鍖栨椂鍙鐩 'template':'sidebar', 'expand':true, // 榛樿灞曞紑杩樻槸闅愯棌 'css':undefined, 'main':{'width':'120px', 'position':'right'}, 'border':{'width':'1px', 'color':'#ccc', 'radius':'2px'}, 'button':{'width':'26px', 'color':'#333', 'font-size':'12px', 'background-color':'#ececec', 'radius':'5px'}, 'close':{'hide':false, 'height':'25px', 'font-size':'12px', 'padding':'0 .6em 0 .3em'}, 'show':{'start':undefined, 'end':undefined}, // 鏄剧ず寮€濮嬪拰缁撴潫鏃惰鎵ц鐨勫嚱鏁 'end':{'start':undefined, 'end':undefined} // 闅愯棌寮€濮嬪拰缁撴潫鏃惰鎵ц鐨勫嚱鏁 }; config = $.extend(true, this._default, config); this.config = config; // dom 缁撴瀯 var temp = $('.'+config.template+':first'); temp.hide(); this.main = temp.clone().removeClass(config.template).show(); this.main.data('instance', this); // dom 缁撴瀯鐨 data 涓繚瀛樼被瀵硅薄 config.css && this.main.addClass(config.css); // 涓昏灞炴€ this.width = config.main.width; this.position = config.main.position; this.main.addClass(this.position); this.position_rev = this.position == 'right' ? 'left' : 'right'; this.wrapper = this.main.children('.wrapper'); this._close = this.wrapper.children('.close'); this.button = this.main.children('.button'); // 瀛愬厓绱犵殑 dom 缁撴瀯鐨 data 涓繚瀛樼被瀵硅薄 this._close.data('parent', this); this.button.data('parent', this); // 鎵ц閰嶇疆 this.init(config); } /* * 鍒濆鍖 */ Sidebar.prototype.init = function(config) { this.initMain(); this.initWrapper(config); this.initButton(config); // 鍨傜洿灞呬腑鍚? 绉诲姩鍒癰ody鏈€鍚 this.verticalCenter().appendTo('body'); config.expand ? this.show(false) : this.hide(false); this.main.show(); // 瀛樺偍鎵€鏈夌殑瀵硅薄鍒皐indow涓 (鍚庢湡浼氫娇鐢? !window.online_service_list && (window.online_service_list = []); window.online_service_list.push(this); $(window).resize(this.onWindowResize); }; /* * 鍒濆鍖 - main */ Sidebar.prototype.initMain = function() { this.main.hide().css({ 'height':'auto', 'position':'fixed', 'z-index':'100000000', 'top':'0px', 'width':this.width }); this.main.css(this.position, '0px'); // 绉诲叆绉诲嚭鏃 this.main.hover( function () { $(this).data('instance').show(); }, function () { if(!$(this).hasClass('animate-showing')) { $(this).data('instance').hide(); } } ); }; /* * 鍒濆鍖 - wrapper */ Sidebar.prototype.initWrapper = function(config) { this.wrapper.css({ 'border': config.border.width +' solid ' + config.border.color, 'border-radius':config.border.radius, '-moz-border-radius':config.border.radius }); this._close.css({ 'display':config.close.hide ? 'none' : 'block', 'position':'absolute', 'top':'0px', 'right':'0px', 'height':config.close.height, 'line-height':config.close.height, 'font-size':config.close['font-size'], 'padding':config.close.padding, 'cursor':'pointer' }).click(function () { var instance = $(this).data('parent'); Sidebar.prototype.hide.call(instance); if(typeof($("img").lazyload)=="function"){ //寮傛鍔犺浇鍥剧墖 setTimeout(function(){ $("img").lazyload({effect: "fadeIn",threshold:0,failure_limit:20,skip_invisible:false}); },500); } }).attr({'onselectstart':'return false', 'unselectable':'on'}); // [鍏煎]绂佹閫夋嫨鏂囨湰 }; /* * 闅愯棌Sidebar * animate: 鏄惁甯﹀姩鐢 */ Sidebar.prototype.hide = function (animate) { animate === undefined && (animate = true); var instance = this, width = '-'+this.width, end = this.position == 'right' ? {right :width} : {left :width}, btn_width = '-'+instance.config.button.width, btn_end = instance.position == 'right' ? {left :btn_width} : {right :btn_width}; instance.onHide('start'); if(animate) { instance.main.animate(end, 'fast', function() { instance.button.show().animate(btn_end, 'fast'); instance.onHide('end'); }); } else { instance.main.css(end); instance.button.show().css(btn_end); instance.onHide('end'); } }; /* * 闅愯棌Sidebar寮€濮嬪拰缁撴潫鏃 */ Sidebar.prototype.onHide = function (status) { var func; if(this.config.hide) { switch(status) { case 'start': Util.prototype.type(func = this.config.hide.start) == 'function' && func(); // 鎵ц鑷畾涔夊嚱鏁 break; case 'end': Util.prototype.type(func = this.config.hide.end) == 'function' && func(); // 鎵ц鑷畾涔夊嚱鏁 break; } } }; /* * 鍒濆鍖 - button */ Sidebar.prototype.initButton = function(config) { var width = config.button.width; this.button.hide().css({ 'position':'absolute', 'top':'0%', 'width':width, 'line-height':'1.35em', 'padding':'.5em 0', 'font-size':config.close['font-size'], 'color':config.button.color, 'background-color':config.button['background-color'], 'cursor':'pointer', 'word-wrap':'break-word', 'word-break':'break-all' }); var radius = config.button.radius; if(this.position == 'right') { this.button.css({ 'border-top-left-radius':radius, 'border-bottom-left-radius':radius }); } else { this.button.css({ 'border-top-right-radius':radius, 'border-bottom-right-radius':radius }); } this.button.css(this.position_rev, '0px'); // 鐐瑰嚮鏃 this.button.click(function () { var instance = $(this).data('parent'); Sidebar.prototype.show.call(instance); }).attr({'onselectstart':'return false', 'unselectable':'on'}); // [鍏煎]绂佹閫夋嫨鏂囨湰 }; /* * 鏄剧ずSidebar * animate: 鏄惁甯﹀姩鐢 */ Sidebar.prototype.show = function (animate) { animate === undefined && (animate = true); var instance = this, end = instance.position == 'right' ? {right :0} : {left :0}; instance.onShow('start'); if(animate) { instance.onAnimate('showing'); instance.main.animate(end, 'fast', function() { instance.onAnimate(); instance.button.hide(); // Bug淇: 棰濆闅愯棌涓€娆 instance.onShow('end'); }); } else { instance.main.css(end); instance.onShow('end'); } // 鏄剧ず寮€濮嬪悗, 涓嶇鏄惁鏈夊姩鐢? 鎸夐挳搴旇椹笂闅愯棌 instance.button.hide(); instance.button.css(instance.position_rev,'0px'); }; /* * 鏄剧ずSidebar寮€濮嬪拰缁撴潫鏃 */ Sidebar.prototype.onShow = function (status) { var func; if(this.config.show) { switch (status) { case 'start': Util.prototype.type(func = this.config.show.start) == 'function' && func(); // 鎵ц鑷畾涔夊嚱鏁 break; case 'end': Util.prototype.type(func = this.config.show.end) == 'function' && func(); // 鎵ц鑷畾涔夊嚱鏁 break; } } }; /* * 璁剧疆瀹炴椂鍔ㄧ敾鐘舵€ * status: 涓虹┖鏃惰〃绀哄姩鐢荤粨鏉 */ Sidebar.prototype.onAnimate = function(status) { Util.prototype.removeClass(this.main, 'animate-'); status && this.main.addClass('animate-'+status); }; /* * 绐楀彛澶у皬鏀瑰彉鏃 */ Sidebar.prototype.onWindowResize = function() { for(var i = 0, len = window.online_service_list.length; i < len; ++i) { window.online_service_list[i].verticalCenter(); } }; /* * 鍦ㄧ獥鍙e瀭鐩村眳涓 */ Sidebar.prototype.verticalCenter = function() { var h1 = this.main.height(), h2 =$(window).height(); if(h1 && h2) { this.main.css('top', ((h2 - h1) / 2) + 'px'); } return this.main; }; /* * 娣诲姞鍐呭 */ Sidebar.prototype.append = function(obj) { this.wrapper.append(obj); this.verticalCenter(); }; /* * *************************************************************** * 宸ュ叿绫 */ function Util() { } /* * 杩斿洖瀵硅薄绫诲瀷 */ Util.prototype.type = function(obj) { var type = obj === undefined ? 'undefined' : (obj === null ? 'null' : undefined); // 鍏煎鏃х増js瑙f瀽鍣 return type ? type : Object.prototype.toString.call(obj).slice(8, -1).toLowerCase(); }; /* * 妫€娴嬪璞$被鍨 */ Util.prototype.is = function(obj, type) { var cls = this.type(obj); return obj !== undefined && obj !== null && cls.toLowerCase() === type.toLowerCase(); }; /* * 灞炴€ф墿灞? 澧炲己鐗 ) * 娉ㄦ剰: 涓€鑸繁搴﹀鍒? 鍙洿鎺ヤ娇鐢 $.extend(true, target, source) */ Util.prototype.extend = function(target, source, is_deep, is_add) { is_deep === undefined && (is_deep = true); // 濡傛灉鍊间篃鏄璞? 鏄惁瀵瑰€间篃璋冪敤extend is_add === undefined && (is_add = true); // 濡傛灉鐩爣瀵硅薄涓病鏈夋簮瀵硅薄鐨勯敭, 鏄惁鍏佽鏂板閿€ for (var p in source) { if (source.hasOwnProperty(p) && (is_add || target.hasOwnProperty(p))) { // 鎵цextend if(is_deep && this.is(target[p], 'object') && this.is(source[p], 'object')) { this.extend(target[p], source[p]); } else { target[p] = source[p]; } } } return target; }; /* * 鍒犻櫎class( 鍒犻櫎鎸囧畾鍚嶇О鐨刢lass鍜屾墍鏈変互鎸囧畾鍚嶇О寮€澶寸殑class ) */ Util.prototype.removeClass = function(obj, rm) { obj.attr('class', function () { var regExp = new RegExp(rm + '\\S*', 'g'); return Util.prototype.clear($(this).attr('class').replace(regExp, '')); }); return obj; }; /* * 鍒犻櫎鍓嶅悗绌虹櫧 */ Util.prototype.trim = function(s){ return s.replace(/(^\s*)|(\s*$)/g,''); }; /* * 鍚堝苟涓棿澶氫釜绌虹櫧涓轰竴涓 */ Util.prototype.clear = function(s){ return s.replace(/(^\s*)|(\s*$)|(\s{2,})/g,''); }; /* * 瀵硅薄杞暟缁 */ Util.prototype.toArray = function(obj) { var array = [], p, item; for (p in obj) { if (obj.hasOwnProperty(p)) { item = [p]; item.push(this.is(obj[p], 'object') ? this.toArray(obj[p]) : obj[p]); array.push(item); } } return array; }; /* * 浣跨敤鎸囧畾鐨勯敭鍊兼暟缁勬浛鎹竴涓瓧绗︿覆 * 澶囨敞: 瀛楃涓蹭腑閿互{{}}鏍囪 * 澶囨敞: data: 浜岀淮鏁扮粍, 涓€缁存暟缁勭殑姣忎竴椤规槸涓€涓暱搴︿负浜岀殑鍐呭眰鏁扮粍, 鍐呭眰鏁扮粍鐨勭涓€椤逛负閿? 绗簩椤逛负鍊 */ Util.prototype.replace = function(s, data) { var i, len, reg_str = [], reg; for(i = 0, len = data.length; i < len; ++i) { reg_str.push('({{' + data[i][0] + '}})'); } // 姝e垯鏇挎崲 reg = new RegExp(reg_str.join('|'), 'g'); return s.replace(reg, replace); // 鎵ц鏇挎崲鐨勫嚱鏁 function replace(){ // arguments 涓寘鍚殑鏄? 瀛楃涓蹭腑褰撳墠浣嶇疆鍖归厤鍒扮殑瀛楃涓? 绗?涓?)鍖归厤鍒扮殑瀛楃涓? ..., 绗琻-1涓?)鍖归厤鍒扮殑瀛楃涓? 褰撳墠鍖归厤鐨勪綅缃? 鏁翠釜瀛楃涓 // 浠庣储寮曚负1寮€濮? 绗竴涓笉涓簎ndefined鐨勯」鐨勭储寮曞€煎噺涓€鍗充负鍖归厤鍒扮殑閿殑绱㈠紩 for(var i = 1, len = arguments.length; i < len; ++i) { if(arguments[i] !== undefined) { return data[--i][1]; } } } }; //=== viewid:qqol_style_01_1575620923404 ===// //璐墿杞 if(typeof showcart !== 'function'){ function showcart(){ var langid = 0; if (langid==0 && BodyIsFt) langid = 1; if(window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767)){ location.href = "//admin.mifwl.com/exusers/u_cart.php?idweb=70757&act=show&lang="+langid+"&ismobile=1"; }else{ document.getElementById("boxName").innerHTML="鏌ョ湅璐墿杞?; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="脳"; document.getElementById("showiframe").src="//admin.mifwl.com/exusers/u_cart.php?idweb=70757&act=show&lang="+langid+"&v=9"; box.Show({width:'1000px', height:'600px'}); } } } //鍒ゆ柇鏄惁鏄墜鏈?鐢ㄤ簬澶勭悊QQ鐢佃剳绔強鎵嬫満绔摼鎺ヤ笉涓€鑷撮棶棰 var mobile_flag = isMobile(); if(mobile_flag){ $('#qqol_style_01_1575620923404 .qq-btn-pc').hide(); $('#qqol_style_01_1575620923404 .qq-btn-mobile').show(); } function isMobile() { var userAgentInfo = navigator.userAgent; var mobileAgents = [ "Android", "iPhone", "SymbianOS", "Windows Phone", "iPad","iPod"]; var mobile_flag = false; //鏍规嵁userAgent鍒ゆ柇鏄惁鏄墜鏈 for (var v = 0; v < mobileAgents.length; v++) { if (userAgentInfo.indexOf(mobileAgents[v]) > 0) { mobile_flag = true; break; } } var screen_width = window.screen.width; var screen_height = window.screen.height; //鏍规嵁灞忓箷鍒嗚鲸鐜囧垽鏂槸鍚︽槸鎵嬫満 if(screen_width < 500 && screen_height < 800){ mobile_flag = true; } return mobile_flag; } //=== viewid:qqol_style_01_1575620923404 ===// function remove_qqol_qqol_style_01_1575620923404(){ $('body > .online-service.qqol-qqol_style_01_1575620923404').remove(); } // 鍒涘缓鍦ㄧ嚎瀹㈡湇 $(function () { // 娓呯悊鏃х殑 remove_qqol_qqol_style_01_1575620923404(); // 鍒涘缓杈规爮 var sidebar = new Sidebar({ 'template': 'online-template', 'css': 'qqol-qqol_style_01_1575620923404', 'expand': false, 'main': {'width':'200px', 'position': 'right'}, 'border': {'color': '#273272', 'width': '3px', 'radius': '10px'}, 'button': {'color': '#fff', 'background-color': '#273272', 'radius': '5px'}, 'close': {'hide': false} }); // 鐗囨妯℃澘 var qqOnlineStr = ''; // 鍥炬爣涓嶈兘鏄剧ず鏃? 鏇存崲QQ鍙风爜璁╁叾鏄剧ず // 鍒涘缓鐗囨 Fragment.prototype.prefix = 'ol-'; // 鍒涘缓鐗囨鍒楄〃 var fragmentList = new FragmentList({ 'prefix':'ol-', 'css':{'padding':'0 12px'} }); fragmentList.append(new Fragment({ 'name': 'text', 'html': '
宸ヤ綔鏃堕棿
', 'css':{'margin':'.5em 0'} })); fragmentList.append(new Fragment({ 'name': 'text', 'html': '
鍛ㄤ竴鑷冲懆鏃 锛?:00-18:00
', 'css':{'margin':'.5em 0'} })); fragmentList.append(new Fragment({ 'name':'separator', 'css':{'height':'1px', 'background-color':'#4c4c4c'} })); fragmentList.append(new Fragment({ 'name': 'text', 'html': '
鑱旂郴鏂瑰紡
', 'css':{'margin':'.5em 0'} })); fragmentList.append(new Fragment({ 'name': 'text', 'html': '
鐢佃瘽锛?00-000-0000
', 'css':{'margin':'.5em 0'} })); // 娣诲姞鍒拌竟鏍 var list = fragmentList.get(); !list.children().length && list.html('

鍐呭鍒楄〃涓虹┖锛?/p>'); sidebar.append(list); if(typeof($("img").lazyload)=="function"){ $("img").lazyload({effect: "fadeIn",threshold:0,failure_limit:20,skip_invisible:false}); } }); //=== viewid:qqol_style_01_1575620923404 ===// // 瀵硅緭鍏ュ唴瀹逛腑鐨勫皷鎷彿銆佸紩鍙风瓑杩涜杞箟 function html_encode(str) { var s = ""; if (str.length == 0) return ""; s = str.replace(/&/g, "&"); s = s.replace(//g, ">"); s = s.replace(/ /g, " "); s = s.replace(/\'/g, "'"); s = s.replace(/\"/g, """); s = s.replace(/\n/g, "
"); return s; } function html_decode(str) { var s = ""; if (str.length == 0) return ""; s = str.replace(/&/g, "&"); s = s.replace(//g, ">"); s = s.replace(/ /g, " "); s = s.replace(/'/g, "\'"); s = s.replace(/"/g, "\""); s = s.replace(/
/g, "\n"); return s; } //=== viewid:button_style_04_1578627329765 ===// function btnTop(){$("html,body").animate({scrollTop:"0px"},1000);}function btnBottom(){var bodyH = $("html,body").height();$("html,body").animate({scrollTop:bodyH},1000);} //=== viewid:copyright_style_01_1615860657799 ===//