|
@@ -71,8 +71,11 @@ var initMenu = function(){
|
|
var renderer2 = new THREE.CSS3DRenderer();
|
|
var renderer2 = new THREE.CSS3DRenderer();
|
|
renderer2.setSize( window.innerWidth, window.innerHeight );
|
|
renderer2.setSize( window.innerWidth, window.innerHeight );
|
|
renderer2.domElement.id = 'menudiv'
|
|
renderer2.domElement.id = 'menudiv'
|
|
|
|
+ renderer2.domElement.html = 'tsts'
|
|
$("#gui-parent")[0].appendChild(renderer2.domElement)
|
|
$("#gui-parent")[0].appendChild(renderer2.domElement)
|
|
menuDiv.renderer2 = renderer2
|
|
menuDiv.renderer2 = renderer2
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
var scene2 = new THREE.Scene();
|
|
var scene2 = new THREE.Scene();
|
|
menuDiv.objects.forEach(info=>{
|
|
menuDiv.objects.forEach(info=>{
|
|
@@ -14821,6 +14824,7 @@ window.Modernizr = function(n, e, t) {
|
|
var e = N.calcFullLoadingTime();
|
|
var e = N.calcFullLoadingTime();
|
|
de.warn("Total load time: " + e / 1e3),
|
|
de.warn("Total load time: " + e / 1e3),
|
|
H.loadComplete(e),
|
|
H.loadComplete(e),
|
|
|
|
+ window.dispatchEvent(window.evt);
|
|
de.warn("First render after model load finished.")
|
|
de.warn("First render after model load finished.")
|
|
}),
|
|
}),
|
|
S.on(le.MemoryUsageUpdated, n)
|
|
S.on(le.MemoryUsageUpdated, n)
|
|
@@ -16021,87 +16025,13 @@ window.Modernizr = function(n, e, t) {
|
|
}
|
|
}
|
|
hot.prototype.examine = function(e, options) {
|
|
hot.prototype.examine = function(e, options) {
|
|
options = options || {}
|
|
options = options || {}
|
|
- if(this.linkType!="common" && this.infoAttribute.iframe && this.infoAttribute.iframe[0] && !options.dontOpen){
|
|
|
|
- var src = getLink(this.infoAttribute.iframe[0]);
|
|
|
|
- if(this.linkType=="jumpLink"){
|
|
|
|
- /* var newPage = window.open(src, "_blank" );
|
|
|
|
- newPage.focus(); */
|
|
|
|
-
|
|
|
|
- var href = window.location.href
|
|
|
|
- var index = href.indexOf("&")
|
|
|
|
- if(index>-1) href = href.substr(0,index) /* pushState replaceState*/
|
|
|
|
- history.pushState(null, "", href+'&qs=1&firstView=pano:'+player.currentPano.id+',qua:'+ player.quaternion.toArray());
|
|
|
|
- window.location.href = src
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- }else if(this.linkType=="iframeDiv"){
|
|
|
|
- var div = document.createElement("div");
|
|
|
|
- $("body").append(div);
|
|
|
|
- div.style.position = 'fixed';
|
|
|
|
- div.style.width = div.style.height = "100%";
|
|
|
|
- div.style.left = div.style.top = '0';
|
|
|
|
- div.style["z-index"] = "999"
|
|
|
|
-
|
|
|
|
- var exit = document.createElement("div");
|
|
|
|
- exit.style["background-image"] = "url(images/vrOffImg.png)";
|
|
|
|
- exit.style.position = 'absolute';
|
|
|
|
- exit.style.width = exit.style.height = "50px";
|
|
|
|
- exit.style.left = '17px'; exit.style.top = "20px"
|
|
|
|
- exit.style.cursor = "pointer";
|
|
|
|
- exit.style["background-repeat"] = "no-repeat";
|
|
|
|
- exit.style["background-size"] = "25%";
|
|
|
|
- exit.style["background-position"] = "center center";
|
|
|
|
- exit.style["background-color"] = "rgba(0, 0, 0, 0.2)";
|
|
|
|
- exit.style["border-radius"] = "50%";
|
|
|
|
- exit.style["z-index"] = "3"
|
|
|
|
- exit.onclick = ()=>{
|
|
|
|
- $(div).remove()
|
|
|
|
- if(g_bgAudio && g_bgAudio.pauseByHot){
|
|
|
|
- manage.switchBgmState(true)
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- var myElement = document.createElement("iframe");
|
|
|
|
- myElement.style.position = 'absolute';
|
|
|
|
- myElement.style.width = myElement.style.height = "100%";
|
|
|
|
- myElement.style.left = myElement.style.top = '0';
|
|
|
|
-
|
|
|
|
- myElement.src = src
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- div.appendChild(exit);
|
|
|
|
- div.appendChild(myElement)
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- //打开热点的时候把背景音乐关闭了,避免与热点里面的音乐冲突
|
|
|
|
- //g_bgAudio && g_bgAudio.pause();
|
|
|
|
- if(g_bgAudio && !g_bgAudio.paused){
|
|
|
|
- manage.switchBgmState(false);
|
|
|
|
- g_bgAudio.pauseByHot = true
|
|
|
|
- }
|
|
|
|
- if(g_tourAudio)g_tourAudio.pause()
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
|
|
if(!player.currentPano)return;
|
|
if(!player.currentPano)return;
|
|
var hotPop = document.getElementById('popup');
|
|
var hotPop = document.getElementById('popup');
|
|
//获取那个热点的链接
|
|
//获取那个热点的链接
|
|
if(this.link){
|
|
if(this.link){
|
|
g_currentHot = this;
|
|
g_currentHot = this;
|
|
- hotPop.style.display = "block";
|
|
|
|
- hotPop.classList.add("wait");
|
|
|
|
- var myElement = document.createElement("iframe");
|
|
|
|
|
|
+
|
|
//打开热点的时候把背景音乐关闭了,避免与热点里面的音乐冲突
|
|
//打开热点的时候把背景音乐关闭了,避免与热点里面的音乐冲突
|
|
//g_bgAudio && g_bgAudio.pause();
|
|
//g_bgAudio && g_bgAudio.pause();
|
|
if(g_bgAudio && !g_bgAudio.paused){
|
|
if(g_bgAudio && !g_bgAudio.paused){
|
|
@@ -16109,42 +16039,9 @@ window.Modernizr = function(n, e, t) {
|
|
g_bgAudio.pauseByHot = true
|
|
g_bgAudio.pauseByHot = true
|
|
}
|
|
}
|
|
if(g_tourAudio)g_tourAudio.pause()
|
|
if(g_tourAudio)g_tourAudio.pause()
|
|
-
|
|
|
|
- var src = getLink(this.link )
|
|
|
|
- myElement.src = src;
|
|
|
|
- myElement.id = "id1";
|
|
|
|
- myElement.allowTransparency = "true";
|
|
|
|
- // myElement.scrolling = "no";
|
|
|
|
- var element=document.getElementById("id1"); //判断页面是否有iframe
|
|
|
|
- if (typeof(element)== "undefined" || element == null){
|
|
|
|
- document.querySelector(".popup-content").appendChild(myElement);
|
|
|
|
- //移动端自动播放
|
|
|
|
- var videoLoaddingResult = false
|
|
|
|
- window.loaddingSuccess = function() {
|
|
|
|
- videoLoaddingResult = true
|
|
|
|
- }
|
|
|
|
|
|
|
|
- setTimeout(function func() {
|
|
|
|
- if (videoLoaddingResult) {
|
|
|
|
- var $iframe = document.querySelector('#id1').contentWindow.document;
|
|
|
|
- if($iframe.querySelector('video')){
|
|
|
|
- $iframe.querySelector('video').play();
|
|
|
|
- // alert($iframe.querySelector('video'));
|
|
|
|
- if(!$iframe.querySelector('video').paused && $iframe.querySelector('.playPause')){
|
|
|
|
- $iframe.querySelector('.playPause').classList.add("fa-pause");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- if($iframe.querySelector('audio')){
|
|
|
|
- $iframe.querySelector('audio').play();
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- setTimeout(func, 300)
|
|
|
|
- }
|
|
|
|
- }, 800);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- //setTimeout(function(){$('#player').on("click",e.closePopup);},20)
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
// if(hotListSta) {
|
|
// if(hotListSta) {
|
|
@@ -16159,9 +16056,8 @@ window.Modernizr = function(n, e, t) {
|
|
var o = function() {
|
|
var o = function() {
|
|
e.flyingToTag = false;
|
|
e.flyingToTag = false;
|
|
if(this.link){
|
|
if(this.link){
|
|
- hotPop.classList.remove("wait");
|
|
|
|
|
|
+ window.player.emit('openHotspot', this.sid)
|
|
}
|
|
}
|
|
-
|
|
|
|
}.bind(this);
|
|
}.bind(this);
|
|
|
|
|
|
|
|
|