$(()=>{ if(isFrontEnv()){ $("#c_grid-116273709439191").mouseover(function(){ if( $(this).hasClass("active")){ }else{ $(this).addClass("active"); } }); $("#c_grid-116273709439191").mouseout(function(){ if($(window).scrollTop() > 0){ }else{ $(this).removeClass("active"); } }); if($("#demo").length != 0){ $('.counter').countUp(); } var linkST = window.location.href; linkST = linkST.replace(/^http:\/\/[^/]+/, ""); if($(".p_breadcrumb").length != 0){ if($(".p_c_title1[href='"+ linkST +"']").length != 0){ $(".p_c_title1[href='"+ linkST +"']").parent().parent().addClass("active"); } } setTimeout(()=>{ $(".p_c_title1:contains('"+ $(".p_breadcrumbItem:last-child").prev().find("a").text() +"')").parent().parent().addClass("active"); console.log($(".p_breadcrumbItem:last-child").prev().find("a").text()); },1000); $('.floatTop').click(function() { $("html,body").animate({scrollTop:0}, 500); }); } }) $(window).scroll(function(){ if($(window).scrollTop() > 0){ $("#c_grid-116273709439191").addClass("active"); }else{ $("#c_grid-116273709439191").removeClass("active"); } });