Skip to content

Instantly share code, notes, and snippets.

@HaydenElza
Created March 6, 2022 19:48
<form action="/set-timer" method="get" id="timer-form">
<label for="time-select">Enter a date and time for the glitter bomb to detonate:</label>
<input id="time-select" type="datetime-local" name="time" />
<button type="submit" form="timer-form">Start Timer</button>
</form>
<script>
document.getElementById("time-select").value = Date().toString();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment