10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-11-05 05:33:55 +01:00
QUESTDB_website/static/js/processingIndicator.js

15 lines
324 B
JavaScript
Raw Normal View History

class processingIndicator{
static get isActive(){
return document.body.classList.contains("loading")
}
static set isActive(value){
if(value!=this.isActive){
if(value){
document.body.classList.add("loading")
}
else{
document.body.classList.remove("loading")
}
}
}
}