-
Notifications
You must be signed in to change notification settings - Fork 0
/
date1.html
101 lines (93 loc) · 2.43 KB
/
date1.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/rocker.png" width="100%" class="imgselection2" id="rocker" onclick="chooseStyle3('rocker')">
</figure>
<figure>
<img src="images/sexy.png" width="100%" class="imgselection2" id="sexy" onclick="chooseStyle3('sexy')">
</figure>
<figure>
<img src="images/edgy.png" width="100%" class="imgselection2" id="edgy" onclick="chooseStyle3('edgy')">
</figure>
<br>
<button class="stylebutton" onclick="addStyle3()">done ›</button>
</div>
<!-- questions -->
<script>
function openNav() {
document.getElementById("mySidenav").style.width = "16vw";
}
function closeNav() {
document.getElementById("mySidenav").style.width = "0";
}
rocker = false
sexy = false
edgy = false
function chooseStyle3(val) {
if(val=='rocker'){
rocker = !rocker
if(rocker)
document.getElementById("rocker").style.boxShadow = "10px 20px 30px lightblue";
else {
document.getElementById("rocker").style.boxShadow = "";
}
}
if(val=='sexy'){
sexy = !sexy
if(sexy)
document.getElementById("sexy").style.boxShadow = "10px 20px 30px lightblue";
else {
document.getElementById("sexy").style.boxShadow = "";
}
}
if(val=='edgy'){
edgy = !edgy
if(edgy)
document.getElementById("edgy").style.boxShadow = "10px 20px 30px lightblue";
else {
document.getElementById("edgy").style.boxShadow = "";
}
}
}
function addStyle3(){
var styles = []
if(rocker)
styles.push("rocker")
if(edgy)
styles.push("edgy")
if(sexy)
styles.push("sexy")
if(typeof(Storage) !== "undefined") {
sessionStorage.style3 = null
if(styles.length!=0)
sessionStorage.style3 = styles.join();
}
console.log(sessionStorage.style3);
//window.open("results.html", "_self");
}
</script>
</body>
</html>