-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (54 loc) · 2.09 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Web site created using create-react-app" />
<link rel="manifest" href="/manifest.json" />
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,400;0,500;0,800;1,300;1,700;1,900&display=swap');
</style>
<title>Mental Health</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<div class="loader-container" id="loader-container">
<div class="loader">
<div class="rotatingLoader"></div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" crossorigin="anonymous"></script>
</body>
<script type="module" src="src/index.js"></script>
<script>
function theme() {
//overall theme
document.body.classList.toggle("dark-theme")
if (document.body.classList.contains("dark-theme")) {
icon.src="./assets/icons8-moon-100.png"
logo.src="./assets/icons8-mental-health-64.png"
menu.src="./assets/menu-dark.png"
console.log("Dark theme applied!");
}
else
{
icon.src="./assets/icons8-sun-100.png"
logo.src="./assets/icons8-mental-health-64 (1).png"
menu.src="./assets/menu-light.png"
console.log("Light theme applied!");
}
}
var loader = document.getElementById("loader-container");
window.addEventListener("load",function(){
setTimeout(function(){
loader.style.opacity = "0";
},600);
setTimeout(function(){
loader.style.display = "none";
},900);
})
</script>
</html>