Özgün çalışan dosya
reference/public/index.html
Kodlardaki adlar ve çalışan örnek sayfalardaki metinler özgün halleriyle korunmuştur. Ders ve dosya açıklamaları bunları Türkçe olarak açıklar.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Upload a private image</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<main>
<h1>Upload a private image</h1>
<label>Email<input name="email" type="email" autocomplete="email" /></label
><button id="request" type="button">Send sign-in code</button
><label
>Sign-in code<input
name="token"
inputmode="numeric"
autocomplete="one-time-code" /></label
><button id="verify" type="button">Verify code</button
><button id="signout" type="button">Sign out</button>
<p id="identity"></p>
<p role="status"></p>
<form id="upload">
<label
>Image<input
type="file"
name="picture"
accept="image/png,image/jpeg,image/webp"
required /></label
><button>Upload image</button>
</form>
<p id="upload-status"></p>
<img id="preview" alt="Your uploaded practice image" /><label
>Exact stored path to delete<input id="delete-path" /></label
><button id="delete-image" type="button">Request deletion</button>
</main>
<script type="module" src="app.js"></script>
</body>
</html>