From a83ca761eb3f6b2cf828c08734d326c923229a4e Mon Sep 17 00:00:00 2001 From: nate smith Date: Sat, 24 Feb 2024 13:15:47 -0800 Subject: [PATCH] WIP on saving --- assets/main.js | 4 ++++ templates/index.tmpl | 30 +++++++++++++++++++----------- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/assets/main.js b/assets/main.js index fc8eae9..0487805 100644 --- a/assets/main.js +++ b/assets/main.js @@ -167,6 +167,10 @@ class PoemRegenner extends Button { } class PoemResetter extends Button { + connectedCallback() { + // TODO set title + this.innerText = "reset"; + } click() { $("div[is=poem-lines]").reset(); } diff --git a/templates/index.tmpl b/templates/index.tmpl index b34d02f..ac1a454 100644 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -29,6 +29,14 @@ div.line:not(.unpinned) > .linetext { span.linetext { background-color: black; } +.controls { + margin: 0; + margin-bottom:4px; +} + +.controls span { + font-size: 80%; +} @@ -46,17 +54,17 @@ span.linetext {

-

Trunkless

-
-
- about - -
-

- - - +

Trunkless

+

+ about +

+

+ + + save:include sources +

+
@@ -64,6 +72,6 @@ span.linetext {
+
-