-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckout.html
227 lines (194 loc) · 10.8 KB
/
checkout.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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<!DOCTYPE html>
<html lang="en">
<head>
<!--Title(begin)-->
<title>Checkout</title>
<!--Title(end)-->
<link rel="stylesheet" href="styles/checkout.css">
<link rel="stylesheet" href="styles/header.css">
<link rel="stylesheet" href="styles/footer.css">
<script src="scripts/header.js"></script>
</head>
<body>
<!--Blur wrapper to blur the entire screen when in modal-->
<div id="blurWrapper">
<!--Navigation Bar(begin)-->
<header>
<a href="home.html"><img src="images/sideLogo.png" class="logo"></a>
<nav>
<ul class="nav_links">
<li><a class="nav-link" href="home.html#about-us">About Us</a></li>
<li><a class="nav-link" href="ContactUs.html">Contact</a></li>
<li>
<!--Dropdown for games-->
<div class="dropdown">
<button class="dropdownBtn">Games</button>
<div class="dropdown-menu">
<table class="dropdown-links">
<tr>
<td><a href="AradhayaMukhraiya.html" class="dropdown-link">Avillius
Adventure</a></td>
</tr>
<tr>
<td><a href="DhruvanChandrupatla.html" class="dropdown-link">Artificial
Apocolypse</a></td>
</tr>
<tr>
<td><a href="RajatPatel.html" class="dropdown-link">The Locked Laptop</a></td>
</tr>
<tr>
<td><a href="AdishKuthyarSupreeth.html" class="dropdown-link"></span>Quantum
Computer</a></td>
</tr>
</table>
</div>
</div>
<!--Dropdown end-->
</nav>
<form action="checkout.html"><button class="buy" href="">BUY NOW</button></form>
</header>
<!--Navigation Bar(end)-->
<div class="banner">
<div class="content">
<h1>Select a game(s)</h1>
<!--Checkout form(start)-->
<main class="container">
<div class="gamesContainer" id="gamesContainer">
<!--Error message displays when user doesn't pick any games-->
<p style="color: #FF0000; opacity: 0;" id="errorMsg">Please select at least one game.</p>
<label for="ArtificialApocalypse-select" class="games ArtificialApocalypse">
<input type="checkbox" name="gameContainer" id="ArtificialApocalypse-select"
value="ArtificialApocalypse-select" class="game-selector"
onchange="selectorClick('Artificial Apocalypse')">
<!--Checkbox for ArtificialApocalypse-->
<div class="ArtificialApocalypse-description">
<h3 class="game-title">Artificial Apocalypse</h3>
<small class="game-description">
</small>
</div>
<section class="price ArtificialApocalypse-price">
<h3 class="price">$9.99</h3>
</section>
</label>
<label for="AvilliusAdventure-select" class="games AvilliusAdventure">
<input type="checkbox" name="gameContainer" id="AvilliusAdventure-select"
value="ArtificialApocalypse-select" class="game-selector"
onchange="selectorClick('Avillius Adventure')"> <!--Checkbox for ArtificialApocalypse-->
<div class="AvilliusAdventure-description">
<h3 class="game-title">Avillius Adventure</h3>
<small class="game-description">
</small>
</div>
<section class="price AvilliusAdventure-price">
<h3 class="price">$9.99</h3>
</section>
</label>
<label for="LockedLaptop-select" class="games LockedLaptop">
<input type="checkbox" name="gameContainer" id="LockedLaptop-select"
value="LockedLaptop-select" class="game-selector"
onchange="selectorClick('Locked Laptop')"> <!--Checkbox for LockedLaptop-->
<div class="LockedLaptop-description">
<h3 class="game-title">The Locked Laptop</h3>
<small class="game-description">
</small>
</div>
<section class="price LockedLaptop-price">
<h3 class="price">$9.99</h3>
</section>
</label>
<label for="QuantumComputer-select" class="games QuantumComputer">
<input type="checkbox" name="gameContainer" id="QuantumComputer-select"
value="QuantumComputer-select" class="game-selector"
onchange="selectorClick('Quantum Computer')"> <!--Checkbox for QuantumComputer-->
<div class="QuantumComputer-description">
<h3 class="game-title">Quantum Computer</h3>
<small class="game-description">
</small>
</div>
<section class="price QuantumComputer-price">
<h3 class="price">$9.99</h3>
</section>
</label>
</div>
<!--Checkout Container (start)-->
<div class="checkout-container" id="checkout-container">
<div class="billing">
<div class="billing-description total"> <!--Total Price-->
<h4>Total</h4>
</div>
<h3 class="billing-amount" id="total-price">AUD $0</h3>
</div>
<div class="billing">
<div class="billing-description discount"> <!--Discounted Price-->
<h4>Final Price</h4>
<small class="billing-text">Price after discount. <a
style="color: #ffffff; text-decoration: underline"
href="home.html#Pricing">Learn More</a></small>
</div>
<h3 class="billing-amount" id="discount-price">AUD $0</h3>
</div>
<button class="checkout-btn" id="checkout-btn"
onclick="checkoutClick()">Checkout</button><!--Checkout button-->
</div>
<!--Checkout Container (end)-->
</main>
<!--Checkout form(end)-->
</div>
</div>
<!--Modal Confirm (start)-->
<div class="modal-box" id="confirm">
<i><img src="images/cart.svg" style="width: 100px; height: auto"></i>
<h2>Confirm Purchase</h2>
<h3>Do you confirm the purchase Artifical Apocalypse?</h3>
<div class="buttons">
<button id="close-btn" onclick="closeModal()">No</button>
<button id="yes-btn" onclick="loadingModal()">Yes</button>
</div>
</div>
<!--Modal Confirm (end)-->
<!--Modal Payment (start)-->
<div class="modal-box" id="payment">
<i><img src="images/cart.svg" style="width: 100px; height: auto"></i>
<h2>Payment Details</h2>
<form onsubmit="return confirm()">
<label for="cname" class="payLabel">Name on Card</label>
<input type="text" id="cname" placeholder="John More Doe" required>
<label for="creditcardnum" class="payLabel">Credit Card Number</label>
<input type="number" id="creditcardnum" placeholder="1111222233334444" required>
<label for="expdate" class="payLabel">Expiration Date</label>
<input type="date" id="expdate" placeholder="1111222233334444" required>
<div class="buttons">
<button id="yes-btn">Purchase</button>
</div>
</form>
</div>
<!--Modal Payment (end)-->
<!--Footer (begin)-->
<footer>
<div class="footer-container">
<!--Social icons (start)-->
<div class="social-icons">
<a class="social-button" href="https://youtube.com"><img src="images/youtube.svg" width="50px" height="50px"></a>
<a class="social-button" href="https://facebook.com"><img src="images/facebook.svg" width="50px" height="50px"></a>
<a class="social-button" href="https://twitter.com"><img src="images/twitter.svg" width="50px" height="50px"></a>
<a class="social-button" href="https://linkedin.com"><img src="images/linkedin.svg" width="50px" height="50px"></a>
<a class="social-button" href="https://gmail.com"><img src="images/email.svg" width="50px" height="50px"></a>
</div>
<!--Social icons (end)-->
<div class="footerNavigation">
<ul>
<li><a href="home.html">Home</a></li>
<li><a href="home.html#contact">Contact Us</a></li>
<li><a class="nav-link" href="home.html#about-us">About Us</a></li>
<li><a class="nav-link" href="home.html#Pricing">Pricing</a></li>
<li><a href="checkout.html">Checkout</a></li>
</ul>
</div>
</div>
<div class="copyrightsection">
<p>©Multiversal Games 2023, Copyright all rights reserved</p>
</div>
</footer>
<!--Footer (end)-->
<script src="scripts/checkout.js"></script>
</body>