Files
CS343-Labs/Prep 8/save.html
2025-09-10 14:42:57 -04:00

33 lines
1.1 KiB
HTML
Executable File

<!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>