mustDoTasks
array
Stores an array of task objects, each with text and completed properties; tracks the user's daily must-do items
let mustDoTasks = [{ text: 'Morning meditation', completed: false }];
affirmationText
string
Stores the current daily affirmation that the user can edit and view
let affirmationText = 'Thank you Baba for this beautiful day...';
confessionText
string
Stores the current daily confession or reflection that the user can edit and view
let confessionText = 'I confess my mistakes and shortcomings...';
alarms
array
Stores an array of alarm objects, each with time (HH:MM) and optional message properties; scheduled alarms are stored here
let alarms = [{ time: '06:30', message: 'Wake up!' }];
lastResetDate
string
Stores the date of the last daily reset in YYYY-MM-DD format; used to detect when a new day starts
let lastResetDate = '2025-02-13';
alarmPlayer
Tone.Player
A Tone.js Player object that loads and plays the alarm sound file when triggered
let alarmPlayer; // Initialized in preload()
mustDoInput
p5.Element (input)
A p5.js wrapper around the HTML input element where users type new tasks
let mustDoInput; // Selected in setup()
addMustDoButton
p5.Element (button)
A p5.js wrapper around the 'Add Task' button HTML element
let addMustDoButton; // Selected in setup()
mustDoList
p5.Element (ul)
A p5.js wrapper around the <ul> (unordered list) that displays all tasks
let mustDoList; // Selected in setup()
resetDailyTasksButton
p5.Element (button)
A p5.js wrapper around the 'Reset Daily Tasks' button
let resetDailyTasksButton; // Selected in setup()
affirmationDisplay
p5.Element (p)
A p5.js wrapper around the paragraph element that displays the daily affirmation
let affirmationDisplay; // Selected in setup()
editAffirmationButton
p5.Element (button)
A p5.js wrapper around the 'Edit Affirmation' button
let editAffirmationButton; // Selected in setup()
confessionDisplay
p5.Element (p)
A p5.js wrapper around the paragraph that displays the daily confession
let confessionDisplay; // Selected in setup()
editConfessionButton
p5.Element (button)
A p5.js wrapper around the 'Edit Confession' button
let editConfessionButton; // Selected in setup()
alarmTimeInput
p5.Element (input type='time')
A p5.js wrapper around the HTML time input where users set an alarm's time
let alarmTimeInput; // Selected in setup()
alarmMessageInput
p5.Element (input type='text')
A p5.js wrapper around the text input where users optionally set an alarm's message
let alarmMessageInput; // Selected in setup()
addAlarmButton
p5.Element (button)
A p5.js wrapper around the 'Add Alarm' button
let addAlarmButton; // Selected in setup()
alarmsList
p5.Element (ul)
A p5.js wrapper around the <ul> that displays all alarms
let alarmsList; // Selected in setup()
testAlarmButton
p5.Element (button)
A p5.js wrapper around the 'Test Alarm Sound' button
let testAlarmButton; // Selected in setup()