Loading animation added

This commit is contained in:
2020-12-29 19:12:54 +01:00
parent a6061039e1
commit cb3db37d8c
7 changed files with 99 additions and 6 deletions
+15
View File
@@ -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;
}