In the hydration tracker widget the previous error was showing a line of code inside the hydration tracker widget so I thought it was a html code error so I tried writing it properly and now instead of the tracker getting an error my dock system went to the tracker to ask him how he is (╥ ᴗ ╥) , guess what the problem was i actually didnt close the ‘<‘div id=“widgets”> using </div’>’ (about the
apostrophe on div that you are thinking is also a problem , its not becuase in devlog it wont allow me to write the function properly thats why i wrote it in
apostrophe )
Because HTML is hierarchical, the browser interprets that as:
#widgets
├── todo widget
├── notes widget
├── hydration widget
└── #dock ← OOPS, dock is now inside widgets
Another problem is that the hydration widget is still not working the buttons are not working and it was because function saveHydrationState(State){ lsSet(‘nebula_hydration’,JSON.stringify(state));}The savehydrationstate has S as capital instead of small and because of that it wasnt working and and about the feature you can even drink more than 8 cups and another feature is that the widget resets for every day
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.