$vtext10 = [
'r*c1' => '1',
'r*c2' => '2',
'r*c3' => '3',
'r*c4' => '4',
'r*c5' => '5',
'r*c6' => '6',
'r*c7' => '7',
'r*c8' => '8',
'r*c9' => '9',
'r*c10' => '10',
'r*c99' => '?',
];
$css10 = '
tr.pr-row-head { background: transparent !important; }
tr.pr-row-head td { border: none !important; }
[cnum="1"] pr-col-title { text-align: left }
[cnum="10"] pr-col-title { text-align: right }
pr-elem-reminder {width: 60px; min-height: 40px; margin: 0; font-size: 160%}
';
$js10 = '
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
if($("pr-row-title").length > 1)
$("tbody").css({lineHeight: "1em", fontSize: "60%"});
$("pr-elem-reminder").css({width: "auto", margin: "auto", fontSize: "120%"});
$(".pr-cell-head").css("max-width", "10em");
}
var res = function() {
var height = 0;
$(".pr-row-body").each(function() {
if ($(this).height() > height)
height = $(this).height();
});
let offset = (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) ? 40 : 20;
$("tr:not(.pr-row-head) .pr-cell-head").css("height", (height-offset) + "px");
};
$(res);
$(window).resize(res);
$(".pr-row-head [cnum]:not([cnum=1],[cnum=10])").remove();
$(".pr-row-head [cnum=1]").attr("colspan", 5);
$(".pr-row-head [cnum=10]").attr("colspan", 5);
$("pr-elem").hide();
var colors = {
1: "bg-red-l1",
2: "bg-red-l1",
3: "bg-red-l3",
4: "bg-red-l3",
5: "bg-yellow-l4",
6: "bg-yellow-l4",
7: "bg-green-l3",
8: "bg-green-l3",
9: "bg-green-l1",
10: "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"));
});
});
';