From 404e486571eaa24c4c538c1fbb2fe845af4bbc23 Mon Sep 17 00:00:00 2001 From: elioat Date: Tue, 3 Sep 2024 19:36:34 -0400 Subject: * --- html/playground/index.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'html/playground') diff --git a/html/playground/index.html b/html/playground/index.html index d987c22..ec575a5 100644 --- a/html/playground/index.html +++ b/html/playground/index.html @@ -92,8 +92,14 @@ +
+ +
+
+
+
- + @@ -156,6 +162,15 @@ window.prompt("Copy the URL to share.\nBe warned! Very long URLs don't share wicked well, sometimes.", window.location.href); } + function clearEverything() { + if (!confirm('Are you sure you want to reset the playground?')) { + return; + } else { + window.location.hash = ''; + window.location.reload(); + } + } + function loadCodeFromHash() { const hash = window.location.hash.substring(1); if (hash) { -- cgit 1.4.1-2-gfad0