From 0436b5d7cc0b73012efc49377e701ea3a12b14ab Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 1 Jan 2023 20:32:10 +0200 Subject: [checklist] Lock button has it's text updated and how disabled input fields --- checklist.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'checklist.html') diff --git a/checklist.html b/checklist.html index 23d3dcd..dcb8f95 100644 --- a/checklist.html +++ b/checklist.html @@ -57,6 +57,10 @@ input { #article-add-item, #article-sub-item, .item-add, .item-remove { display: none; } + +.textlike { + pointer-events: none; +} @@ -64,7 +68,7 @@ input {

Checklists

With plus you add an item to the bottom of a checklist. - With minus you remove it. With "Lock" you disable all adding and removeal of items. + With minus you remove it. With "Lock" you can select to only be able to check and uncheck items. "U" and "C" buttons correspond to uncheck and check functionality. "Export" creates and puts a string, representing the whole checklist and what items are checked, in the text box on the right, as well as in the current link. This means that, after pressing "Export", you can copy the link of the current page and share it, or you can copy the text itself (double-click to select all). @@ -209,6 +213,7 @@ input { document.getElementById('lock-items').onclick = function () { stylesheetLocked.disabled = !stylesheetLocked.disabled; + this.value = (this.value == 'Lock') ? 'Unlock' : 'Lock'; } document.getElementById('uncheck-all').onclick = function () { -- cgit v1.3.1-26-gb76a