$vtext5 = [
'r*c1' => '1',
'r*c2' => '2',
'r*c3' => '3',
'r*c4' => '4',
'r*c5' => '5',
'r*c99' => '?',
];
$css5 = '
tr.pr-row-head { background: transparent !important; }
tr.pr-row-head td { border: none !important; }
[cnum="1"] pr-col-title { text-align: left }
[cnum="5"] pr-col-title { text-align: right }
pr-elem-reminder {width: 4em; min-height: 40px; font-size: 150%; margin: auto}
@media screen and (max-device-width:650px) {
tbody {lineHeight: 1em; font-size: 70%}
pr-elem-reminder {width: 2em;}
}
';
$js5 = '
$(".pr-row-head [cnum]:not([cnum=1],[cnum=5])").remove();
$(".pr-row-head [cnum=1]").attr("colspan", 3);
$(".pr-row-head [cnum=5]").attr("colspan", 2);
$("pr-elem").hide();
var colors = {
1: "bg-red-l1",
2: "bg-red-l3",
3: "bg-yellow-l4",
4: "bg-green-l3",
5: "bg-green-l1",
};
$(document).on("change", "pr-question-main :radio, pr-question-main :checkbox", function () {
$("[rnum]:not([rnum=99]) [cnum]").each(function () {
var $td = $(this),
$input = $td.find(":radio, :checkbox"),
cnum = $td.attr("cnum");
$td.toggleClass(colors[cnum], $input.prop("checked") && !$input.prop("disabled"));
});
});
';