This commit is contained in:
nate smith 2024-03-16 15:28:28 -07:00
parent f35ea741de
commit 4cd614b6fb
2 changed files with 3 additions and 3 deletions

View File

@ -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 = "<strong>✓</strong>";
this.style['font-weight'] = "bold";
const l = this.linetext.parentElement;
this.linetext.style.display = "none";
this.i.value = this.linetext.innerText;

View File

@ -115,7 +115,7 @@ a {
</div>
<div is="poem-lines"></div>
<div>
<button is="line-adder" title="add line">+</button>
<button is="line-adder" title="add new line">+</button>
</div>
</div>
<script src="/html2canvas.min.js"></script>