-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
47 lines (40 loc) · 1.55 KB
/
main.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
35
36
37
38
39
40
41
42
43
44
45
46
47
var activity = "Study";
function selectStudy() {
const study = document.getElementById("study");
const meditate = document.getElementById("meditate");
const exercise = document.getElementById("exercise");
study.classList.add("selected");
meditate.classList.remove("selected");
exercise.classList.remove("selected");
study.classList.remove("not_selected");
meditate.classList.add("not_selected");
exercise.classList.add("not_selected");
var activity = "Study";
console.log("selected Study");
}
function selectMeditate() {
const study = document.getElementById("study");
const meditate = document.getElementById("meditate");
const exercise = document.getElementById("exercise");
study.classList.remove("selected");
meditate.classList.add("selected");
exercise.classList.remove("selected");
study.classList.add("not_selected");
meditate.classList.remove("not_selected");
exercise.classList.add("not_selected");
var activity = "Meditate";
console.log("selected Meditate");
}
function selectExercise() {
const study = document.getElementById("study");
const meditate = document.getElementById("meditate");
const exercise = document.getElementById("exercise");
study.classList.remove("selected");
meditate.classList.remove("selected");
exercise.classList.add("selected");
study.classList.add("not_selected");
meditate.classList.add("not_selected");
exercise.classList.remove("not_selected");
var activity = "Exercise";
console.log("selected Exercise");
}