-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.html
More file actions
98 lines (88 loc) · 2.64 KB
/
home.html
File metadata and controls
98 lines (88 loc) · 2.64 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="announcement.css">
<link rel="stylesheet" href="mainmenu.css">
<title>home</title>
</head>
<body>
<div id="home">
<video id="india" preload="true" autoplay loop muted>
<source src="india.mp4" type="video/mp4">
</video>
<a class="emger">
<div id="top-header">
<div id="emergency-response-opt" class="em-standard">
<div class="circle">
<div class="circle-wrapper pulsate-fwd"></div>
</div>
<div class="txt">
<p>Next Missions Prayer Breakfast: April 20th 10:00 AM - Study Center Cafe</p>
</div>
</div>
</div>
</a>
<div class="row">
<div>
<button class="button missions" onclick="application.goToTargetView(event)">MISSIONS</button>
</div>
<div>
<button class="button impact" onclick="application.goToTargetView(event)">IMPACT</button>
</div>
<div>
<button class="button updates" onclick="application.goToTargetView(event)">UPDATES</button>
</div>
<div>
<button class="button pray" onclick="application.goToTargetView(event)">PRAY</button>
</div>
<div>
<button class="button support" onclick="application.goToTargetView(event)">SUPPORT</button>
</div>
<div>
<button class="button scripture" onclick="application.goToTargetView(event)">SCRIPTURE</button>
</div>
</div>
<div>
<img class="logo" src="logos3.png">
</div>
<div class="praying">
<span>Praying:</span>
<span class="auto-type"></span>
</div>
<script src="./home.js"></script>
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.0.12"></script>
<script>
function shuffle(array) {
let currentIndex = array.length, randomIndex;
// While there remain elements to shuffle.
while (currentIndex != 0) {
// Pick a remaining element.
randomIndex = Math.floor(Math.random() * currentIndex);
currentIndex--;
// And swap it with the current element.
[array[currentIndex], array[randomIndex]] = [
array[randomIndex], array[currentIndex]];
}
return array;
}
fetch('names.txt')
.then(response => response.text())
.then(data => {
const names = data.split('\n');
const shuffledNames = shuffle(names);
var typed = new Typed(".auto-type", {
strings: shuffledNames,
typeSpeed: 120,
backSpeed: 30,
loop: true
})
})
</script>
</body>
</html>