1
0
Fork 0
nyazoom/dist/scripts/loading_progress.js

4 lines
149 B
JavaScript

htmx.on('#form', 'htmx:xhr:progress', function(evt) {
htmx.find('#progress').setAttribute('value', evt.detail.loaded / evt.detail.total * 100)
});