Sandbox: Difference between revisions

From Hidden Mickey Wiki

No edit summary
No edit summary
Line 16: Line 16:
| <span class="mw-ts-box"></span>
| <span class="mw-ts-box"></span>
|}
|}
<div id="mw-debug-msg" style="color:red; font-weight:bold;"></div>


<htmltag tagname="script"><![CDATA[
<htmltag tagname="script"><![CDATA[
(function () {
(function () {
   'use strict';
   'use strict';
  // Debug start
  console.log("✅ Timestamp script loaded");
  var dbg = document.getElementById("mw-debug-msg");
  if (dbg) dbg.textContent = "✅ Timestamp script loaded (check console for details)";


   function formatTime(d) {
   function formatTime(d) {
Line 37: Line 44:
     var cb = ev.target;
     var cb = ev.target;
     if (cb.matches && cb.matches('.mw-checkbox-ts')) {
     if (cb.matches && cb.matches('.mw-checkbox-ts')) {
      console.log("Checkbox toggled:", cb, "Checked?", cb.checked);
       var tsBox = findTsBox(cb);
       var tsBox = findTsBox(cb);
       if (tsBox) {
       if (tsBox) {

Revision as of 15:58, 30 September 2025

Item Done Time
Example task 1
Example task 2
Example task 3