$(function(){$(".detail_question_list .ask_btn").click(function(){window.addAnswer($(this).attr("data-id"))});$(".opt_upvote").click(function(){var n=$(this);n.hasClass("cur")||window.answerUpvote(n.closest(".content_opt").attr("data-id"),()=>{n.addClass("cur");n.find("img").attr("src","../images/v2/icon/upvote_blue.png");var t=+$.trim(n.find("span").text());t+=1;n.find("span").text(t).show()})});$(".opt_downvote").click(function(){var n=$(this);n.hasClass("cur")||window.answerDownvote(n.closest(".content_opt").attr("data-id"),()=>{n.addClass("cur");var t=+$.trim(n.find("span").text());t+=1;n.find("span").text(t).show()})})})