-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
114 lines (105 loc) · 3.03 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SMS Classifier</title>
<!-- Favicon -->
<link rel="icon" type="image/png" href="images/fevicon.png">
<!-- CSS -->
<style>
/* Reset default margin and padding */
body, html {
margin: 0;
padding: 0;
height: 100%;
}
/* Set full height for the body */
body {
display: flex;
justify-content: center;
align-items: center;
background-color: black; /* Set the background color to black */
font-family: Arial, sans-serif;
color: #fff; /* Set text color to white */
}
/* Set max-width and responsive scaling for content */
.container {
max-width: 100%;
padding: 20px;
box-sizing: border-box;
text-align: center;
}
/* Style the loading screen content */
#loading {
opacity: 1; /* Set initial opacity to 1 for immediate visibility */
}
.pyramid {
width: 100%;
max-width: 400px; /* Adjust the max-width as needed */
height: auto;
display: block;
margin: 0 auto;
}
/* Loading bar styles */
.loading-bar {
width: 100%;
height: 10px;
background-color: #333;
margin-top: 20px;
position: relative;
overflow: hidden;
}
.progress-bar {
width: 0%;
height: 100%;
background-color: orange;
position: absolute;
animation: progressAnimation 10s linear forwards;
}
/* Apply glow effect to the progress bar */
@keyframes progressAnimation {
0% {
width: 0%;
}
100% {
width: 100%;
}
}
</style>
</head>
<body>
<!-- Loading Screen Content -->
<div class="container" id="loading">
<h1 id="pre_title" style="opacity: 0;">SMS Classifier</h1>
<!-- Updated SVG code with glowing yellow stroke -->
<svg class="pyramid" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600">
<path d="M533.7 342.3l-81.3 155.3 -66-364L533.7 342.3zM386.3 133.7l-182 260 248 104" style="fill:none;stroke-linejoin:round;stroke-width:2;stroke:yellow;" />
<path d="M386.3 348.3l147.3-6 -329.3 51.3L386.3 348.3zM386.3 133.7v214.7l66 149.3" style="fill:none;stroke-linejoin:round;stroke-width:0.5;stroke:yellow;" />
</svg>
<!-- Loading bar -->
<div class="loading-bar">
<div class="progress-bar"></div>
</div>
</div>
<!-- JavaScript -->
<script src="https://cdn.jsdelivr.net/walkway/0.0.1/walkway.min.js"></script>
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
var svg = new Walkway({
selector: '.pyramid',
duration: 5500,
easing: 'Linear',
}).draw(function() {
console.dir('Finished Pyramid');
setTimeout(function() {
$('#pre_title').fadeTo(1000, 1);
$('.progress-bar').animate({width: '100%'}, 10000, function() {
window.location.href = "https://sms-spam-detection-smerpnxelfzzjdw5wjsesu.streamlit.app/";
});
}, 1000);
});
});
</script>
</body>
</html>