Update GameTutorial.html

This commit is contained in:
Doveliyuchen 2023-03-07 10:05:11 +08:00
parent 797eb4b255
commit 18649b2ab7

View File

@ -175,26 +175,15 @@
</div> </div>
<script>
function display(){
var img=document.getElementById("windowshow");
if (img.style.visibility == "visible"){
img.style.visibility= "hidden";
}
}
</script>
<img style=" width: 80%; height: 90vh;top: 5vh; left: 10vw; <img style=" width: 80%; height: 90vh;top: 5vh; left: 10vw;
position: fixed;z-index: 900;cursor: pointer; visibility: visible; " src="../templates/Web/pic.png" id="windowshow" onclick="display()"> position: fixed;z-index: 900; visibility: visible; " src="../templates/Web/pic.png" id="windowshow">
<br> <br>
<div align="center" id = "GameWindow"> <div align="center" id = "GameWindow">
<div class="loading-container" id="loading" style="visibility: visible"> <div class="loading-container" id="loading" style="visibility: visible">
<div class="loader"></div> <div class="loader"></div>
<div class="loading-text">Loading</div> <div class="loading-text">Loading</div>e
</div> </div>
</div> </div>
@ -213,9 +202,10 @@
tutorialId = tutorialId+1 tutorialId = tutorialId+1
var level = "t"+tutorialId; var level = "t"+tutorialId;
GameLoad().then(function(){ GameLoad().then(function(){
console.log("Cheerpj Initialize Succeed!"); console.log("Cheerpj Initialize Succeed!");
document.getElementById("loading").style.visibility = "hidden"; document.getElementById("loading").style.visibility = "hidden";
}) })
@ -255,6 +245,10 @@
GameLoad().then(function(){ GameLoad().then(function(){
console.log("Cheerpj Initialize Succeed!"); console.log("Cheerpj Initialize Succeed!");
if (img.style.visibility == "visible"){
img.style.visibility= "hidden";
}
document.getElementById("loading").style.visibility = 'hidden'; document.getElementById("loading").style.visibility = 'hidden';
}) })