Sandbox: Difference between revisions
From Hidden Mickey Wiki
No edit summary |
No edit summary |
||
| Line 39: | Line 39: | ||
var cellId = row.insertCell(); | var cellId = row.insertCell(); | ||
cellId.innerText = id; | cellId.innerText = id; | ||
cellId.style.border = '1px solid black'; | |||
cellId.style.padding = '4px'; | |||
// Checkbox state | |||
var cellCheckbox = row.insertCell(); | |||
cellCheckbox.innerText = localStorage.getItem(id) || '(none)'; | |||
cellCheckbox.style.border = '1px solid black'; | |||
cellCheckbox.style.padding = '4px'; | |||
cellCheckbox.style.textAlign = 'center'; | |||
// Timestamp | |||
var cellTs = row.insertCell(); | |||
cellTs.innerText = localStorage.getItem(id + '-ts') || '(none)'; | |||
cellTs.style.border = '1px solid black'; | |||
cellTs.style.padding = '4px'; | |||
cellTs.style.textAlign = 'center'; | |||
}); | |||
// Append table to the end of the page content | |||
document.body.appendChild(table); | |||
})(); | |||
}); | |||
</htmltag> | |||
Revision as of 10:19, 1 October 2025