nyazoom/dist/scripts/loading_progress.js

4 lines
149 B
JavaScript
Raw Normal View History

2023-07-31 13:32:17 +00:00
htmx.on('#form', 'htmx:xhr:progress', function(evt) {
htmx.find('#progress').setAttribute('value', evt.detail.loaded / evt.detail.total * 100)
});