Skip to content

Commit

Permalink
Saving WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
JVerstry committed Feb 27, 2024
1 parent 52be32a commit 68b2ee9
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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<len; i++) {
var key = localStorage.key(i);
if ( key.startsWith(configPrefix) ) {
var value = localStorage[key];
var start = value.substring(0,configPrefix.length)
}
}
}

function saveConfig(itemName) {

}



</script>

</body>
Expand Down

0 comments on commit 68b2ee9

Please sign in to comment.