aboutsummaryrefslogtreecommitdiff
path: root/views/script/loader_global.js
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-06-10 20:04:31 +0200
committerMinteck <nekostarfan@gmail.com>2021-06-10 20:04:31 +0200
commit3e62534eb7db3011ef540b6053811d48761dda21 (patch)
tree3c812ba3717ba38a1f1efa712d6200e2cae79e0a /views/script/loader_global.js
parent634dc4c860993963e6f5f9847eaf1ddc5f213ec3 (diff)
downloadkartik-client-3e62534eb7db3011ef540b6053811d48761dda21.tar.gz
kartik-client-3e62534eb7db3011ef540b6053811d48761dda21.tar.bz2
kartik-client-3e62534eb7db3011ef540b6053811d48761dda21.zip
Cutefox Studios
Diffstat (limited to 'views/script/loader_global.js')
-rw-r--r--views/script/loader_global.js96
1 files changed, 65 insertions, 31 deletions
diff --git a/views/script/loader_global.js b/views/script/loader_global.js
index 67016d9..6bde06c 100644
--- a/views/script/loader_global.js
+++ b/views/script/loader_global.js
@@ -2,8 +2,6 @@ window.addEventListener('load', () => {
setTimeout(() => {
if (native) {
setTimeout(() => {
- document.getElementById('vendor').style.transform = "scale(3)";
- new Audio("../sfx/intro.mp3").play();
setTimeout(() => {
if (native) {global.$ = require('jquery');} else {var script = document.createElement('script');script.src = '../webinit/jquery.js';script.type = 'text/javascript';document.getElementsByTagName('head')[0].appendChild(script);}
$("#progress").fadeOut(500);
@@ -27,46 +25,75 @@ window.addEventListener('load', () => {
}
}
setTimeout(() => {
- $("body").fadeOut(500);
- setTimeout(() => {
- info("LoadWindow", "Switching control to MenuWindow");
- location.href = "intro.html";
- }, 1000)
- }, 3000);
+ document.getElementById('banner').style.width = "380px";
+ document.getElementById('banner').style.height = "auto";
+ document.getElementById('banner').src = "common/banner.gif";
+ introsfx = new Audio("../sfx/newintro.mp3");
+ introsfx.play()
+ introsfx.onended = () => {
+ $("body").fadeOut(500);
+ setTimeout(() => {
+ info("LoadWindow", "Switching control to MenuWindow");
+ location.href = "intro.html";
+ }, 1000)
+ }
+ }, 2000)
}).catch((e) => {
console.warn(e);
document.getElementById('updates').style.backgroundColor = "lightcoral";
document.getElementById('updates').innerText = lang.updates.error;
setTimeout(() => {
- $("body").fadeOut(500);
- setTimeout(() => {
- info("LoadWindow", "Switching control to MenuWindow");
- location.href = "intro.html";
- }, 1000)
- }, 3000);
+ document.getElementById('banner').style.width = "380px";
+ document.getElementById('banner').style.height = "auto";
+ document.getElementById('banner').src = "common/banner.gif";
+ introsfx = new Audio("../sfx/newintro.mp3");
+ introsfx.play()
+ introsfx.onended = () => {
+ $("body").fadeOut(500);
+ setTimeout(() => {
+ info("LoadWindow", "Switching control to MenuWindow");
+ location.href = "intro.html";
+ }, 1000)
+ }
+ }, 2000)
});
}).catch((e) => {
console.warn(e);
document.getElementById('updates').style.backgroundColor = "lightcoral";
document.getElementById('updates').innerText = lang.updates.error;
setTimeout(() => {
- $("body").fadeOut(500);
- setTimeout(() => {
- info("LoadWindow", "Switching control to MenuWindow");
- location.href = "intro.html";
- }, 1000)
- }, 3000);
+ document.getElementById('banner').style.width = "380px";
+ document.getElementById('banner').style.height = "auto";
+ document.getElementById('banner').src = "common/banner.gif";
+ introsfx = new Audio("../sfx/newintro.mp3");
+ introsfx.play()
+ introsfx.onended = () => {
+ $("body").fadeOut(500);
+ setTimeout(() => {
+ info("LoadWindow", "Switching control to MenuWindow");
+ location.href = "intro.html";
+ }, 1000)
+ }
+ }, 2000)
});
}).catch((e) => {
console.warn(e);
document.getElementById('updates').style.backgroundColor = "lightcoral";
document.getElementById('updates').innerText = lang.updates.error;
setTimeout(() => {
- setTimeout(() => {
- info("LoadWindow", "Switching control to MenuWindow");
- location.href = "intro.html";
- }, 1000)
- }, 3000);
+ document.getElementById('banner').style.width = "380px";
+ document.getElementById('banner').style.height = "auto";
+ document.getElementById('banner').src = "common/banner.gif";
+ introsfx = new Audio("../sfx/newintro.mp3");
+ introsfx.play()
+ introsfx.onended = () => {
+ $("body").fadeOut(500);
+ setTimeout(() => {
+ info("LoadWindow", "Switching control to MenuWindow");
+ location.href = "intro.html";
+ }, 1000)
+ }
+ }, 2000)
});
}, 2000)
}, 3000)
@@ -74,12 +101,19 @@ window.addEventListener('load', () => {
} else {
if (native) {global.$ = require('jquery');} else {var script = document.createElement('script');script.src = '../webinit/jquery.js';script.type = 'text/javascript';document.getElementsByTagName('head')[0].appendChild(script);}
setTimeout(() => {
- $("body").fadeOut(500);
- setTimeout(() => {
- info("LoadWindow", "Switching control to MenuWindow");
- location.href = "intro.html";
- }, 1000)
- }, 8000);
+ document.getElementById('banner').style.width = "380px";
+ document.getElementById('banner').style.height = "auto";
+ document.getElementById('banner').src = "common/banner.gif";
+ introsfx = new Audio("../sfx/newintro.mp3");
+ introsfx.play()
+ introsfx.onended = () => {
+ $("body").fadeOut(500);
+ setTimeout(() => {
+ info("LoadWindow", "Switching control to MenuWindow");
+ location.href = "intro.html";
+ }, 1000)
+ }
+ }, 5000)
}
}, 2000)
})