aboutsummaryrefslogtreecommitdiff
path: root/app/cdn/js/loading.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-06-04 14:53:19 +0200
committerMinteck <contact@minteck.org>2022-06-04 14:53:19 +0200
commit8ecd875035433835c03d74ff60da47282a8e3606 (patch)
treec4ab1a5f067c2add2cd4ce893f8c0de4fe0a0bc2 /app/cdn/js/loading.js
parent88c72b3deda61cb177188cf7964ab2b7a8811be0 (diff)
downloadcore-8ecd875035433835c03d74ff60da47282a8e3606.tar.gz
core-8ecd875035433835c03d74ff60da47282a8e3606.tar.bz2
core-8ecd875035433835c03d74ff60da47282a8e3606.zip
Remove CDN
Diffstat (limited to 'app/cdn/js/loading.js')
-rw-r--r--app/cdn/js/loading.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/app/cdn/js/loading.js b/app/cdn/js/loading.js
deleted file mode 100644
index b3970de..0000000
--- a/app/cdn/js/loading.js
+++ /dev/null
@@ -1,32 +0,0 @@
-document.onreadystatechange = function(e) {
- if (document.readyState == "interactive") {
- var all = document.getElementsByTagName("*");
- for (var i = 0, max = all.length; i < max; i++) {
- set_ele(all[i]);
- }
- }
-}
-
-function check_element(ele) {
- var all = document.getElementsByTagName("*");
- var totalele = all.length;
- var per_inc = 100 / all.length;
-
- if ($(ele).on()) {
- var prog_width = per_inc + Number(document.getElementById("progress_width").value);
- document.getElementById("progress_width").value = prog_width;
- $("#bar1").animate({
- width: prog_width + "%"
- }, 10, function() {
- if (document.getElementById("bar1").style.width === "100%") {
- $(".progress").fadeOut("slow");
- }
- });
- } else {
- set_ele(ele);
- }
-}
-
-function set_ele(set_element) {
- check_element(set_element);
-} \ No newline at end of file