idk
This commit is contained in:
parent
f35ea741de
commit
4cd614b6fb
@ -108,10 +108,10 @@ class LineEditor extends Button {
|
|||||||
done() {
|
done() {
|
||||||
this.setAttribute("title", "edit line text");
|
this.setAttribute("title", "edit line text");
|
||||||
this.editing = false;
|
this.editing = false;
|
||||||
this.innerText = "E";
|
|
||||||
this.linetext.innerText = this.i.value;
|
this.linetext.innerText = this.i.value;
|
||||||
this.f.remove();
|
this.f.remove();
|
||||||
this.linetext.style.display = "block";
|
this.linetext.style.display = "block";
|
||||||
|
this.style['font-weight'] = "";
|
||||||
this.dispatchEvent(edited);
|
this.dispatchEvent(edited);
|
||||||
}
|
}
|
||||||
click() {
|
click() {
|
||||||
@ -121,7 +121,7 @@ class LineEditor extends Button {
|
|||||||
}
|
}
|
||||||
this.editing = true;
|
this.editing = true;
|
||||||
this.setAttribute("title", "finish editing");
|
this.setAttribute("title", "finish editing");
|
||||||
this.innerHTML = "<strong>✓</strong>";
|
this.style['font-weight'] = "bold";
|
||||||
const l = this.linetext.parentElement;
|
const l = this.linetext.parentElement;
|
||||||
this.linetext.style.display = "none";
|
this.linetext.style.display = "none";
|
||||||
this.i.value = this.linetext.innerText;
|
this.i.value = this.linetext.innerText;
|
||||||
|
@ -115,7 +115,7 @@ a {
|
|||||||
</div>
|
</div>
|
||||||
<div is="poem-lines"></div>
|
<div is="poem-lines"></div>
|
||||||
<div>
|
<div>
|
||||||
<button is="line-adder" title="add line">+</button>
|
<button is="line-adder" title="add new line">+</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="/html2canvas.min.js"></script>
|
<script src="/html2canvas.min.js"></script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user