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();