-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
192 lines (160 loc) · 8.36 KB
/
index.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/radio-input.css">
<link rel="stylesheet" href="css/loader.css">
<title>Pizza app</title>
<!--script to empty the toppings when back is pressed from the billing site
-->
<script>
if(performance.navigation.type == 2){
location.reload(true);
}
</script>
</head>
<body onload="load_loader()">
<div id="loader"><img id="chef-loading" src="img/giphy.webp" alt=""></div>
<div id="main">
<br>
<div class="pizza">
<img id="base" src="img/base.png" class="img-fluid" alt="Pizza Base">
<div id="sauce"></div>
<div id="pepperoni">
<img class="pepperoni-1" src="img/peperoni-clipart.png" class="img-fluid" alt="Pizza Base">
<img class="pepperoni-2" src="img/peperoni-clipart.png" class="img-fluid" alt="Pizza Base">
<img class="pepperoni-3" src="img/peperoni-clipart.png" class="img-fluid" alt="Pizza Base">
<img class="pepperoni-4" src="img/peperoni-clipart.png" class="img-fluid" alt="Pizza Base">
<img class="pepperoni-5" src="img/peperoni-clipart.png" class="img-fluid" alt="Pizza Base">
<img class="pepperoni-6" src="img/peperoni-clipart.png" class="img-fluid" alt="Pizza Base">
</div>
<div id="olives">
<img class="olive-1" src="img/olives.png" class="img-fluid" alt="Pizza Base">
<img class="olive-2" src="img/olives.png" class="img-fluid" alt="Pizza Base">
<img class="olive-3" src="img/olives.png" class="img-fluid" alt="Pizza Base">
<img class="olive-4" src="img/olives.png" class="img-fluid" alt="Pizza Base">
<img class="olive-5" src="img/olives.png" class="img-fluid" alt="Pizza Base">
<img class="olive-6" src="img/olives.png" class="img-fluid" alt="Pizza Base">
<img class="olive-7" src="img/olives.png" class="img-fluid" alt="Pizza Base">
<img class="olive-8" src="img/olives.png" class="img-fluid" alt="Pizza Base">
<img class="olive-9" src="img/olives.png" class="img-fluid" alt="Pizza Base">
</div>
<div id="mushroom">
<img class="mushroom-1" src="img/mushroom.jpg" class="img-fluid" alt="Pizza Base">
<img class="mushroom-2" src="img/mushroom.jpg" class="img-fluid" alt="Pizza Base">
<img class="mushroom-3" src="img/mushroom.jpg" class="img-fluid" alt="Pizza Base">
<img class="mushroom-4" src="img/mushroom.jpg" class="img-fluid" alt="Pizza Base">
</div>
</div>
<div class="panel-modal">
<!-- <div style="margin-top:500px;margin-right: 20px;" class="custom-control custom-checkbox">
<input id="sauce-check" style="height: 30px;width:30px;" type="checkbox" onclick="sauce()"><br>
<label style="margin-left:-5px">Sause</label>
</div>
<div style="margin-top:500px;margin-right: 5px;" class="custom-control custom-checkbox">
<input id="pepperoni-check" style="height: 30px;width:30px;" type="checkbox" onclick="pepperoni()"><br>
<label style="margin-left:-25px">Pepperoni</label>
</div>
<div style="margin-top:500px;margin-right: 20px;" class="custom-control custom-checkbox">
<input id="olives-check" style="height: 30px;width:30px;" type="checkbox" onclick="olives()"><br>
<label style="margin-left:-5px">Olives</label>
</div>
<div style="margin-top:500px;margin-right: 20px;" class="custom-control custom-checkbox">
<input id="mushroom-check" style="height: 30px;width:30px;" type="checkbox" onclick="mushroom()"><br>
<label style="margin-left:-25px">Mushroom</label>
</div> -->
<div class="form-div">
<form class="form">
<div class="inputGroup">
<input id="sauce-check" onclick="sauce()" type="checkbox" />
<label for="sauce-check">Sauce</label>
</div>
<div class="inputGroup">
<input id="pepperoni-check" onclick="pepperoni()" type="checkbox"/>
<label for="pepperoni-check">Pepperoni</label>
</div>
<div class="inputGroup">
<input id="olives-check" onclick="olives()" type="checkbox"/>
<label for="olives-check">Olives</label>
</div>
<div class="inputGroup">
<input id="mushroom-check" onclick="mushroom()" type="checkbox"/>
<label for="mushroom-check">Mushroom</label>
</div>
<a onClick="next()" href="billing.html" type="button" class="btn next-btn"><i class="fa fa-play" style="font-size:24px;margin-left:5px ;color: white;"></i></a>
</form>
</div>
</div>
</div>
<script>
function load_loader() {
setTimeout(preloader, 3000);
}
function preloader() {
document.getElementById("loader").style.display = "none";
document.getElementById("main").style.display = "block";
}
</script>
<script>
var sauce_arr;
var pep_arr;
var olive_arr;
var mush_arr;
function sauce() {
var checkBox = document.getElementById("sauce-check");
var text = document.getElementById("sauce");
if (checkBox.checked == true){
text.style.display = "block";
sauce_arr = "Sauce";
} else {
text.style.display = "none";
sauce_arr = "";
}
}
function pepperoni() {
var checkBox = document.getElementById("pepperoni-check");
var text = document.getElementById("pepperoni");
if (checkBox.checked == true){
text.style.display = "block";
pep_arr = "Pepperoni";
} else {
text.style.display = "none";
pep_arr = "";
}
}
function olives() {
var checkBox = document.getElementById("olives-check");
var text = document.getElementById("olives");
if (checkBox.checked == true){
text.style.display = "block";
olive_arr = "Olives";
} else {
text.style.display = "none";
olive_arr = "";
}
}
function mushroom() {
var checkBox = document.getElementById("mushroom-check");
var text = document.getElementById("mushroom");
if (checkBox.checked == true){
text.style.display = "block";
mush_arr = "Mushroom";
} else {
text.style.display = "none";
mush_arr = "";
}
}
function next(){
jsarray = [sauce_arr, pep_arr, olive_arr, mush_arr];
sessionStorage.setItem("jsArray", JSON.stringify(jsarray));
}
</script>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
</body>
</html>