Remove clear button to simplify UI
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 <noreply@anthropic.com>
This commit is contained in:
parent
41198a55ec
commit
cb7c456a8f
3 changed files with 0 additions and 60 deletions
18
app/app.js
18
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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue