From df65fe77624554174725cb0d68b071d150fb7bb2 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 7 Jun 2026 02:50:36 -0400 Subject: [PATCH] Remove the Clear button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Drafts made it redundant — open a new tab or select-all-delete. Co-Authored-By: Claude Opus 4.8 (1M context) --- static/index.html | 7 ------- 1 file changed, 7 deletions(-) diff --git a/static/index.html b/static/index.html index 79d4af5..2234500 100644 --- a/static/index.html +++ b/static/index.html @@ -251,7 +251,6 @@ Double-click any word to look it up on the right.">
-
@@ -702,12 +701,6 @@ function flash(id,msg){ const b=document.getElementById(id); const o=b.textContent; b.textContent=msg; setTimeout(()=>b.textContent=o,1100); } -document.getElementById('clearBtn').addEventListener('click', ()=>{ - if(editor.value.trim()){ - try{ localStorage.setItem('rhymepad.trash', editor.value); }catch(e){} - } - editor.value=''; analysis=null; render(); analyze(); editor.focus(); -}); document.getElementById('sampleBtn').addEventListener('click', ()=>{ editor.value = `I keep the cadence tucked beneath my tongue tonight