-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
34 lines (26 loc) · 1.24 KB
/
script.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
32
33
34
document.addEventListener('DOMContentLoaded', () => {
const loginButton = document.getElementById('login-button');
const tasksButton = document.getElementById('tasks-button');
const achievementsButton = document.getElementById('achievements-button');
const mentalHealthButton = document.getElementById('mental-health-button');
const physicalHealthButton = document.getElementById('physical-health-button');
const routine = document.getElementById('routine');
loginButton.addEventListener('click', () => {
window.location.href = './login/index.html';
});
tasksButton.addEventListener('click', () => {
window.location.href = './tasks/index.html';
});
achievementsButton.addEventListener('click', () => {
window.location.href = './acheivements/index.html';
});
mentalHealthButton.addEventListener('click', () => {
window.location.href = './mentalfitness/index.html';
});
physicalHealthButton.addEventListener('click', () => {
window.location.href = './physicalhealth/index.html';
});
document.getElementById("routine").addEventListener("click", () => {
window.location.href = "./routine/index.html";
});
});