Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<title>Form Autosave</title>
<style type="text/css">
body {
margin: 1em auto;
max-width: 40em;
width: 88%;
@angusgrant
angusgrant / week6lesson2.html
Last active November 16, 2022 23:36
week 5 lesson2 save all form data as one String
<!DOCTYPE html>
<html>
<head>
<title>Form Autosave</title>
<style type="text/css">
body {
margin: 1em auto;
max-width: 40em;
width: 88%;
<!DOCTYPE html>
<html>
<head>
<title>Form Autosave - Form Status</title>
<style type="text/css">
body {
margin: 1em auto;
max-width: 40em;
width: 88%;
@angusgrant
angusgrant / index.html
Last active February 6, 2023 18:53
week1 task1 Web Apps
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Sparrow Photography</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
@angusgrant
angusgrant / index.html
Last active February 6, 2023 19:14
go make things test 2
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Sparrow Photography</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
async function getPhotoData() {
async function getData() {
try {
const response = await fetch('https://vanillajsacademy.com/api/photos.json');
const data = await response.json();
sessionStorage.setItem("photos", JSON.stringify(data));
return data;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Sparrow Photography</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Sparrow Photography</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Sparrow Photography</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Dice Library</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
body {
margin: 0 auto;