-
Notifications
You must be signed in to change notification settings - Fork 0
/
congrats.html
125 lines (86 loc) · 2.38 KB
/
congrats.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
<!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>Your order is placed</title>
<style>
html,
body {
margin: 0px;
width: 100%;
height: 100%;
background-color: lavender;
}
* {
box-sizing: border-box;
}
#container {
width: 100%;
display: flex;
justify-content: center;
height: 100%;
align-items: center;
}
#box {
width: 27%;
margin: auto;
}
.image {
width: 100%;
border-radius: 5px;
}
button {
background-color: black;
color: white;
font-size: 20px;
font-weight: bold;
margin-top: 20px;
padding: 15px;
width: 100%;
border-radius: 20px;
}
#imgbox {
width: 400px;
height: 400px;
}
</style>
</head>
<body>
<div id="container">
<div id="box">
<div id="imgbox">
</div>
<a href="index.html"> <button>CONTINUE SHOPPING</button></a>
</div>
</div>
</body>
</html>
<script>
let images = [
"https://s-media-cache-ak0.pinimg.com/736x/24/1a/bd/241abd66d078720dc0b07f516eae028c--jamberry-party-jamberry-nail-wraps.jpg",
"https://1.bp.blogspot.com/-4DPaCmq8448/VvL30CcggtI/AAAAAAAALNc/ql1AKNT3tsMEDBlkp96vCis_ansmdcTQA/s1600/thank%2Byou%2Bfor%2Byour%2Border.jpg"
]
let container = document.getElementById("imgbox")
let img1 = document.createElement("img")
img1.setAttribute("class", "image")
img1.src = images[images.length - 1]
container.append(img1)
let interval;
function startslideshow() {
let count = 0;
interval = setInterval(function () {
container.innerHTML = null;
if (count == images.length) {
count = 0;
}
let img = document.createElement("img")
img.setAttribute("class", "image")
img.src = images[count]
container.append(img)
count++
}, 1000)
}
startslideshow()
</script>