From cb7c456a8f3f625984c373e730b8e3012f8b7a49 Mon Sep 17 00:00:00 2001 From: Ole-Morten Duesund Date: Mon, 18 Aug 2025 20:56:49 +0200 Subject: [PATCH] Remove clear button to simplify UI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The clear button was unnecessary clutter - users can simply select and delete text in the input field if they want to clear it. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- app/app.js | 18 ------------------ app/index.html | 2 -- app/styles.css | 40 ---------------------------------------- 3 files changed, 60 deletions(-) diff --git a/app/app.js b/app/app.js index 90424fa..cb3c7c3 100644 --- a/app/app.js +++ b/app/app.js @@ -14,7 +14,6 @@ const outputText = document.getElementById('outputText'); const intensitySlider = document.getElementById('intensity'); const intensityValue = document.getElementById('intensityValue'); const zalgoModeSelect = document.getElementById('zalgoMode'); -const clearBtn = document.getElementById('clearBtn'); const copyNotification = document.getElementById('copyNotification'); // Easter egg state @@ -117,15 +116,6 @@ async function copyToClipboard() { } } -/** - * Clear all text fields - */ -function clearAll() { - inputText.value = ''; - outputText.value = ''; - inputText.focus(); -} - /** * Easter Egg Functions */ @@ -325,16 +315,8 @@ outputText.addEventListener('click', () => { } }); -clearBtn.addEventListener('click', clearAll); - // Handle keyboard shortcuts document.addEventListener('keydown', e => { - // Ctrl/Cmd + K to clear - if ((e.ctrlKey || e.metaKey) && e.key === 'k') { - e.preventDefault(); - clearAll(); - } - // Ctrl/Cmd + C when output is focused to copy if ((e.ctrlKey || e.metaKey) && e.key === 'c' && document.activeElement === outputText) { copyToClipboard(); diff --git a/app/index.html b/app/index.html index a8dc4f4..ceeb724 100644 --- a/app/index.html +++ b/app/index.html @@ -65,8 +65,6 @@ >
Copied!
- -