samyok / gophergrades

Used by more than 35k students to view all the past grades for classes taken at the University of Minnesota, Twin Cities.
https://umn.lol
21 stars 13 forks source link

Calendar: make calendar button load in as soon as page loads #57

Closed superstealthysheep closed 1 year ago

superstealthysheep commented 1 year ago

Currently, the load-to-calendar button attempts to load in 5 seconds after the page is first loaded. This duration is inflexible. This means that if the MyU page takes more than 5 seconds to load up, the button will fail to appear (this happened to me during some testing). In other scenarios, too, the page loads a while before 5 seconds, and the button looks like it appears late.

My guess right now on how to fix this is to set up an event listener to determine when the page has fully loaded, and then at that moment add in the button. A demo that I think might be helpful is at http://help.dottoro.com/ljrmcldi.php.

sammoerbitz commented 1 year ago

Finished!