tremble 3 years ago
parent
commit
b8101d32ae
2 changed files with 13 additions and 2 deletions
  1. 12 1
      SuperTwo762/js/main_2020_show.js
  2. 1 1
      ZAJSG/shapan/index.html

+ 12 - 1
SuperTwo762/js/main_2020_show.js

@@ -13,6 +13,9 @@ window.momentTourBlackNewType = 0//true
 
 g_playAudio = null
 
+// 全屏热点退出按钮
+exit = null
+
 g_tourAudio = new Audio 
 g_tourAudio.loop = !1 
 g_tourAudio.crossOrigin = "anonymous" 
@@ -4806,6 +4809,9 @@ window.Modernizr = function(n, e, t) {
                 }
                 i && this.emit(u.Move, "key")
                 if(e == 27){
+                    if(exit){
+                        $(exit).click()
+                    }
                     window.player.closePopup()
                 }
             }
@@ -16396,7 +16402,7 @@ window.Modernizr = function(n, e, t) {
                     div.style.left = div.style.top = '0';
                     div.style["z-index"] = "999"
                     
-                    var exit = document.createElement("div");
+                    exit = document.createElement("div");
                     exit.style["background-image"] = "url(images/vrOffImg.png)";
                     exit.style.position = 'absolute';
                     exit.style.width = exit.style.height = "50px";
@@ -22357,6 +22363,11 @@ window.Modernizr = function(n, e, t) {
 				document.querySelector(".popup-content").removeChild(document.getElementById("id1"));
 				$("#popup iframe:last").remove();
                 var _bgaudio = document.getElementById("bgaudio");
+                try{ 
+                    window.parent.postMessage("closeHot",'*') 
+                }catch(e){
+                    console.log(e)
+                }
                 //判断音乐是否暂停或者是否存在
                 /* if(g_bgAudio && g_bgAudio.paused && g_bgAudio.readyState != 0 && g_play === 1)
                 {

+ 1 - 1
ZAJSG/shapan/index.html

@@ -22,7 +22,7 @@
         <span id="enter">进入沙盘</span>
       </div>
       <div class="video">
-        <video id="fixVideo" autoplay src="./出境.mp4"></video>
+        <video id="fixVideo" src="./出境.mp4"></video>
       </div>
       <!-- <div class="enter">
         <span>点击进入</span>