mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-08-26 22:21:53 +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"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|