wdreames / website

Source code for a website I developed
https://www.william-reames.com
1 stars 0 forks source link

Gratitude Journal Forward/Backward buttons #14

Closed wdreames closed 1 year ago

wdreames commented 1 year ago

Create an enhancement that includes buttons to see the journal entries that were previously outputted during a single session. This would include both a 'previous' and a 'next' button. This would also need to be reset whenever a new session is made (possibly use the same logic as the random dataframe's reset timer. The only issue with that would be if more than one person used this page of the website (which would also be something to fix with the random dataframe's timer as well), but I should really get the only one using it. That may still be something worth thinking about, though)

wdreames commented 1 year ago

Brainstorming:

Notes for this idea:

I think this idea seems feasible and I will begin working on it

wdreames commented 1 year ago

I made some progress on implementing the above solution. Current remaining TODOs are:

wdreames commented 1 year ago

The undo/redo buttons work now. All that is left is:

wdreames commented 1 year ago

Ideally, I think the buttons would be grayed-out when they cannot be used. Although I am unsure how feasible this idea is to implement

wdreames commented 1 year ago

I think I will also need to turn off the DOS protection for this file. It blocks me from viewing the journal if I press the undo/redo buttons too many times

wdreames commented 1 year ago

The buttons work!!! I haven't changed the DOS protection at all but the backwards and forwards buttons work, get grayed out when they cannot be used, and are also disabled when they cannot be used. I am quite happy with the end result :)