forked from DanyalAhmad2003/HCI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrewards-code.html
More file actions
41 lines (37 loc) · 1.11 KB
/
rewards-code.html
File metadata and controls
41 lines (37 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>EcoBin – Your Code</title>
<link rel="stylesheet" href="css/styles.css" />
</head>
<body>
<header><h1>EcoBin Rewards</h1></header>
<main>
<div class="highlight" style="text-align:center;">
<p id="name-out"></p>
<p>Here is your code:</p>
<div style="
display:inline-block;
padding:.75rem 1.5rem;
border-radius:.5rem;
background:#111;
color:#C8102E;
font-family:monospace;
margin-top:1rem;
" id="code-out"></div>
</div>
</main>
<a href="index.html" class="back-btn">← Back to Menu</a>
<script>
const name = sessionStorage.getItem('selName') || '';
const code = sessionStorage.getItem('selCode') || '';
document.getElementById('name-out').textContent = name;
document.getElementById('code-out').textContent = code;
sessionStorage.removeItem('selName');
sessionStorage.removeItem('selCost');
sessionStorage.removeItem('selCode');
</script>
</body>
</html>