mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-08-25 13:41:50 +02:00
15 lines
324 B
JavaScript
15 lines
324 B
JavaScript
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")
|
|
}
|
|
}
|
|
}
|
|
} |