'js' => ' $("pr-question-main x-pad").prepend("
"); $("pr-question-main [rnum]").not($("[disall]").closest("[rnum]")).each(function() { var id = ($(this).find(":checkbox").attr("id")) ? $(this).find(":checkbox").attr("id") : "none", text = $(this).find("pr-row-title").html(); $(".clicktest").append(""); $(this).css("display", "none"); }); $(".clicktest label").not("[for=none]").on("click", function() { $(this).toggleClass("checked"); }); $("[disall]").on("change", function() { if ($(this).prop("checked")) $(".clicktest").css("pointer-events", "none").find("label").addClass("dis"); else $(".clicktest").css("pointer-events", "").find("label").removeClass("dis"); }) ', 'css' => ' .checked {background: #fffa70;} .dis {background: none !important;} .clicktest { padding: 10px; margin-top: 20px; line-height: 1.2; border: 1px solid grey; font-size: 120%;} ',