Accepting kelvin

This commit is contained in:
Indu Prakash
2022-11-08 06:07:45 -06:00
parent 8ec8d6ffc8
commit ef83601bb0
4 changed files with 43 additions and 29 deletions

View File

@ -77,6 +77,13 @@ function onLoad() {
showState();
}
function submitTemperature(slider) {
var form = getElement("form132");
var kelvinField = getElement("kelvin132");
kelvinField.value = Math.round(1000000 / parseInt(slider.value));
form.submit();
}
window.addEventListener("load", onLoad);
history.pushState(null, "", "index"); // drop actions like 'toggle' from URL