From e05e78c71d82cd43d27d7176499c592c5c423653 Mon Sep 17 00:00:00 2001 From: Zhora Shalyapin Date: Wed, 19 Mar 2025 15:36:16 +0000 Subject: [PATCH] fix & red borders --- main.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 7208720..ab6d394 100644 --- a/main.js +++ b/main.js @@ -1866,7 +1866,7 @@ pointInput.id = "add-point" pointInput.type = "text" pointInput.addEventListener("focus", () => { - pointInput.classList.remove("success") + pointInput.classList.remove("success", "error") }) let addButton = document.createElement("button") @@ -1914,7 +1914,7 @@ let option = document.querySelector(`#cps_in option[value="${addedPoints[point]}"]`) option.selected = true document.querySelector(`#cps_delete`).click() - pointInput.classList.add("success") + pointInput.classList.add("error") pointInput.value = "" option.selected = false scrollSelectToBottom("#cps_in") @@ -1927,7 +1927,7 @@ document.querySelector("table tr:nth-child(16) td").prepend(addPointsContainer) addStylesToHead(` - select { + #cps_in, #cps_avail { height: 15em; } @@ -1935,6 +1935,10 @@ border-color: green; } + .error { + border-color: red; + } + #add-point { width: 5em; }