From 209b1915b0f1879d0055ea17f76464dddcf8089b Mon Sep 17 00:00:00 2001 From: Rasmus Luha Date: Sun, 5 Feb 2023 20:43:17 +0200 Subject: =?UTF-8?q?Hinnad=20m=C3=A4ng=20for=20Arimees=20+=20fonts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rannak/mangud/kaitseliitlane/salakood/script.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rannak/mangud/kaitseliitlane/salakood/script.js') diff --git a/rannak/mangud/kaitseliitlane/salakood/script.js b/rannak/mangud/kaitseliitlane/salakood/script.js index 1945187..5925a0b 100644 --- a/rannak/mangud/kaitseliitlane/salakood/script.js +++ b/rannak/mangud/kaitseliitlane/salakood/script.js @@ -31,6 +31,11 @@ function clickEventAdder(){ if (node != curNode && node.classList.contains("selected")) node.classList.remove("selected"); } + + // Bring cursor to input + document.querySelector("input").focus(); + document.querySelector("input").select(); + }); } // outerFor -- cgit v1.2.3