| 2232 | } |
| 2233 | |
| 2234 | function updateDistilledGuidanceScaleSlider() { |
| 2235 | if (distilledGuidanceScaleField.value < 0) { |
| 2236 | distilledGuidanceScaleField.value = 0 |
| 2237 | } else if (distilledGuidanceScaleField.value > 50) { |
| 2238 | distilledGuidanceScaleField.value = 50 |
| 2239 | } |
| 2240 | |
| 2241 | distilledGuidanceScaleSlider.value = distilledGuidanceScaleField.value * 10 |
| 2242 | distilledGuidanceScaleSlider.dispatchEvent(new Event("change")) |
| 2243 | } |
| 2244 | |
| 2245 | distilledGuidanceScaleSlider.addEventListener("input", updateDistilledGuidanceScale) |
| 2246 | distilledGuidanceScaleField.addEventListener("input", updateDistilledGuidanceScaleSlider) |