forked from DanyalAhmad2003/HCI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpick-devices.html
More file actions
57 lines (48 loc) · 1.61 KB
/
pick-devices.html
File metadata and controls
57 lines (48 loc) · 1.61 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Pick Device</title>
<link rel="stylesheet" href="css/styles.css" />
</head>
<body>
<header><h1>Pick a Device</h1></header>
<main>
<p style="margin-bottom:1rem;">Select your recent device you recycled to repair:</p>
<div class="menu">
<button class="btn" onclick="selectComputer('2020 MacBook M4')">
2020 MacBook M4
</button>
<button class="btn" onclick="selectTV('Samsung 65in 4K TV')">
Samsung 65″ 4K TV
</button>
<button class="btn" onclick="selectPhone('iPhone 13 Pro Max')">
iPhone 13 Pro Max
</button>
<button class="btn" onclick="selectScotter('RX7 Electric Hyper Scooter')">
RX7 Electric Hyper Scooter
</button>
</div>
</main>
<a href="info.html" class="back-btn">← Back</a>
<script>
function selectPhone(deviceName) {
sessionStorage.setItem('repairDevice', deviceName);
location.href = 'repair-step1.html';
}
function selectComputer(deviceName) {
sessionStorage.setItem('repairDevice', deviceName);
location.href = 'repair-step-computer-step1.html';
}
function selectTV(deviceName) {
sessionStorage.setItem('repairDevice', deviceName);
location.href = 'repair-step-tv-step1.html';
}
function selectScotter(deviceName) {
sessionStorage.setItem('repairDevice', deviceName);
location.href = 'repair-step-scotter-step1.html';
}
</script>
</body>
</html>