|
@@ -33,15 +33,26 @@ export default class App {
|
|
|
|
|
|
this.hasVideoTexture = true
|
|
|
|
|
|
- document.getElementById("enterBtn").onclick = () => {
|
|
|
- this.init()
|
|
|
- this.bindEvents()
|
|
|
- setTimeout(() => this.bindSocketEvents(), 1000)
|
|
|
- }
|
|
|
+ this.init()
|
|
|
+ this.bindEvents()
|
|
|
+ setTimeout(() => this.bindSocketEvents(), 1000)
|
|
|
+
|
|
|
+ // 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();
|
|
|
+ // }
|
|
|
+
|
|
|
this.initVideo = true
|
|
|
this.isReverse = false
|
|
|
|