diff options
| -rw-r--r-- | assets/js/loading.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/assets/js/loading.js b/assets/js/loading.js new file mode 100644 index 0000000..8fff0f3 --- /dev/null +++ b/assets/js/loading.js @@ -0,0 +1,16 @@ +class Loading { + constructor() { + this.object = { + loadingScreen: document.getElementById('loading') + } + } + + Stop() { + this.object.loadingScreen.style.opacity = 0; + this.object.loadingScreen.style.zIndex = -9999; + } + Start() { + this.object.loadingScreen.style.opacity = 1; + this.object.loadingScreen.style.zIndex = 9999; + } +} |
