MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / reset

Function reset

assets/js/CustomCount.js:79–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77}
78
79function reset() {
80 // Hide countdowns, show input form
81 countdownEl.hidden = true;
82 completeEl.hidden = true;
83 inputContainer.hidden = false;
84 // Stop the countdown
85 clearInterval(countdownActive);
86 // Reset values, remove localStorage item
87 countdownTitle = '';
88 countdownDate = '';
89 localStorage.removeItem('countdown');
90}
91
92function restorePreviousCountdown() {
93 // Get countdown from localStorage if available

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected