$(function() { if(isfrontenv()) { $("#c_static_001_p_2345-1667187504243 .e_loop-25 .p_list").prepend("").each(function() { let b = $("#c_static_001_p_2345-1667187504243 .e_richtext-22"); b.addclass("fs-0"); $(this).find(".p_loopitem").first().addclass("current").end().click(function() { $(this).addclass("current").siblings().removeclass("current"); b.removeclass([0,1,2].reduce((a,b) => a + " fs-" + b, "")).addclass("fs-" + $(this).index()); }); }); } });