From 75a5881d40b12ef96d76adc390f721a421130536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B9=20=D0=92=D0=B8?= =?UTF-8?q?=D0=B3=D0=B4=D0=BE=D1=80=D0=BE=D0=B2?= Date: Tue, 4 Nov 2025 17:14:53 +0300 Subject: [PATCH] add dev --- public/index.html | 1 + src/script.js | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 021fabc..2849aa5 100644 --- a/public/index.html +++ b/public/index.html @@ -9,6 +9,7 @@
+
diff --git a/src/script.js b/src/script.js index 406ec7b..99494c7 100644 --- a/src/script.js +++ b/src/script.js @@ -127,7 +127,6 @@ const getExample = () => { default: return isPlusMinusKind ? getMinusExample() : getDivisionExample(); } - }; export const getDifficultyById = id => { @@ -323,3 +322,13 @@ resetButton.addEventListener(EVENTS.CLICK, () => { }); renderPage(); + +const markDev = () => { + if (['localhost', 'dev'].some(v => location.href.includes(v))) { + const marker = document.getElementById('dev-marker'); + + marker.innerText = 'DEVELOP'; + } +}; + +markDev();