-
Notifications
You must be signed in to change notification settings - Fork 0
/
vacation1.html
101 lines (93 loc) · 2.52 KB
/
vacation1.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!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>
<!-- header -->
<div id="mySidenav" class="sidenav">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<a href="index.html">Home</a>
<a href="about.html">Why Us</a>
<a href="gift.html">Gift it</a>
<a href="https://www.etsy.com">Shop</a>
</div>
<div class="head">
<span onclick="openNav()">+</span>
<a href="you.html">For You</a>
</div>
<!-- header -->
<!-- questions -->
<div class="style1">
<p>Which style do you prefer?</p>
<figure>
<img src="images/minimalist.png" width="100%" class="imgselection2" id="minimalist" onclick="chooseStyle4('minimalist')">
</figure>
<figure>
<img src="images/preppy.png" width="100%" class="imgselection2" id="preppy" onclick="chooseStyle4('preppy')">
</figure>
<figure>
<img src="images/casual.png" width="100%" class="imgselection2" id="casual" onclick="chooseStyle4('casual')">
</figure>
<br>
<button class="stylebutton" onclick="addStyle4()" >done ›</button>
</div>
<!-- questions -->
<script>
function openNav() {
document.getElementById("mySidenav").style.width = "16vw";
}
function closeNav() {
document.getElementById("mySidenav").style.width = "0";
}
minimalist = false
preppy = false
casual = false
function chooseStyle4(val) {
if(val=='minimalist'){
minimalist = !minimalist
if(minimalist)
document.getElementById("minimalist").style.boxShadow = "10px 20px 30px lightblue";
else {
document.getElementById("minimalist").style.boxShadow = "";
}
}
if(val=='preppy'){
preppy = !preppy
if(preppy)
document.getElementById("preppy").style.boxShadow = "10px 20px 30px lightblue";
else {
document.getElementById("preppy").style.boxShadow = "";
}
}
if(val=='casual'){
casual = !casual
if(casual)
document.getElementById("casual").style.boxShadow = "10px 20px 30px lightblue";
else {
document.getElementById("casual").style.boxShadow = "";
}
}
}
function addStyle4(){
var styles = []
if(minimalist)
styles.push("minimalist")
if(casual)
styles.push("casual")
if(preppy)
styles.push("preppy")
if(typeof(Storage) !== "undefined") {
sessionStorage.style4 = null
if(styles.length!=0)
sessionStorage.style4 = styles.join();
}
console.log(sessionStorage.style4);
//window.open("results.html", "_self");
}
</script>
</body>
</html>