-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpayment.html
273 lines (236 loc) · 8.57 KB
/
payment.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
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html lang="zxx">
<head>
<title>Hogwarts Cafe | Rain</title>
<!-- Meta tag Keywords -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8" />
<meta name="keywords" content="Snacks Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template, Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design" />
<script>
addEventListener("load", function () {
setTimeout(hideURLbar, 0);
}, false);
function hideURLbar() {
window.scrollTo(0, 1);
}
</script>
<!--// Meta tag Keywords -->
<!-- Custom-Files -->
<link rel="stylesheet" href="css/bootstrap.css">
<!-- Bootstrap-Core-CSS -->
<link rel="stylesheet" href="css/smoothbox.css" type='text/css' media="all" />
<!-- gallery light box -->
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<!-- Style-CSS -->
<link rel="stylesheet" href="css/fontawesome-all.css">
<!-- Font-Awesome-Icons-CSS -->
<!-- //Custom-Files -->
<!-- Web-Fonts -->
<link href="//fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i&subset=latin-ext"
rel="stylesheet">
<link href="//fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i&subset=latin-ext"
rel="stylesheet">
<!-- //Web-Fonts -->
</head>
<body>
<!-- header -->
<!-- about -->
<div class="about py-5" id="about" style="font-family: papyrus">
<div class="container py-xl-5 py-lg-3">
<h3 class="title text-center text-dark mb-sm-5 mb-4">
<span style="font-family: papyrus">Your Cart</span></h3>
<div class="row about-bottom-w3l text-center pt-lg-5">
<div class="col-sm-6 about-grid">
<div class="about-grid-main">
<table class="table">
<thead>
<tr>
<th scope="col">Sr No.</th>
<th scope="col">Items</th>
<th scope="col">Payment</th>
</tr>
</thead>
<tbody id="cartTable">
<!--JS Code-->
</tbody>
</table>
</div>
</div>
<div class="col-sm-6 about-grid mt-sm-0 mt-4">
<div class="about-grid-main">
<h4 class="mb-3" style="font-family: papyrus; color:black;font-size: 26px;">Pay Us through
<i class="fas fa-long-arrow-alt-right ml-3"></i> </h4>
<img src="images/QR.png" alt="" class="img-fluid">
<h4 style="font-family: papyrus; color:black;">+91-8080888995</h4>
<!-- <a href="#" class="button-w3ls mt-4" data-toggle="modal" data-target="#exampleModalCenter1">Read More
<i class="fas fa-long-arrow-alt-right ml-3"></i>
</a> -->
</div>
</div>
</div>
<button onclick="getSelectedCheckboxes()" class="btn btn-danger" id="btn_test" style="position: absolute; left: 50%;
transform: translateX(-50%); margin-top: 10px;">
Copy Cart to Clipboard
</button>
</div>
</div>
<!-- //about -->
<!-- footer -->
<footer class="pt-5">
<div class="container py-xl-5 py-lg-3">
<div class="row footer-grids py-4">
<div class="col-lg-4 footer-grid text-left">
<div class="footer-logo">
<h2 class="mb-3">
<a class="logo text-white" href="index.html">
<img src="images/hogwartsLogo.jpg" alt="" class="img-fluid"
style="border-radius: 50%; height: 75px; width: 75px;"> Hogwarts Cafe</a>
</h2>
</div>
</div>
<div class="col-lg-2 col-6 footer-grid"></div>
<div class="col-lg-2 col-6 footer-grid"></div>
<div class="col-lg-2 col-6 footer-grid my-lg-0 my-4">
<h3 class="mb-sm-4 mb-3 pb-3">Home</h3>
<ul class="list-unstyled">
<li>
<a href="index.html">Index</a>
</li>
<li class="my-2">
<a class="scroll" href="#about">About</a>
</li>
<li class="my-2">
<a class="scroll" href="#gallery">Gallery</a>
</li>
<li>
<a class="scroll" href="#contact">Contact Us</a>
</li>
</ul>
</div>
<div class="col-lg-2 col-6 footer-grid footer-contact">
<h3 class="mb-sm-4 mb-3 pb-3"> Contact Us</h3>
<ul class="list-unstyled">
<li>
086025 87838
</li>
<li class="mt-2">
<a href="https://www.instagram.com/cafehogwarts/">@cafehogwarts</a>
</li>
</ul>
</div>
</div>
</div>
<!-- copyright -->
<div class="copy_right">
<p class="text-center text-white py-sm-4 py-3">©2018. All rights reserved | Design by
<a href="https://www.linkedin.com/in/arpit621/"> Arpit </a> and <a href="https://www.linkedin.com/in/chauhannishh/"> Nishi </a>
</p>
</div>
<!-- //copyright -->
</footer>
<!-- //footer -->
<script>
var retrievedObject = localStorage.getItem('testObject');
retrievedObject = JSON.parse(retrievedObject);
var count = 1;
var cpingText = "";
var totalPrice = 0;
for (var key in retrievedObject) {
if (retrievedObject.hasOwnProperty(key)) {
var input = "<tr><td scope='row'>"+count+"</td><td>"+key+"</td><th>"+retrievedObject[key]+"</th></tr>";
cpingText += count + "." + key + " "
count++;
totalPrice += parseInt(retrievedObject[key]);
document.getElementById('cartTable').insertAdjacentHTML('beforeend', input);
}
}
var estimatedTime = 20 + count*2;
var zinput = "<tr><td></td><td>Total: </td><th>"+totalPrice+"</th></tr>";
document.getElementById('cartTable').insertAdjacentHTML('beforeend', zinput);
var zainput = "<tr><td></td><td>Estimated Time: </td><th>"+estimatedTime+" minutes</th></tr>";
document.getElementById('cartTable').insertAdjacentHTML('beforeend', zainput);
console.log(cpingText);
function getSelectedCheckboxes(chkboxName) {
// Create a dummy input to copy the string array inside it
var dummy = document.createElement("input");
// Add it to the document
document.body.appendChild(dummy);
// Set its ID
dummy.setAttribute("id", "dummy_id");
// Output the array into it
document.getElementById("dummy_id").value=cpingText;
// Select it
dummy.select();
// Copy its contents
document.execCommand("copy");
// Remove it as its not needed anymore
document.body.removeChild(dummy);
}
</script>
<!-- Js files -->
<!-- JavaScript -->
<script src="js/jquery-2.2.3.min.js"></script>
<!-- Default-JavaScript-File -->
<!-- banner slider -->
<script src="js/responsiveslides.min.js"></script>
<script>
// Retrieve the object from storage
// You can also use "$(window).load(function() {"
$(function () {
// Slideshow 4
$("#slider3").responsiveSlides({
auto: true,
pager: true,
nav: false,
speed: 500,
namespace: "callbacks",
before: function () {
$('.events').append("<li>before event fired.</li>");
},
after: function () {
$('.events').append("<li>after event fired.</li>");
}
});
});
</script>
<!-- //banner slider -->
<!-- password-script -->
<script>
window.onload = function () {
document.getElementById("password1").onchange = validatePassword;
document.getElementById("password2").onchange = validatePassword;
}
function validatePassword() {
var pass2 = document.getElementById("password2").value;
var pass1 = document.getElementById("password1").value;
if (pass1 != pass2)
document.getElementById("password2").setCustomValidity("Passwords Don't Match");
else
document.getElementById("password2").setCustomValidity('');
//empty string means no validation error
}
</script>
<!-- //password-script -->
<!-- gallery light box -->
<script src="js/smoothbox.jquery2.js"></script>
<!-- //gallery light box -->
<!-- smooth scrolling -->
<script src="js/SmoothScroll.min.js"></script>
<!-- //smooth scrolling -->
<!-- move-top -->
<script src="js/move-top.js"></script>
<!-- easing -->
<script src="js/easing.js"></script>
<!-- necessary snippets for few javascript files -->
<script src="js/snacks.js"></script>
<script src="js/bootstrap.js"></script>
<!-- Necessary-JavaScript-File-For-Bootstrap -->
<!-- //Js files -->
</body>
</html>