var pagew = $(document).outerWidth(true) + (window.innerWidth - document.body.clientWidth); var pageh = $(window).innerHeight(); try { $(".t_menu a").click(function () { if ($(this).hasClass("on")) { $(this).removeClass("on"); $(".menufr").stop(true, true).css({ "display": "none" }); } else { $(this).addClass("on"); $(".menufr").stop(true, true).slideDown(); } }); } catch (e) { } try { $(".menufr ul li").each(function () { if (pagew > 1200) { $(this).hover( function () { $(this).find(".tm_c").stop(true, true).slideDown(); $(this).find(".tm_cpfr").stop(true, true).slideDown(); }, function () { $(this).find(".tm_c").stop(true, true).css({ "display": "none" }); $(this).find(".tm_cpfr").stop(true, true).css({ "display": "none" }); } ); } else { $(this).find(".tm_t b").click(function () { if ($(this).closest("li").hasClass("on")) { $(this).closest("li").removeClass("on"); } else { $(".menufr ul li").removeClass("on"); $(this).closest("li").addClass("on"); } }); } }); } catch (e) { } try { if (pagew <= 1200) { $(".ayzm_01_x1 ul").click(function () { if ($(this).hasClass("on")) { $(this).removeClass("on"); } else { $(this).addClass("on"); } }); $(".ayzm_01_x1 ul").on("click", "li", function () { if ($(this).closest("ul").hasClass("on")) { var _ayzm01_on = ""; var _data_cid = ""; $(".ayzm_01_x1 ul li").removeClass("on"); _ayzm01_on = $(this).html(); _data_cid = $(this).attr("data-cid"); //console.log($(this)); $(this).remove(); if (_ayzm01_on != "") { $(".ayzm_01_x1 ul li:eq(0)").before("
  • " + _ayzm01_on + "
  • "); } } }); } } catch (e) { } try { var right_top = $(document).scrollTop(); $(window).scroll(function () { right_top = $(document).scrollTop(); right_top_fun(right_top); }) right_top_fun(right_top); function right_top_fun(obj) { //console.log(obj + "aaaa" + pageh); try { if (rightcp) { $(".rightfr").addClass("acitve"); } else { if (obj > pageh) { $(".rightfr").addClass("acitve"); if(pagew<1200) { $(".retop_wap").addClass("on"); } } else { $(".rightfr").removeClass("acitve"); if(pagew<1200) { $(".retop_wap").removeClass("on"); } } } } catch (e) { if (obj > pageh) { $(".rightfr").addClass("acitve"); if(pagew<1200) { $(".retop_wap").addClass("on"); } } else { $(".rightfr").removeClass("acitve"); if(pagew<1200) { $(".retop_wap").removeClass("on"); } } } } } catch (e) { } try { $("html,body").on("click", ".howtoselect", function () { $(".layui-layer-shade").remove(); $(".layui-layer").remove(); }); } catch (e) { } try { $(".xtcs_click input").click(function () { if ($(this).prop("checked")) { $(".cpdb_02_tab table tr").each(function () { var _lengnum = $(this).find("td").length; if (_lengnum == 3) { if ($(this).find("td:eq(1)").html() == $(this).find("td:eq(2)").html()) { $(this).addClass("tr_active"); } } if (_lengnum == 4) { if ($(this).find("td:eq(1)").html() == $(this).find("td:eq(2)").html() && $(this).find("td:eq(1)").html() == $(this).find("td:eq(3)").html()) { $(this).addClass("tr_active"); } } }); } else { $(".cpdb_02_tab table tr").each(function () { $(this).removeClass("tr_active"); }); } }); } catch (e) { } try{ $("body").on("click",".cpdb_input_click",function(){ //console.log($(this)); if($(this).hasClass("on")) { $(this).removeClass("on"); } else{ $(this).addClass("on"); } }); } catch(e){} try{ var isshowdtinpt=false; $("body").on("click",".add_comparison",function(){ if(!isshowdtinpt) { isshowdtinpt=true; $(".cpdb_input_click").addClass("show"); } }); } catch(e){} try { var wh04c_time; var who4c_num=0; var wow2 = new WOW( { boxClass: 'wh_04_c', animateClass: '', offset: 0, mobile: true, live: true, callback: function (box) { clearInterval(wh04c_time); if (pagew > 1200) { $(".wh_04_c ul li").removeClass("on").eq(who4c_num).addClass("on"); who4c_an(); $(".wh_04_c ul li").each(function (i, e) { $(this).hover( function () { clearInterval(wh04c_time); $(".wh_04_c ul li").removeClass("on").eq(i).addClass("on"); }, function () { clearInterval(wh04c_time); who4c_num = i + 1; who4c_an(); } ); }); } //else { // $(".wh_04_c ul li").each(function (i, e) { // $(this).hover( // function () { // $(".wh_04_c ul li").removeClass("on").eq(i).addClass("on"); // }, // function () { // } // ); // }); //} }, scrollContainer: null } ); wow2.init(); function who4c_an() { if (pagew > 1200) { wh04c_time = setInterval(function () { if (who4c_num < 3) { $(".wh_04_c ul li").removeClass("on").eq(who4c_num).addClass("on"); who4c_num++; } else { $(".wh_04_c ul li").removeClass("on").eq(0).addClass("on"); who4c_num = 1; } }, 3000); } } } catch (e) { } try { var shzr04c_time; var shzr04c_num = 0; var wow3 = new WOW( { boxClass: 'shzr_04_c', animateClass: '', offset: 0, mobile: true, live: true, callback: function (box) { clearInterval(shzr04c_time); $(".shzr_04_c ul li").removeClass("on").eq(shzr04c_num).addClass("on"); shzr04c_an(); $(".shzr_04_c ul li").each(function (i, e) { $(this).hover( function () { clearInterval(shzr04c_time); $(".shzr_04_c ul li").removeClass("on").eq(i).addClass("on"); }, function () { clearInterval(shzr04c_time); shzr04c_num = i + 1; shzr04c_an(); } ); }); }, scrollContainer: null } ); wow3.init(); function shzr04c_an() { shzr04c_time = setInterval(function () { if (shzr04c_num < 4) { $(".shzr_04_c ul li").removeClass("on").eq(shzr04c_num).addClass("on"); shzr04c_num++; } else { $(".shzr_04_c ul li").removeClass("on").eq(0).addClass("on"); shzr04c_num = 1; } }, 3000); } } catch (e) { } try { setTimeout(function(){ var sctop10 = $(document).scrollTop(); var sctop_in10 = $(".sub_01").height(); //console.log(sctop_in10); $(window).scroll(function () { sctop10 = $(document).scrollTop(); scro_rs10(sctop10, sctop_in10); }); scro_rs10(sctop10, sctop_in10); function scro_rs10(sp, sin) { sp = sp + $(".topfr").height(); if (sp >= sin) { $(".cpnavfr").addClass("cpnavfr_on"); $(".cpnav_05_empty").addClass("on"); } else { $(".cpnavfr").removeClass("cpnavfr_on"); $(".cpnav_05_empty").removeClass("on"); } } },400); } catch (e) {console.log(e); } function countup1(_obj) { try { var settings = { 'time': 600, 'delay': 5 }; var $this = _obj; var $settings = settings; if (!$this.data('counterupTo')) { $this.data('counterupTo', $this.text()); } var time = parseInt($this.data("counter-time")) > 0 ? parseInt($this.data("counter-time")) : $settings.time; var delay = parseInt($this.data("counter-delay")) > 0 ? parseInt($this.data("counter-delay")) : $settings.delay; var divisions = time / delay; var num = $this.attr("data-counterupTo"); var nums = [num]; var isComma = /[0-9]+,[0-9]+/.test(num); num = num.replace(/,/g, ''); var isInt = /^[0-9]+$/.test(num); var isFloat = /^[0-9]+\.[0-9]+$/.test(num); var decimalPlaces = isFloat ? (num.split('.')[1] || []).length : 0; for (var i = divisions; i >= 1; i--) { var newNum = parseInt(Math.round(num / divisions * i)); if (isFloat) { newNum = parseFloat(num / divisions * i).toFixed(decimalPlaces); } if (isComma) { while (/(\d+)(\d{3})/.test(newNum.toString())) { newNum = newNum.toString().replace(/(\d+)(\d{3})/, '$1' + ',' + '$2'); } } nums.unshift(newNum); } $this.data('counterup-nums', nums); $this.text('0'); var f = function () { try { if ($this.data('counterup-nums') != "") { $this.text($this.data('counterup-nums').shift()); if ($(".zhaq_01_c").attr("class") == "zhaq_01_c") { if ($this.data('counterup-nums').shift() <= 20) { $(".zhaq_01_c").find(".img1").css({ "opacity": "1" }); $(".zhaq_01_c").find(".img2").css({ "opacity": "0" }); $(".zhaq_01_c").find(".img3").css({ "opacity": "0" }); } else if ($this.data('counterup-nums').shift() <= 60) { $(".zhaq_01_c").find(".img1").css({ "opacity": "0" }); $(".zhaq_01_c").find(".img2").css({ "opacity": "1" }); $(".zhaq_01_c").find(".img3").css({ "opacity": "0" }); } else if ($this.data('counterup-nums').shift() <= 100) { $(".zhaq_01_c").find(".img1").css({ "opacity": "0" }); $(".zhaq_01_c").find(".img2").css({ "opacity": "0" }); $(".zhaq_01_c").find(".img3").css({ "opacity": "1" }); } } } if ($this.data('counterup-nums').length) { setTimeout($this.data('counterup-func'), delay); } else { delete $this.data('counterup-nums'); $this.data('counterup-nums', null); $this.data('counterup-func', null); } } catch (e) { } }; $this.data('counterup-func', f); setTimeout($this.data('counterup-func'), delay); } catch (e) { } }