Summary Files Commits Branches @commit @diff @stats
path: root / checklist.html
diff options
context:
space:
mode:
Commit0436b5d7cc0b73012efc49377e701ea3a12b14ab (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-01-01 20:32:10 +0200
Committer
 Syndamia <kamen@syndamia.com>
2023-01-01 20:32:10 +0200
Files9d63f864dce5c9c221776fc73a9444263808dc7d /checklist.html
small-web-utilities-0436b5d7cc0b73012efc49377e701ea3a12b14ab.tar
small-web-utilities-0436b5d7cc0b73012efc49377e701ea3a12b14ab.tar.gz
small-web-utilities-0436b5d7cc0b73012efc49377e701ea3a12b14ab.zip
Parentbf3185d8ec38820d64276bc70c1def38204426bd (diff)
[checklist] Lock button has it's text updated and how disabled input fields
1 files changed, 6 insertions, 1 deletions
-rw-r--r--checklist.html7
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;
+}
</style>
</head>
<body>
@@ -64,7 +68,7 @@ input {
<h2>Checklists</h2>
<p>
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 () {