Difference between revisions of "User:Fbstj/gadget/history-test.js"

m
try that
m (try that)
m (try that)
const old = document.querySelector('.patrollink')
// progress spinner
const spin = $.createSpinner({ size: 'small', display: 'inline', })[0]
// setup the new button
const btn = document.createElement('button')
btn.setAttribute('disabled', true)
btn.replaceWith(spin)
setTimeout(function() { btn.removeAttribute('disabled'); spin.replaceWith(buttonbtn) }, 5000);
})
// hide old button and show new one