From 264ed60cc4f70d7777837f6101915d08edbe04c5 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 27 Dec 2022 03:45:30 +0200 Subject: [PATCH] replace "DOMContentLoaded" with "load" --- files/assets/js/core.js | 2 +- files/assets/js/lottery.js | 2 +- files/templates/casino/blackjack_screen.html | 2 +- files/templates/casino/game_screen.html | 2 +- files/templates/casino/roulette_screen.html | 2 +- files/templates/default.html | 2 +- files/templates/event/awards.html | 2 +- files/templates/event/banner.html | 2 +- files/templates/home.html | 4 ++-- files/templates/settings/css.html | 2 +- files/templates/settings/personal.html | 4 ++-- files/templates/submission.html | 2 +- files/templates/submission_listing.html | 2 +- 13 files changed, 15 insertions(+), 15 deletions(-) diff --git a/files/assets/js/core.js b/files/assets/js/core.js index 8fa8ed3ef..ee4791ec1 100644 --- a/files/assets/js/core.js +++ b/files/assets/js/core.js @@ -281,7 +281,7 @@ if (document.readyState === "complete" || (document.readyState !== "loading" && !document.documentElement.doScroll)) { bsTriggerOnReady(); } else { - document.addEventListener("DOMContentLoaded", bsTriggerOnReady); + document.addEventListener("load", bsTriggerOnReady); } function escapeHTML(unsafe) { diff --git a/files/assets/js/lottery.js b/files/assets/js/lottery.js index f2e5e4612..5a57b3871 100644 --- a/files/assets/js/lottery.js +++ b/files/assets/js/lottery.js @@ -41,7 +41,7 @@ if ( ) { lotteryOnReady(); } else { - document.addEventListener("DOMContentLoaded", lotteryOnReady); + document.addEventListener("load", lotteryOnReady); } function purchaseLotteryTicket() { diff --git a/files/templates/casino/blackjack_screen.html b/files/templates/casino/blackjack_screen.html index aee3b1f63..6df76fd3f 100644 --- a/files/templates/casino/blackjack_screen.html +++ b/files/templates/casino/blackjack_screen.html @@ -224,7 +224,7 @@ ) { initializeBlackjack(); } else { - document.addEventListener("DOMContentLoaded", initializeBlackjack); + document.addEventListener("load", initializeBlackjack); } {% endblock %} diff --git a/files/templates/casino/game_screen.html b/files/templates/casino/game_screen.html index 2a9e7c064..84a3fed69 100644 --- a/files/templates/casino/game_screen.html +++ b/files/templates/casino/game_screen.html @@ -41,7 +41,7 @@ ) { initializeGame(); } else { - document.addEventListener("DOMContentLoaded", initializeGame); + document.addEventListener("load", initializeGame); } function initializeGame() { diff --git a/files/templates/casino/roulette_screen.html b/files/templates/casino/roulette_screen.html index 23ba0635d..08098c288 100644 --- a/files/templates/casino/roulette_screen.html +++ b/files/templates/casino/roulette_screen.html @@ -8,7 +8,7 @@ ) { initializeGame(); } else { - document.addEventListener("DOMContentLoaded", initializeGame); + document.addEventListener("load", initializeGame); } // Kiss my ass if you're judgin' diff --git a/files/templates/default.html b/files/templates/default.html index 267b3dcd4..ba1433150 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -81,7 +81,7 @@ {% if g.browser == 'apple' %} diff --git a/files/templates/event/banner.html b/files/templates/event/banner.html index 03e611870..29a7f8cbd 100644 --- a/files/templates/event/banner.html +++ b/files/templates/event/banner.html @@ -2,7 +2,7 @@ {% if request.path == '/' %} diff --git a/files/templates/home.html b/files/templates/home.html index 3536135b8..db3cf1fa9 100644 --- a/files/templates/home.html +++ b/files/templates/home.html @@ -170,7 +170,7 @@ {% if request.path == '/' and v %}