This commit is contained in:
sky
2025-10-26 10:27:36 -04:00
parent a043621fff
commit 50372cc7eb
9 changed files with 273 additions and 14 deletions

View File

@ -144,13 +144,39 @@
return theme;
}
});
function wipeData() {
if(prompt("Wiping your data means you will lose all progress in every game, and every setting you have selected.\nAre you sure you would like to continue?\n\nType \"please wipe my data\" to continue.") == "please wipe my data") {
localStorage.clear();
document.cookie.split(";").forEach(e => {
document.cookie = e.split("=")[0] + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT"
})
}
}
function downloadData() {
// grab localstorage
// grab cookies
// json.stringify
// base64
alert("not completed");
}
function uploadData() {
if(prompt("Are you sure you want to upload data?\nThis may overwrite any previous data you had stored.\n\nType \"i am sure\" to continue.") == "i am sure") {
// prompt file upload
// read file
// atob
// set cookies
// set localstorage
alert("not completed");
}
}
</script>
</head>
<body>
<h1 class="title">settings</h1>
<sections>
<section>
<h2>theme</h2>
<h2>style</h2>
<p style="font-size:20px;margin:6px;">themes</p>
<select id="themes">
<option value="">selenite</option>
<option value="blackandwhite">black and white</option>
@ -160,9 +186,7 @@
<option value="custom">custom</option>
</select>
<input type="color" id="colorPicker" style="display: none">
</section>
<section>
<h2>toggles</h2>
<p style="font-size:20px;margin:6px;">toggles</p>
<div class="samerow"><input type="checkbox" id="fastMode"><label for="fastMode" title="disables particles, animated background, & other misc effects">fast mode</label></div>
<div class="samerow"><input type="checkbox" id="superFastMode"><label for="superFastMode" title="disables all blurs and transparency">super fast mode</label></div>
</section>
@ -193,6 +217,13 @@
<input type="text" id="panicURL">
<button id="submitPanic">set panic mode</button>
</section>
<section>
<h2>manage data</h2>
<p>not implemented</p>
<button id="downloadData">download</button>
<button id="uploadData">upload</button>
<button onclick="wipeData()">wipe (erases all game data)</button>
</section>
</sections>
</body>
</html>