-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpaymentSetTimeout.html
94 lines (80 loc) · 1.78 KB
/
paymentSetTimeout.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#main {
padding: 0;
margin: 0;
box-sizing: border-box;
}
#container {
box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
width: 22%;
margin: auto;
height: 600px;
border-radius: 15px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 50px;
}
#container>div {
border: 10px solid orange;
padding: 20px 20px;
width: 100px;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
}
#container>div>p {
text-align: center;
/* border: 2px solid red; */
font-size: 30px;
}
#container>div+p {
font-weight: bold;
}
#container>p:nth-child(3) {
position: relative;
top: 150px;
font-size: 12px;
color: gray;
}
</style>
</head>
<body>
<div id="main">
<div id="container">
<div>
<p id="countDown">0</p>
</div>
<p>Processing Payment</p>
<p>Please do not press back or close the app</p>
</div>
</div>
</body>
</html>
<script>
let count = 0;
let id;
setinter()
function setinter() {
// if (id) {
// }
id = setInterval(() => {
count++
if (count == 7) {
window.location.href = "successful.html"
count = 0
clearInterval(id)
}
document.querySelector("#countDown").innerText = count
}, 1000)
}
</script>