-
Notifications
You must be signed in to change notification settings - Fork 0
/
you4.html
62 lines (59 loc) · 1.88 KB
/
you4.html
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
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<title>For You</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" href="https://use.typekit.net/znk3xkz.css">
</head>
<body class="questions">
<!-- header -->
<img src="images/menu.png" width="100%">
<!-- header -->
<!-- questions -->
<div class="youquestion4">
<img src="images/q8.png" width="15%" class="qcount">
<p class="questiontitle">How would you like your clothes to fit?</p>
<figure>
<img src="images/tight.png" width="100%" class="imgselection" onclick="chooseFit('tight')">
<figcaption>Tight</figcaption>
</figure>
<figure>
<img src="images/straight.png" width="100%" class="imgselection" onclick="chooseFit('straight')">
<figcaption>Straight</figcaption>
</figure>
<figure>
<img src="images/fitted.png" width="100%" class="imgselection" onclick="chooseFit('fitted')">
<figcaption>Fitted</figcaption>
</figure>
<figure>
<img src="images/loose.png" width="100%" class="imgselection" onclick="chooseFit('loose')">
<figcaption>Loose</figcaption>
</figure>
<figure>
<img src="images/oversized.png" width="100%" class="imgselection" onclick="chooseFit('oversized')">
<figcaption>Oversized</figcaption>
</figure>
<br>
<!-- <a href="you3.html"><button class="stylebutton">back ›</button></a> -->
</div>
<!-- questions -->
<script>
function openNav() {
document.getElementById("mySidenav").style.width = "16vw";
}
function chooseFit(val) {
if(typeof(Storage) !== "undefined") {
sessionStorage.fit = val;
} else {
document.getElementByClass("youquestion4").innerHTML = "Sorry, your browser does not support web storage...";
}
console.log(sessionStorage.fit);
window.open("you5.html", "_self");
}
function closeNav() {
document.getElementById("mySidenav").style.width = "0";
}
</script>
</body>
</html>