aboutsummaryrefslogtreecommitdiff
path: root/public/unity/TemplateData/UnityProgress.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/unity/TemplateData/UnityProgress.js')
-rw-r--r--public/unity/TemplateData/UnityProgress.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/public/unity/TemplateData/UnityProgress.js b/public/unity/TemplateData/UnityProgress.js
deleted file mode 100644
index ceb0543..0000000
--- a/public/unity/TemplateData/UnityProgress.js
+++ /dev/null
@@ -1,24 +0,0 @@
-function UnityProgress(unityInstance, progress) {
- if (!unityInstance.Module)
- return;
- if (!unityInstance.logo) {
- unityInstance.logo = document.createElement("div");
- unityInstance.logo.className = "logo " + unityInstance.Module.splashScreenStyle;
- unityInstance.container.appendChild(unityInstance.logo);
- }
- if (!unityInstance.progress) {
- unityInstance.progress = document.createElement("div");
- unityInstance.progress.className = "progress " + unityInstance.Module.splashScreenStyle;
- unityInstance.progress.empty = document.createElement("div");
- unityInstance.progress.empty.className = "empty";
- unityInstance.progress.appendChild(unityInstance.progress.empty);
- unityInstance.progress.full = document.createElement("div");
- unityInstance.progress.full.className = "full";
- unityInstance.progress.appendChild(unityInstance.progress.full);
- unityInstance.container.appendChild(unityInstance.progress);
- }
- unityInstance.progress.full.style.width = (100 * progress) + "%";
- unityInstance.progress.empty.style.width = (100 * (1 - progress)) + "%";
- if (progress == 1)
- unityInstance.logo.style.display = unityInstance.progress.style.display = "none";
-} \ No newline at end of file