<script>
document.addEventListener("DOMContentLoaded", function() {
(function () {
const resultList = {
"4" :"Elementary",
"9" :"Middle",
"14":"Maximum"
};
setTimeout(function(){
const rateCalc = document.querySelector(".rate .t-calc__hiddeninput");
if(rateCalc!=null){
rateCalc.addEventListener('change', function(event) {
setTimeout(function(){
const total = +rateCalc.value;
let finalRate='';
for (key in resultList) {
if(total>=+key) finalRate = resultList[key];
};
if(finalRate == '') finalRate = '...';
document.querySelector('.ratetxt .tn-atom').innerHTML = finalRate;
document.querySelector('input[name="rate"]').value = finalRate;
}, 100);
});
};
}, 1500);
})();
});
</script>
<style>
.t396__elem button.t-submit {
transition: all 0.3s ease-in-out;
}
.t396__elem button.t-submit:hover {
background-color: #fff !important;
color: #c7a17a !important;
}
.rate .t-calc {
font-size: 600px;
opacity: 0.07;
}
.rate {
left: auto !important;
right: 0 !important;
top: -170px !important;
}
select option {
margin: 40px;
background: rgb(199 161 122);
color: #fff !important;
text-shadow: 0 1px 0 rgb(199 161 122);
}
select:focus > option:checked {
background: #c7a17a !important;
}
</style>