-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
13 lines (11 loc) · 729 Bytes
/
app.js
File metadata and controls
13 lines (11 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
import { playBreathingExercise } from "./components/ResetModule.js";
import { loadPrompts, getRandomPrompt, saveEntry } from "./components/JournalModule.js";
import { trackMood, loadDashboard } from "./components/BurnoutTracker.js";
document.addEventListener("DOMContentLoaded", async () => {
await loadPrompts();
document.getElementById("prompt").innerText = getRandomPrompt();
document.getElementById("breathingBtn").addEventListener("click", playBreathingExercise);
document.getElementById("saveEntryBtn").addEventListener("click", saveEntry);
document.getElementById("trackMoodBtn").addEventListener("click", trackMood);
document.getElementById("loadDashboardBtn").addEventListener("click", loadDashboard);
});