-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
54 lines (41 loc) · 1.22 KB
/
Copy pathscript.js
File metadata and controls
54 lines (41 loc) · 1.22 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
function goHome(){
alert("Lets Go Home!")
setTimeout(() => {
alert("In 3 seconds ...");
}, 1000); // 3 seconds delay
// wait three seconds
setTimeout(() => {
window.location.href = "index.html";
}, 5000); // 3 seconds delay
};
function goReminder(){
alert("Lets learn about hydration!")
setTimeout(() => {
alert("In 3 seconds ...");
}, 1000); // 3 seconds delay
// wait three seconds
setTimeout(() => {
window.location.href = "reminder.html";
}, 5000); // 3 seconds delay
};
function goMedia(){
alert("Lets see water in all sorts of things!")
setTimeout(() => {
alert("In 3 seconds ...");
}, 1000); // 3 seconds delay
// wait three seconds
setTimeout(() => {
window.location.href = "media.html";
}, 5000); // 3 seconds delay
};
function goPinterest(){
alert("Lets see the pinterest inspiration!")
setTimeout(() => {
alert("In 3 seconds ...");
}, 1000); // 3 seconds delay
// wait three seconds
setTimeout(() => {
window.location.href = "404.html";
alert(404 + " page not found!");
}, 5000); // 3 seconds delay
};