First commit
This commit is contained in:
33
Prep 8/save.html
Executable file
33
Prep 8/save.html
Executable file
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Nicholas Tamassia - Prep 8 - Save</title>
|
||||
|
||||
<style>
|
||||
/* YOUR STYLE HERE */
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
Data saved!
|
||||
|
||||
<script>
|
||||
const items = {
|
||||
'fullname': 'Nicholas Tamassia',
|
||||
'favnumber': '28', // It's a Perfect Number! Literally.
|
||||
'quotes': [
|
||||
"Savior, conqueror, hero, villain. You are all things, Revan... and yet you are nothing. In the end, you belong to neither the light nor the darkness. You will forever stand alone.",
|
||||
"Do you know the difference between an error and a mistake? Anyone can make an error. But that error doesn't become a mistake until you refuse to correct it.",
|
||||
"It is said that one should keep one's allies within view, and one's enemies within reach"
|
||||
]
|
||||
}
|
||||
|
||||
for (const [key, value] of Object.entries(items)) {
|
||||
localStorage.setItem(key, typeof value === "string" ? value : JSON.stringify(value))
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user