forked from ArtezzaIT/Sharkphin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaudit.html
More file actions
49 lines (49 loc) · 1.58 KB
/
Copy pathaudit.html
File metadata and controls
49 lines (49 loc) · 1.58 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
<html>
<head>
<title>Search Submitted</title>
<style>
body {
background-image: url("/WAVE-background.jpg");
background-size: cover;
}
div {
display: table; /* Makes the div only as wide as its content */
background-color: rgba(249, 249, 249, 0.8); /* Slightly transparent background */
border: 1px solid #ccc;
padding: 10px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
#imagecredit {
position:absolute;
bottom: 10px;
right: 10px;
}
</style>
</head>
<body>
<div>
<p>Please wait on this page. The audit status will be shown below:</p>
<p>##RESULTMESSAGE##</p>
<script>
const status = "##STATUS##";
if (status === "completed") {
setTimeout(function() {
window.location.href = "/wave"
}, 10000);
} else if (status === "ongoing") {
setTimeout(function() {
window.location.reload();
}, 5000);
} else{
console.log("A server side error has occured.");
setTimeout(function() {
window.location.href = "/wave"
}, 10000);
}
</script>
</div>
<div id="imagecredit">
<p style="font-size: 75%;">Background image courtesy of <a href="https://technat.codepy.org/">Technical Nature Photos</a>. All rights reserved.</p>
</div>
</body>