From 68b2ee90c1c79b1eef97d5a316bcb654e83fb8cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Verstrynge?= Date: Tue, 27 Feb 2024 14:11:21 +0100 Subject: [PATCH] Saving WIP --- index.html | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/index.html b/index.html index 7388e48..ee82490 100644 --- a/index.html +++ b/index.html @@ -330,6 +330,34 @@ dirElem = document.getElementById("direction-"+suffix); dirElem.innerHTML = windText(arrowElem.innerHTML) } + + const configs = [] + + function clearConfigs() { + if ( configs.length > 0 ) { + fruits.splice(0, configs.length); + } + } + + const configPrefix = "DWCFG-"; + + function loadSavedConfigs() { + clearConfigs() + for(var i=0, len=localStorage.length; i