diff options
| author | Mhykol <mchaeldonald62@pm.me> | 2024-06-16 23:07:37 -0400 |
|---|---|---|
| committer | Mhykol <mchaeldonald62@pm.me> | 2024-06-16 23:07:37 -0400 |
| commit | 2cd055553b61909703850ff780e852c47bc0c749 (patch) | |
| tree | 034572675ea833dd2953fc1a5af9c4ffc902324c /examples/assets/js/loading.js | |
| parent | 1f25435e48e603671d5d75901515f0ac08d81e39 (diff) | |
Added examples for assets
Diffstat (limited to 'examples/assets/js/loading.js')
| -rw-r--r-- | examples/assets/js/loading.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/assets/js/loading.js b/examples/assets/js/loading.js new file mode 100644 index 0000000..8fff0f3 --- /dev/null +++ b/examples/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; + } +} |
