From 4cd614b6fb652168af888dd2beffd70e57d0b4a6 Mon Sep 17 00:00:00 2001 From: nate smith Date: Sat, 16 Mar 2024 15:28:28 -0700 Subject: [PATCH] idk --- assets/main.js | 4 ++-- templates/index.tmpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/main.js b/assets/main.js index cd42279..4a24c92 100644 --- a/assets/main.js +++ b/assets/main.js @@ -108,10 +108,10 @@ class LineEditor extends Button { done() { this.setAttribute("title", "edit line text"); this.editing = false; - this.innerText = "E"; this.linetext.innerText = this.i.value; this.f.remove(); this.linetext.style.display = "block"; + this.style['font-weight'] = ""; this.dispatchEvent(edited); } click() { @@ -121,7 +121,7 @@ class LineEditor extends Button { } this.editing = true; this.setAttribute("title", "finish editing"); - this.innerHTML = ""; + this.style['font-weight'] = "bold"; const l = this.linetext.parentElement; this.linetext.style.display = "none"; this.i.value = this.linetext.innerText; diff --git a/templates/index.tmpl b/templates/index.tmpl index 962d84c..d672c7e 100644 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -115,7 +115,7 @@ a {
- +