-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuy.html
34 lines (31 loc) · 986 Bytes
/
buy.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>thanks page</title>
<link rel="stylesheet" href="buy.css">
</head>
<body>
<div class="container">
<button type="submit" class="btn" onclick="openpopup()">Complete Purchase!</button>
<form action="index.html">
<div class="popup" id="popup">
<img src="images/tick.png">
<h2>Thank You!</h2>
<p>Your Purchase Has Been Successfully Complited, Thank You!</p>
<button type="submit" onclick="closepopup()">OK</button>
</div>
</form>
</div>
<script>
let popup = document.getElementById("popup");
function openpopup(){
popup.classList.add("open-popup");
}
function closepopup(){
popup.classList.remove("open-popup");
}
</script>
</body>
</html>