function efunc(qid) { if(qid === "ALL"){ var isAnimete = true; $(".scaleBtn, label > span, .question-title").css("word-break", "break-word"); $("button[id^=refresh_]").css("background", "#1cae81"); if(kon.attr.variable != undefined){ //kon 코드에 미리 정의해놓으면 됨 $("a[id^=attr_]:gt(0)").hide(); $(".custom-control-radio, .scaleBtn, .custom-control-checkbox-square, .d-inline-block").on("click", function(){ var tmpNextA = $(this).parents("div[id^=qus_]").next(); if($(tmpNextA).length > 0){ $(tmpNextA).show(); //console.log($(tmpNextA).attr("aria-expanded"));//밑에 나올게있음 true if($(tmpNextA).attr("aria-expanded").toLowerCase() == "false"){ $(tmpNextA).click(); }; if(isAnimete){ var location = $(tmpNextA).position().top; $("#qmain-box").animate({scrollTop : location + 148}, 400); } } }); $(".custom-control-checkbox-square").on("click", function () { var $chk = $(this).find("input[type=checkbox]"); var tId = "#T" + $chk.attr("id"); if ($(tId).length > 0) { if ($chk.prop("checked")) $(tId).prop("disabled", false); else $(tId).prop("disabled", true).val(""); } }); } }// ALL switch(qid){ } }