diff --git a/main.php b/main.php index 86839f2..313f594 100644 --- a/main.php +++ b/main.php @@ -1,5 +1,4 @@ {{ CONTENT }} - \ No newline at end of file diff --git a/templates/loading-screen.html b/templates/loading-screen.html new file mode 100644 index 0000000..62ff64f --- /dev/null +++ b/templates/loading-screen.html @@ -0,0 +1,77 @@ +
Loading...
+

Working...

+ + + \ No newline at end of file diff --git a/templates/main-browser-template-mapset.html b/templates/main-browser-template-mapset.html index 0679eda..2c58065 100644 --- a/templates/main-browser-template-mapset.html +++ b/templates/main-browser-template-mapset.html @@ -2,5 +2,5 @@
\{\{ MAP_DIFFICULTIES \}\}
- ↑ [ REPACK ] ↑ + ↑ [ REPACK ] ↑ \ No newline at end of file diff --git a/templates/main-option.html b/templates/main-option.html index b139624..bf741c3 100644 --- a/templates/main-option.html +++ b/templates/main-option.html @@ -1,5 +1,5 @@

{{ MAIN_OPTION_NAME }} {{ MAIN_OPTION_NAME_NOTE }}

{{ MAIN_OPTION_DESCRIPTION }}

- +
\ No newline at end of file diff --git a/templates/main-options-script.js b/templates/main-options-script.js new file mode 100644 index 0000000..39a50d3 --- /dev/null +++ b/templates/main-options-script.js @@ -0,0 +1,15 @@ +var loadingContent = "Loading..."; +var xmlhttp = new XMLHttpRequest(); +xmlhttp.onreadystatechange = function() { + if (this.readyState == 4 && this.status == 200) { + loadingContent = this.responseText; + } +}; + +xmlhttp.open("GET", "templates/loading-screen.html", true); +xmlhttp.send(); + +function displayLoading() { + document.getElementById("options").style.display = "none"; + document.getElementById("loader").innerHTML = loadingContent; +} \ No newline at end of file diff --git a/templates/main.html b/templates/main.html index b8b1383..1471166 100644 --- a/templates/main.html +++ b/templates/main.html @@ -1,7 +1,7 @@

osu! optimizer (PHP)

Version 0.1 by Thayol

-

[ GitHub ]

+

[ GitHub ]

Stats

@@ -13,7 +13,9 @@

Actions

-
{{ MAIN_OPTIONS }}
+
{{ MAIN_OPTIONS }}
+
+

Browser