-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstartup.js
31 lines (27 loc) · 1.27 KB
/
startup.js
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
function con() {
alert("WARNING: This is just a sample website, not everything here is true");
document.getElementById("every-display").style.display = "block";
document.getElementById("ChatOutput").innerHTML += "<a class='no-design-a bot'><b>Bot</b></>: ";
currentIndex = 0;
timer = setInterval(generateText, speedInterval);
}
document.addEventListener("DOMContentLoaded", function() {
const elements = document.querySelectorAll(".animate-delay");
elements.forEach(element => {
const delay = parseFloat(element.getAttribute("delay"));
setTimeout(() => {
element.style.animation = "webplixOfferListsTextAnimation 1s ease-out forwards";
element.style.opacity = "1";
}, delay * 1000);
});
});
document.addEventListener("DOMContentLoaded", function() {
const elements = document.querySelectorAll(".generalSlideLeft-delay");
elements.forEach(element => {
const delay = parseFloat(element.getAttribute("delay"));
setTimeout(() => {
element.style.animation = "generalSlideLeftwithVisibility 1s ease-out forwards";
element.style.opacity = "1";
}, delay * 1000);
});
});