WIP: lockscreen loading
@svornost I love your loading screen, and I'm interested in making it a bit more dynamic. Is that even possible with the way .lock()
works?
Merge request reports
Activity
Javascript is unfortunately really hard to deal with for this kind of thing.
Basically what you need to do is register a timer callback, then return control to the browser. The browser will update the DOM based on your changes, and then call the callback.
That means you'd need to break up the endweek process into chunks, each of which registers a callback to fire the next chunk, then updates the DOM, then returns control.
It was completely impossible when Slave Assignment Report was still in Twine, but since it's been moved to DOM you should technically be able to do it (at least to update the status between assignment reports)...it's just super awkward.
Probably the first step will be generating all the SAR DOM completely outside of twine...you'd want to cache it in a JS variable, then all the twine page should do is display it. Call SAR directly from EndWeek, filling the cache one chunk at a time, and then let the twine page just dump it all out.
Edited by svornost