From c3173217d83eec9b1b0ed86527cc8d4ebb92e152 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Fri, 26 Feb 2021 20:13:37 +0300 Subject: [PATCH] v1.5.67 - sliders replaced by number inputs --- index.html | 9 +++------ modules/ui/style.js | 17 +++-------------- 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/index.html b/index.html index 232064eb..ffa0b158 100644 --- a/index.html +++ b/index.html @@ -804,24 +804,21 @@ State Size - - 1 + Province Size - - 1 + Burg Size - - 1 + diff --git a/modules/ui/style.js b/modules/ui/style.js index 97b766e9..5f04ac17 100644 --- a/modules/ui/style.js +++ b/modules/ui/style.js @@ -625,20 +625,9 @@ styleArmiesSize.addEventListener("input", function() { }); }); -styleEmblemsStateSizeInput.addEventListener("input", function() { - styleEmblemsStateSizeOutput.value = this.value; - drawEmblems(); -}); - -styleEmblemsProvinceSizeInput.addEventListener("input", function() { - styleEmblemsProvinceSizeOutput.value = this.value; - drawEmblems(); -}); - -styleEmblemsBurgSizeInput.addEventListener("input", function() { - styleEmblemsBurgSizeOutput.value = this.value; - drawEmblems(); -}); +styleEmblemsStateSizeInput.addEventListener("input", drawEmblems); +styleEmblemsProvinceSizeInput.addEventListener("input", drawEmblems); +styleEmblemsBurgSizeInput.addEventListener("input", drawEmblems); // request a URL to image to be used as a texture function textureProvideURL() {