Minor graphics improvements
<!DOCTYPE html>
<html lang="en">
+
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
newInput = document.createElement("input")
newInput.setAttribute("type", "number");
+
+ if ("step" in value) {
+ newInput.setAttribute("step", value["step"]);
+ } else {
newInput.setAttribute("step", "any");
+ }
newInput.setAttribute("min", param["min_value"]);
newInput.setAttribute("max", param["max_value"]);
newInput.defaultValue = value["max_value"];
newInput.setAttribute("type", "number");
if ("step" in value) {
newInput.setAttribute("step", value["step"]);
- newInput.defaultValue = value["min_value"];
}
+ newInput.defaultValue = value["min_value"];
newInput.setAttribute("min", param["min_value"]);
newInput.setAttribute("max", param["max_value"]);
newInput.name = "model." + key + "_xminx";
fat.appendChild(newInput);
newInput = document.createElement("input")
-
newInput.setAttribute("type", "number");
+ if ("step" in value) {
+ newInput.setAttribute("step", value["step"]);
+ }
newInput.setAttribute("min", param["min_value"]);
newInput.setAttribute("max", param["max_value"]);
newInput.defaultValue = value["max_value"];
