mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-07-23 19:27:42 +02:00
15 lines
306 B
JavaScript
15 lines
306 B
JavaScript
|
class processingIndicator{
|
||
|
static get isActive(){
|
||
|
return document.body.style.cursor==="wait"
|
||
|
}
|
||
|
static set isActive(value){
|
||
|
if(value!=this.isActive){
|
||
|
if(value){
|
||
|
document.body.style.cursor="wait"
|
||
|
}
|
||
|
else{
|
||
|
document.body.style.cursor="default"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|