zhouenguang il y a 3 ans
Parent
commit
db83a7f3b0
2 fichiers modifiés avec 12 ajouts et 12 suppressions
  1. 1 1
      modules/CharactorManager.js
  2. 11 11
      modules/index.js

+ 1 - 1
modules/CharactorManager.js

@@ -64,7 +64,7 @@ export default class CharactorManager {
             self.charactor.visible = false
             setTimeout(() => {
                 self.charactor.visible = true
-                document.getElementById("mask").style.zIndex = "-10000"
+                // document.getElementById("mask").style.zIndex = "-10000"
             }, 1000)
             
             // 初始人物位置

+ 11 - 11
modules/index.js

@@ -37,21 +37,21 @@ export default class App {
         this.bindEvents()
         setTimeout(() => this.bindSocketEvents(), 1000)
 
-        // document.getElementById("enterBtn").onclick = () => {
-        //     document.getElementById("houseTexture").play();
-        //     document.getElementById("houseTextureReverse").play();
-            // document.getElementById("mask").style.zIndex = "-10000"
-        // }
+        document.getElementById("enterBtn").onclick = () => {
+            document.getElementById("houseTexture").play();
+            document.getElementById("houseTextureReverse").play();
+            document.getElementById("mask").style.zIndex = "-10000"
+        }
     }
 
     init() {
 
-        // document.getElementById("houseTexture").onplay = () => {
-        //     console.error("video play!")
-        // }
-        // window.ty =()=>{
-        //     document.getElementById("houseTexture").play();
-        // }
+        document.getElementById("houseTexture").onplay = () => {
+            console.error("video play!")
+        }
+        window.ty =()=>{
+            document.getElementById("houseTexture").play();
+        }
 
         this.initVideo = true
         this.isReverse = false