-
Notifications
You must be signed in to change notification settings - Fork 0
/
orderplaced.html
133 lines (109 loc) · 2.8 KB
/
orderplaced.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
<!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>Thank you!</title>
<style>
*{
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
margin: 0px;
padding: 0px;
}
#banner {
height: 184px;
width: 100%;
object-fit: cover;
margin-bottom: -4px;
position: fixed;
left: 0;
top: 0;
}
#logo {
width: 137px;
position: absolute;
left: 135px;
top: 85px;
cursor: pointer;
}
h2
{
color: #495b4b;
margin-top: 10px;
}
#container,#loading{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
h1{
font-weight: 700;
color: #495b4b;
margin-bottom: 15px;
}
p{
color: #333333;
margin-bottom: 30px;
opacity: 70%;
}
button{
font-size: 14px;
background-color: #495b4b;
color: white;
border: none;
padding: 20px 30px;
border-radius: 5px;
font-weight: 500;
cursor: pointer;
}
</style>
</head>
<body>
<img src="https://media.discordapp.net/attachments/707486765136740384/1013184975429980241/Checkout_Banner.png?width=1440&height=384" id="banner">
<a href="./index.html" target="_blank"><img src="https://cdn.shopify.com/s/files/1/0054/6665/2718/files/bellavita-logo_256x256_2cf787ef.png?54744" id="logo"></a>
<div id="container" style="display:none">
<h1 id="orderPlaced">Your order has been placed!</h1>
<p>An email confirmation has been sent to your registered email address</p>
<a href="./index.html"><button>Continue Shopping</button></a>
</div>
<div id="loading" class="loading">
<img src="https://cdn.discordapp.com/attachments/707486765136740384/1013180271715160144/loading-gif.gif" alt="">
<H2>Proccessing</H2>
</div>
</body>
</html>
<script>
loading(2000)
function loading(delay)
{
setTimeout(()=>
{
document.getElementById("loading").style.display="none";
document.getElementById("container").style.display="block";
},delay);
}
done(2000)
function done(delay)
{
setTimeout(()=>
{
completed(2000)
},delay);
}
function completed(delay)
{
setTimeout(()=>
{
move()
},delay);
}
function move()
{
let data=[];
localStorage.setItem("added_to_cart",JSON.stringify(data))
window.location.href="index.html"
}
</script>