|
@@ -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
|