-
Notifications
You must be signed in to change notification settings - Fork 0
/
party2.html
119 lines (113 loc) · 3.44 KB
/
party2.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!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="style1">
<img src="images/q6.png" width="15%" class="qcount">
<p class="questiontitle">Which dress do you prefer?</p>
<!-- <a href="party1.html" class="arrowleft"><img src="images/arrowleft.png" width="50%"></a>
<a class="arrowright"><img src="images/arrowright.png" width="50%" onclick="addPartyStyle2()"></a> -->
<figure>
<img src="images/rocker2.png" width="100%" class="imgselection2" id="rocker" onclick="choosePartyStyle2('rocker')">
</figure>
<figure>
<img src="images/sophisticated2.png" width="100%" class="imgselection2" id="sophisticated" onclick="choosePartyStyle2('sophisticated')">
</figure>
<figure>
<img src="images/edgy2.png" width="100%" class="imgselection2" id="edgy" onclick="choosePartyStyle2('edgy')">
</figure>
<figure>
<img src="images/sexy2.png" width="100%" class="imgselection2" id="sexy" onclick="choosePartyStyle2('sexy')">
</figure>
<br>
<!-- <button class="stylebutton" onclick="addPartyStyle2()" >next ›</button> -->
<img src="images/next.png" class="next" onclick="addPartyStyle2()" width="8.5%">
</div>
<!-- questions -->
<script>
rocker = false
sexy = false
edgy = false
sophisticated = false
if(sessionStorage.party2!=null){
if(sessionStorage.party2.indexOf('rocker')>=0){
rocker = true;
document.getElementById("rocker").style.boxShadow = "5px 10px 18px #cccccc";
}
if(sessionStorage.party2.indexOf('sexy')>=0){
sexy = true;
document.getElementById("sexy").style.boxShadow = "5px 10px 18px #cccccc";
}
if(sessionStorage.party2.indexOf('edgy')>=0){
edgy = true;
document.getElementById("edgy").style.boxShadow = "5px 10px 18px #cccccc";
}
if(sessionStorage.party2.indexOf('sophisticated')>=0){
sophisticated = true;
document.getElementById("sophisticated").style.boxShadow = "5px 10px 18px #cccccc";
}
}
function choosePartyStyle2(val) {
if(val=='rocker'){
rocker = !rocker
if(rocker) {
document.getElementById("rocker").style.boxShadow = "5px 10px 18px #cccccc";
} else {
document.getElementById("rocker").style.boxShadow = "";
}
}
if(val=='sophisticated'){
sophisticated = !sophisticated
if(sophisticated) {
document.getElementById("sophisticated").style.boxShadow = "5px 10px 18px #cccccc";
} else {
document.getElementById("sophisticated").style.boxShadow = "";
}
}
if(val=='edgy'){
edgy = !edgy
if(edgy) {
document.getElementById("edgy").style.boxShadow = "5px 10px 18px #cccccc";
} else {
document.getElementById("edgy").style.boxShadow = "";
}
}
if(val=='sexy'){
sexy = !sexy
if(sexy) {
document.getElementById("sexy").style.boxShadow = "5px 10px 18px #cccccc";
} else {
document.getElementById("sexy").style.boxShadow = "";
}
}
}
function addPartyStyle2(){
var styles = []
if(rocker)
styles.push("rocker")
if(edgy)
styles.push("edgy")
if(sexy)
styles.push("sexy")
if(sophisticated)
styles.push("sophisticated")
if(typeof(Storage) !== "undefined") {
sessionStorage.party2 = null
if(styles.length!=0)
sessionStorage.party2 = styles;
}
console.log(sessionStorage.party2);
window.open("you3.html", "_self");
}
</script>
</body>
</html>