|
|
| Line 1: |
Line 1: |
| {| class="wikitable"
| | <script> |
| ! Land
| | // Show all keys in localStorage |
| ! Attraction
| | var logDiv = document.getElementById('debug-log'); |
| ! Done
| | if (!logDiv) { |
| ! Time | | logDiv = document.createElement('pre'); |
| {{CheckboxWithTimestamp2 | land = Main Street USA | attr = Disneyland Railroad | id = MS-Railroad }}
| | logDiv.id = 'debug-log'; |
| {{CheckboxWithTimestamp2 | land = | attr = Great Moments With Mr. Lincoln | id = Great-Moments }}
| | document.body.appendChild(logDiv); |
| {{CheckboxWithTimestamp2 | land = | attr = Omnibus | id = MS-Omnibus }}
| | } |
| {{CheckboxWithTimestamp2 | land = | attr = Fire Engine | id = MS-Fire-Engine }}
| | logDiv.innerText = ''; |
| {{CheckboxWithTimestamp2 | land = | attr = Horse-Drawn Streetcar | id = MS-Streetcar }}
| | for (var i = 0; i < localStorage.length; i++) { |
| {{CheckboxWithTimestamp2 | land = | attr = Horseless Carriage | id = MS-Carriage }}
| | var key = localStorage.key(i); |
| {{CheckboxWithTimestamp2 | land = | attr = Main St. Cinema | id = MS-Cinema }}
| | var value = localStorage.getItem(key); |
| {{CheckboxWithTimestamp2 | land = Adventureland | attr = Enchanted Tiki Room | id = Tiki-Room }} | | logDiv.innerText += key + ' → ' + value + '\n'; |
| {{CheckboxWithTimestamp2 | land = | attr = Jungle Cruise | id = Jungle-Cruise }}
| | } |
| {{CheckboxWithTimestamp2 | land = | attr = Temple Of The Forbidden Eye | id = Indy-Jones }}
| | </script> |
| {{CheckboxWithTimestamp2 | land = | attr = Adventureland Treehouse | id = Adventureland-Treehouse }}
| |
| {{CheckboxWithTimestamp2 | land = Frontierland | attr = Tom Sawyer Island | id = Tom-Sawyer }}
| |
| |-
| |
| | Example task 2
| |
| |
| |
| | <htmltag tagname="input" type="checkbox" class="mw-checkbox-ts" id="Sandbox2"></htmltag>
| |
| | <span class="mw-ts-box"></span>
| |
| |-
| |
| | Example task 3
| |
| |
| |
| | <htmltag tagname="input" type="checkbox" class="mw-checkbox-ts" id="Sandbox3"></htmltag>
| |
| | <span class="mw-ts-box"></span>
| |
| |}
| |
Revision as of 10:13, 1 October 2025
<script>
// Show all keys in localStorage
var logDiv = document.getElementById('debug-log');
if (!logDiv) {
logDiv = document.createElement('pre');
logDiv.id = 'debug-log';
document.body.appendChild(logDiv);
}
logDiv.innerText = ;
for (var i = 0; i < localStorage.length; i++) {
var key = localStorage.key(i);
var value = localStorage.getItem(key);
logDiv.innerText += key + ' → ' + value + '\n';
}
</script>