diff options
| author | Mhykol <mchaeldonald62@pm.me> | 2024-06-12 05:13:07 -0400 |
|---|---|---|
| committer | Mhykol <mchaeldonald62@pm.me> | 2024-06-12 05:13:07 -0400 |
| commit | 43fc12689e9e4a455a41ba29a34455bddf3adb10 (patch) | |
| tree | 09011e04b777beffdd86bb4db6ad810d560c6203 /assets/js/loading.js | |
| parent | d697e3fe2ce886fe825a10a4c2b0296db5b32b29 (diff) | |
Added loading.js
Diffstat (limited to 'assets/js/loading.js')
| -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; + } +} |
