vm.roleSelectOptions.push({name: 'очистить', id: -1})
vm.onRoleChange(role){
...
if(role.id === -1) {
defaultRole();
}
...
}
test.innerHTML += "<input type='radio' name='choices' value='A'> "+chA+"<br>";
test.innerHTML += "<input type='radio' name='choices' value='B'> "+chB+"<br>";
test.innerHTML += "<input type='radio' name='choices' value='C'> "+chC+"<br><br>";
test.innerHTML += "<input type='radio' name='choices' value='"+questions[pos][4]+"' checked> Верный ответ <br><br>";
@-webkit-keyframes fadeInDownBig {
0% {
opacity: 0;
-webkit-transform: translateY(-2000px);
transform: translateY(-2000px);
}
100% {
opacity: 1;
-webkit-transform: translateY(0);
transform: translateY(0);
}
}