bkhpanigha / hh-suttas

HH Suttas (Development)
https://hh-suttas.onrender.com/
9 stars 7 forks source link

Fix JS Issue on bookmarks, glossary, comments pages + other things #192

Closed Reptilioo closed 1 month ago

Reptilioo commented 1 month ago

Fix a js issue on bookmarks, glossary and comments pages preventing further js processing to work (can't change into dark mode for example).

Edit: Issue was fixed by #180 because I did the modification on that branch too.

Reptilioo commented 1 month ago

AND added missing function import in "activateMessageListener.js". AND add back appbody class in index.html, also add it to bookmarks.html, glossary.html and comments.html to close #194. AND fix an error on books/glossary/comments page caused by trying to find content only existing on homepage. AND fix a file path in bookmarks.js.

Reptilioo commented 1 month ago

AND modified "index.js", "js/utils/getDocumentAreas.js" and "js/utils/loadContent/activateEventListeners.js" to fix issue with search on suttas page, where search would not give results.

Reptilioo commented 1 month ago

@bkhpanigha the if(window.location.href == "https://suttas.hillsidehermitage.org/" || window.location.href.startsWith("https://suttas.hillsidehermitage.org/?q=")){ cause issue on local servers though. Not sure if you use that.