working, but not on-line editable.

This commit is contained in:
Philip Sargent 2020-03-29 03:43:19 +01:00
parent 04b5409d6f
commit 314af7c4c9

View File

@ -7,8 +7,10 @@
<body>
<h1>Expo Systems Exptl. To-Do List</h1>
<link rel="stylesheet" type="text/css" href="x-todo-styles.css" />
<button onclick="window.location.href = 'x-todo.html_edit';">Update this to-do list</button>
<button onclick="window.location.href = 'x-todo.html';">Update this to-do list</button>
<!--
<button onclick="window.location.href = 'x-todo.html_edit';">Update this to-do list</button>
-->
<!--
<label for="toggle-1">Toggle visibility of all sub-items</label>
<input type="checkbox" id="toggle-1">
@ -17,7 +19,7 @@
<h2>Experimental</h2>
<p>Click on a sub-heading to hide and reveal the individual to-do items. If a heading is in italics, then there are hidden items.
<p>Edit this page by clciking on the big blue button. It uses the same "Edit this page" function that you may have used before.
<p>Edit this page by clicking on the big blue button. It uses the same "Edit this page" function that you may have used before. But this is not working yet. Please do not try as that will currently delete all the Javascript that makes the hide/reveal functions work.
<h2>Taken from file on ::expoweb::/TODO </h2>
<dl>
<dt>Add missing images to logbooks</dt>
@ -149,13 +151,18 @@
<hr>
<!-- ------------------- Do not touch anything below here ------------------------>
<!--2020-03-26--> Testing area..
<div id="demo">Demonstation as initially read from disc</div>
<div id="demo">Demonstation as initially read from disc</div>
<script>
document.getElementById("demo").innerHTML = "Demonstation innerHTML change CONFIRMED";
</script>
</script>
<!--Bother. The DOM is not carried across to the _edit page. It looks like the _edit page just re-reads
the original file from disc. So storing changes done by js will mean working directly with the POST action and a form. -->
<script>
<script>
// TO DO - make the <dt> italic when any of the <dd> following it are hidden.
var itemlist = document.getElementsByTagName('dd');
for (i = 0; i < itemlist.length; i++) {
itemlist[i].onclick = hideable;