-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloading.html
More file actions
60 lines (56 loc) · 1.54 KB
/
Copy pathloading.html
File metadata and controls
60 lines (56 loc) · 1.54 KB
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
<!DOCTYPE html>
<html>
<head>
</head>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #ffffff;
}
.page {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
font-size: 30px;
font-weight: bold;
color: #555;
}
</style>
<body>
<div class="page">
<img src="delivery-scooter.gif" alt="" style="height: 200px;width: 200px;">
<div>
YOUR ORDER IS ON THE WAY
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function () {
setTimeout(function() {
window.location.href = 'home.html';
}, 5000);
func();
});
async function func(){
try{
const response = await fetch('http://localhost:8080/eatzone/Orderconfirmed',{
method: 'POST',
headers: {
'Content-Type': 'text/plain'
}
});
console.log(response);
}
catch(err){
console.log(err);
}
}
</script>
</body>
</html>