-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuyProductsPage.html
361 lines (290 loc) · 13.5 KB
/
BuyProductsPage.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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
<!DOCTYPE html>
<html lang ="en">
<head>
<meta charset = "UTF-8" ;>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" type="text/css" href="ExternalStyleSheet.css">
<link rel="stylesheet" type="text/css" href="BuyProductsCSS.css">
<title>Buy Movies, TV Series, Animes You Love!</title>
<!-- Style for the Form & to overwrite some styles from the ExternalStyleSheet -->
<style>
input[type=text], select, textarea{
background-color: #F0FFFF;
width: 100%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
margin-top: 6px;
margin-bottom: 16px;
resize: vertical;
}
input[type=email], select, textarea{
background-color: #F0FFFF;
width: 100%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
margin-top: 6px;
margin-bottom: 16px;
resize: vertical;
}
input[type=tel], select, textarea{
background-color: #F0FFFF;
width: 100%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
margin-top: 6px;
margin-bottom: 16px;
resize: vertical;
}
input[type=number], select, textarea{
background-color: #F0FFFF;
width: auto;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
margin-top: 6px;
margin-bottom: 16px;
resize: vertical;
}
.signupbtn {
background-color: #2196F3;
color: white;
padding: 12px 20px;
border: none;
cursor: pointer;
width: 20%;
opacity: 0.9;
border-radius: 10px;
}
.cancelbtn {
background-color: #E50914;
color: white;
padding: 12px 20px;
border: none;
cursor: pointer;
width: 20%;
opacity: 0.9;
border-radius: 10px;
}
.placeorderbtn {
background-color: #2196F3;
color: white;
padding: 12px 20px;
border: none;
cursor: pointer;
width: 20%;
opacity: 0.9;
border-radius: 10px;
}
a{
display: block;
text-align: center;
}
.end {
height: 18cm;
}
.fa-facebook {
margin-left: 28cm;
}
form.example button, form.search button {
width: 1.8cm;
margin-top: -1.56cm;
margin-left: 6.3cm;
}
.web_name {
margin-left: 0cm;
}
.navbar {
margin-left: 0cm;
}
.logo{
margin-left: -25cm;
margin-top: -2.3cm;
}
form.search input[type=text] {
margin-left: 24cm;
margin-top: -1.25cm;
}
.new{
margin-left: 0.5cm;
}
form.search button{
margin-top: -1.55cm;
margin-left: 30cm;
}
.theinvoice{
margin-left: 10px;
}
.step_2{
margin-left: 10px;
}
</style>
<script>
function testVariable() {
debugger
var strText = document.getElementById("txtName").value;
var strText1 = document.getElementById("txtEmail").value;
var strText2 = document.getElementById("txtTelephone").value;
var strText3 = document.getElementById("txtAddress").value;
var strText4 = document.getElementById("txtItem").value;
var strText5 = document.getElementById("txtQuantity").value;
var strText6 = document.getElementById("txtTotal").value;
document.getElementById("p1").innerHTML = "Name: " + strText;
document.getElementById("p2").innerHTML = "Email: " + strText1;
document.getElementById("p3").innerHTML = "Telephone: " + strText2;
document.getElementById("p4").innerHTML = "Address: " + strText3;
document.getElementById("p5").innerHTML = "Item/Items: " + strText4;
document.getElementById("p6").innerHTML = "Quantity: " + strText5;
document.getElementById("p7").innerHTML = "Total Bill: " + strText6;
}
</script>
</head>
<body>
<!-- FIXED NAV BAR Developer: Thashi Maleesa Godahewa -->
<h1 class="web_name"><br>
<img class="logo" alt="FantasyFlix" src="Items/FantasyFlix.png">
</h1>
<div class="navbar">
<a href="main.html" class="new">HOME</a>
<a href="Gallery.html">GALLERY</a>
<a href="Quiz.html">QUIZ</a>
<a href="BuyProductsPage.html">BUY</a>
<a href="QueryForm.html">CONTACT</a>
<div class="nav search">
<form class="search" action="/action_page.php" style="max-width:300px">
<input type="text" class="searchbar" placeholder="Search..." name="search2">
<button type="submit"><i class="fa fa-search"></i></button>
</form>
</div>
</div>
<div class='main'>
<!-- Start of the Header -->
<div id="header-bg">
<div class="scroll-downs"><a href="#items_to_purchase">
</a>
</div>
</div>
</div>
<!-- End of the Header -->
<!-- Start of the Cart -->
<div id="items_to_purchase"></div>
<div id="cart-area">
<div id="cart-title">My Cart</div>
<div id="cart-monitor">
</div>
</div>
<!-- End of the Cart -->
<!-- Start of the Form -->
<div id="the_form" class="step_2">
<form class="step_2-content" id="myForm">
<div class="container">
<h1>Step 2</h1>
<p><i>Please fill the following "Compulsory Fields". Once you complete filling them, hit the submit button. A confimation will pop-up.</i></p>
<hr>
<label for="name"><b>Full Name</b></label>
<input id="name" type="text" placeholder="Full Name" name="name" required>
<label for="address"><b>Address</b></label>
<input id="address" type="text" placeholder="Your Address" name="address" required>
<label for="email"><b>Email</b></label>
<input id="email" type="email" placeholder="ex: example@email.com" name="email" required>
<label for="tele"><b>Telephone</b></label>
<input id="tele" type="tel" placeholder="ex: +XXXXXXXXX" name="telephone" required>
<hr>
<br>
<label for="additional"><b>Additional Information</b></label>
<textarea id="additional" placeholder="Write something..." name="additionalinfo" style="width:1200px; height:700px"></textarea>
<br>
<label>
<input type="checkbox" checked="checked" name="Terms and Conditons" style="margin-bottom:15px"><b>Terms and Conditions</b>
</label>
<div class="clearfix">
<button type="button" onclick="document.getElementById('id01').style.display='none'"
class="cancelbtn">Cancel
</button>
<button type="submit" class="signupbtn" onclick="confirmation()">Submit</button>
</div>
</div>
</form>
</div>
<!-- End of the Form -->
<!-- The Invoice -->
<div id="the_invoice" class="theinvoice">
<form class="invoice_form" id="InvoiceForm">
<p style="color:#000d1a; font-size: 40px;">Step 3: You're almost there! 😆</p>
<p style="color:#000d1a; font-size: 20px;">Place your order by giving the following details.</p>
<p style="color:#000d1a; font-size: 20px;">Finally click on the "Place Order" button. Then you're done!!! You can see your bill. 😊</p>
<br>
<label for="nameonpackage"><b>Name (This will be on your package.)</b></label>
<input type="text" name="Name" id="txtName" placeholder="Name">
<label for="emailonpackage"><b>Email (This will be on your package/In case if we need to contact you.)</b></label>
<input type="email" name="Email" id="txtEmail" placeholder="Email">
<label for="telephonenumber"><b>Telephone (In case if we need to contact you.)</b></label>
<input type="tel" name="Telephone" id="txtTelephone" placeholder="Telephone">
<label for="sendingaddress"><b>Address (The one that your items wants to be sent.)</b></label>
<input type="text" name="Address" id="txtAddress" placeholder="Address">
<label for="choosenitems"><b>Item/Items you have selected (If there're multiple items seperate the names with a comma/,):</b></label>
<input type="text" name="Item" id="txtItem" placeholder="Items">
<label for="quantityofitems"><b>Total number of items you have selected:</b></label>
<input type="number" name="Quantity" id="txtQuantity" placeholder="Quantity of Items">
<br>
<label for="finalbilltotal"><b>Total shown in "Cart Checkout" (*ADD ONLY THE VALUE WITHOUT THE DOLLAR SIGN/$):</b></label>
<input type="number" name="FinalTotal" id="txtTotal" placeholder="The Total">
<br>
<input type="button" class="placeorderbtn" value="Place Order" id="btnSubmit" onclick="testVariable()">
</form>
</div>
<div>
<p id="p1"></p>
<p id="p2"></p>
<p id="p3"></p>
<p id="p4"></p>
<p id="p5"></p>
<p id="p6"></p>
<p id="p7"></p>
</div>
<!-- End of the Invoice -->
<!-- Start of the Link to the Page Editor -->
<div id="the_editor" class="page_editor">
<hr style="height:2px;border-width:0;color:blue;background-color:#55ACEE">
<a class="editor" href="Supun.html" target="_blank">Edited By: Supun Wijesooriya</a>
<p style="text-align:center;">Copyright © 2021 All rights reserved</p>
</div>
<!-- End of the Link to the Page Editor -->
<!-- Start of the Footer Developer: Thashi Maleesa Godahewa -->
<div class="end">
<a href="https://www.facebook.com/" class="fa fa-facebook" target="_blank"></a>
<a href="https://twitter.com/?lang=en" class="fa fa-twitter" target="_blank"></a>
<a href="https://lk.linkedin.com/" class="fa fa-linkedin" target="_blank"></a>
<a href="https://www.instagram.com/accounts/login/" class="fa fa-instagram" target="_blank"></a>
<h1 style="color:white; text-align: center; margin-top: -0.5cm;">Subscribe</h1>
<p style="color:white; text-align: center;">Subscribe to Website mailing list to receive updates.</p>
<form class="example" action="/action_page.php" style="margin:auto;max-width:300px">
<input type="text" placeholder="Enter Email Address ....." name="search2">
<button type="submit">Subscribe</button>
</form>
<br>
<a href="main.html" target="_blank" style="margin-left: 0cm; color: blue;">Home</a> <br>
<a href="Sitemap.html" target="_blank" style="margin-left: 0cm; color: blue;">Sitemap</a><br>
<a href="QueryForm.html" target="_blank" style="margin-left: 0cm; color: blue;">Contact</a>
<p style="color: white; margin-top: 1cm; text-align: center; font-size:13px;">
<u>This website uses cookies</u><br>
Our website and our third party partners use cookies and related technologies to improve and customize the browsing experience for optimized ad delivery, social media engagement <br>
and analytics. By clicking 'I Agree' below, you consent to our use of cookies. You may disable cookies in your browser settings at any time. For more information, please see our <a href="#">Privacy Policy.</a></p>
<br>
<hr>
<p style="color: white; text-align: center; font-family: Arial, Helvetica, sans-serif;">Terms and Conditions | Privacy Policy | Accessibility Statement | Transparency in Supply Chains Act</p>
<p style="color: white; text-align: center; font-family: Arial, Helvetica, sans-serif;">Supplier Code of Conduct | Marketing to Children | Do Not Sell My Information |</p>
<p style="color: white; text-align: center; font-family: Arial, Helvetica, sans-serif;">Copyright © 2021 Fantasy<i>Flix</i></p>
</div>
<!-- End of the Footer -->
<script src="BuyProductsJS.js"></script>
</body>
</html>