diff --git a/skin.js b/skin.js index ff8aee0..5a2052e 100644 --- a/skin.js +++ b/skin.js @@ -1,7 +1,7 @@ // Garden Gnome Software - Skin // Pano2VR 6.1.13/18080 // Filename: Layout-Op��esParqueDosNinos.ggsk -// Generated 2023-07-14T13:25:56 +// Generated 2023-07-14T15:03:33 function pano2vrSkin(player,base) { player.addVariable('BASICO', 2, false); @@ -1585,6 +1585,32 @@ function pano2vrSkin(player,base) { } return player.getCurrentNode(); } + me._icones.logicBlock_position = function() { + var newLogicStatePosition; + if ( + ((player.getViewerSize().width <= 1024)) + ) + { + newLogicStatePosition = 0; + } + else { + newLogicStatePosition = -1; + } + if (me._icones.ggCurrentLogicStatePosition != newLogicStatePosition) { + me._icones.ggCurrentLogicStatePosition = newLogicStatePosition; + me._icones.style[domTransition]='left 0s, bottom 0s'; + if (me._icones.ggCurrentLogicStatePosition == 0) { + this.ggDx = 0; + me._icones.style.bottom='90px'; + me._icones.ggUpdatePosition(true); + } + else { + me._icones.ggDx=0; + me._icones.style.bottom='20px'; + me._icones.ggUpdatePosition(true); + } + } + } me._icones.logicBlock_visible = function() { var newLogicStateVisible; if ( @@ -1599,7 +1625,7 @@ function pano2vrSkin(player,base) { } if (me._icones.ggCurrentLogicStateVisible != newLogicStateVisible) { me._icones.ggCurrentLogicStateVisible = newLogicStateVisible; - me._icones.style[domTransition]=''; + me._icones.style[domTransition]='left 0s, bottom 0s'; if (me._icones.ggCurrentLogicStateVisible == 0) { me._icones.style.visibility=(Number(me._icones.style.opacity)>0||!me._icones.style.opacity)?'inherit':'hidden'; me._icones.ggVisible=true; @@ -2842,102 +2868,6 @@ function pano2vrSkin(player,base) { } me._informationpremium.appendChild(me._premium); me.divSkin.appendChild(me._informationpremium); - el=me._video_popup_close_file=document.createElement('div'); - els=me._video_popup_close_file__img=document.createElement('img'); - els.className='ggskin ggskin_svg'; - hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KP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TEuM2wxMC45LTEwLjljMC45LTAuOSwxLjctMC45LDIuNC0wLjFsMTUuOCwxNS44bDE1LjctMTUuNyYjeGQ7JiN4YTsmI3g5OyYjeDk7YzAuOS0wLjksMS43LTAuOSwyLjQtMC4xbDExLjEsMTEuMWMwLjgsMC44LDAuOCwxLjUtMC4xLDIuNGwtMTUuNywxNS43TC0xNDUuOCw0MTIuN3oiIGZpbGw9IiMwMDAwMDAiLz4KIDwvZz4KID'+ - 'xnIGlkPSJMYXllcl8yIj4KICA8cGF0aCBkPSJNLTE2MS42LDM5Ni45bDE1LjgsMTUuOGMwLjgsMC44LDAuOCwxLjUtMC4xLDIuNGwtMTAuOSwxMC45Yy0wLjQsMC40LTAuOCwwLjUtMS4zLDAuNSYjeGQ7JiN4YTsmI3g5OyYjeDk7Yy0wLjUsMC0wLjktMC4xLTEuMS0wLjRsLTE1LjgtMTUuOGwtMTUuNywxNS43Yy0wLjQsMC40LTAuOCwwLjUtMS4zLDAuNXMtMC45LTAuMS0xLjEtMC40bC0xMS4xLTExLjFjLTAuMy0wLjMtMC40LTAuNi0wLjQtMS4xJiN4ZDsmI3hhOyYjeDk7JiN4OTtjMC0wLjUsMC4xLTAuOSwwLjUtMS4zbDE1LjctMTUuN2wtMTUuOC0xNS44Yy0wLjMtMC4zLTAuNC0wLjYtMC40'+ - 'LTEuMWMwLTAuNSwwLjEtMC45LDAuNS0xLjNsMTAuOS0xMC45YzAuOS0wLjksMS43LTAuOSwyLjQtMC4xJiN4ZDsmI3hhOyYjeDk7JiN4OTtsMTUuOCwxNS44bDE1LjctMTUuN2MwLjktMC45LDEuNy0wLjksMi40LTAuMWwxMS4xLDExLjFjMC44LDAuOCwwLjgsMS41LTAuMSwyLjRMLTE2MS42LDM5Ni45eiIgZmlsbD0iI0ZGRkZGRiIvPgogPC9nPgo8L3N2Zz4K'; - me._video_popup_close_file__img.setAttribute('src',hs); - els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); - els['ondragstart']=function() { return false; }; - el.appendChild(els); - el.ggSubElement = els; - elo=me._video_popup_close_file__imgo=document.createElement('img'); - elo.className='ggskin ggskin_svg'; - hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHk9IjBweCIgYmFzZVByb2ZpbGU9InRpbnkiIHZpZXdCb3g9Ii0yNDAgMzMyIDEzMCAxMzAiIHg9IjBweCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CiA8ZyBpZD0iTG'+ - 'F5ZXJfMV8xXyI+CiAgPHBhdGggZD0iTS0xMzAuOSwzNTIuOWMtMjQuNC0yNC40LTYzLjgtMjQuNC04OC4yLDBjLTI0LjQsMjQuNC0yNC40LDYzLjgsMCw4OC4yYzI0LjQsMjQuNCw2My44LDI0LjQsODguMiwwJiN4ZDsmI3hhOyYjeDk7JiN4OTtTLTEwNi41LDM3Ny4zLTEzMC45LDM1Mi45eiBNLTE0Mi41LDQxNC41YzAuOCwwLjgsMC44LDEuNy0wLjEsMi43bC0xMi4yLDEyLjJjLTAuNCwwLjQtMC44LDAuNi0xLjQsMC42Yy0wLjYsMC0xLTAuMS0xLjMtMC40JiN4ZDsmI3hhOyYjeDk7JiN4OTtsLTE3LjUtMTcuNWwtMTcuNCwxNy40Yy0wLjQsMC40LTAuOCwwLjYtMS40LDAuNmMtMC42LDAtMS0w'+ - 'LjEtMS4zLTAuNGwtM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CwxLjctMC4xLDIuN0wtMTYwLjEsMzk2Ljl6IiBmaWxsPSIjRkZGRkZGIi8+CiA8L2c+Cjwvc3ZnPgo='; - me._video_popup_close_file__imgo.setAttribute('src',hs); - elo.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;visibility:hidden;pointer-events:none;;'); - elo['ondragstart']=function() { return false; }; - el.appendChild(elo); - el.ggId="video_popup_close_file"; - el.ggDx=0; - el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; - el.ggVisible=false; - el.className="ggskin ggskin_svg "; - el.ggType='svg'; - hs =''; - hs+='cursor : pointer;'; - hs+='height : 32px;'; - hs+='left : -10000px;'; - hs+='position : absolute;'; - hs+='top : 9px;'; - hs+='visibility : hidden;'; - hs+='width : 32px;'; - hs+='pointer-events:auto;'; - el.setAttribute('style',hs); - el.style[domTransform + 'Origin']='50% 50%'; - me._video_popup_close_file.ggIsActive=function() { - return false; - } - el.ggElementNodeId=function() { - return player.getCurrentNode(); - } - me._video_popup_close_file.logicBlock_visible = function() { - var newLogicStateVisible; - if ( - ((player.getVariableValue('vis_video_file') == true)) - ) - { - newLogicStateVisible = 0; - } - else { - newLogicStateVisible = -1; - } - if (me._video_popup_close_file.ggCurrentLogicStateVisible != newLogicStateVisible) { - me._video_popup_close_file.ggCurrentLogicStateVisible = newLogicStateVisible; - me._video_popup_close_file.style[domTransition]=''; - if (me._video_popup_close_file.ggCurrentLogicStateVisible == 0) { - me._video_popup_close_file.style.visibility=(Number(me._video_popup_close_file.style.opacity)>0||!me._video_popup_close_file.style.opacity)?'inherit':'hidden'; - me._video_popup_close_file.ggVisible=true; - } - else { - me._video_popup_close_file.style.visibility="hidden"; - me._video_popup_close_file.ggVisible=false; - } - } - } - me._video_popup_close_file.onclick=function (e) { - player.setVariableValue('vis_video_file', false); - } - me._video_popup_close_file.onmouseover=function (e) { - me._video_popup_close_file__img.style.visibility='hidden'; - me._video_popup_close_file__imgo.style.visibility='inherit'; - } - me._video_popup_close_file.onmouseout=function (e) { - me._video_popup_close_file__img.style.visibility='inherit'; - me._video_popup_close_file__imgo.style.visibility='hidden'; - } - me._video_popup_close_file.ggUpdatePosition=function (useTransition) { - if (useTransition==='undefined') { - useTransition = false; - } - if (!useTransition) { - this.style[domTransition]='none'; - } - if (this.parentNode) { - var pw=this.parentNode.clientWidth; - var w=this.offsetWidth; - this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; - } - } - me.divSkin.appendChild(me._video_popup_close_file); el=me._video_screentint_file=document.createElement('div'); el.ggId="video_screentint_file"; el.ggDx=0; @@ -3756,37 +3686,57 @@ function pano2vrSkin(player,base) { } me._video_popup_controls_file.appendChild(me._ht_video_pause_file); me.divSkin.appendChild(me._video_popup_controls_file); - el=me._menu_background=document.createElement('div'); - el.ggId="menu_background"; + el=me._video_popup_close_file=document.createElement('div'); + els=me._video_popup_close_file__img=document.createElement('img'); + els.className='ggskin ggskin_svg'; + hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHk9IjBweCIgYmFzZVByb2ZpbGU9InRpbnkiIHZpZXdCb3g9Ii0yNDAgMzMyIDEzMCAxMzAiIHg9IjBweCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CiA8ZyBpZD0iTG'+ + 'F5ZXJfMV8xXyI+CiAgPHBhdGggZD0iTS0xMzUuMywzNTcuM2MtMjEuOS0yMS45LTU3LjU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uNywxNS43Yy0wLjQsMC40LTAuOCwwLjUtMS4zLDAuNXMtMC45LTAuMS0xLjEtMC40bC0xMS4xLTExLjFjLTAuMy0wLjMtMC40LTAuNi0wLjQtMS4xJiN4ZDsmI3hhOyYjeDk7JiN4OTtjMC0wLjUsMC4xLTAuOSwwLjUtMS4zbDE1LjctMTUuN2wtMTUuOC0xNS44Yy0wLjMtMC4zLTAuNC0wLjYtMC40'+ + 'LTEuMWMwLTAuNSwwLjEtMC45LDAuNS0xLjNsMTAuOS0xMC45YzAuOS0wLjksMS43LTAuOSwyLjQtMC4xJiN4ZDsmI3hhOyYjeDk7JiN4OTtsMTUuOCwxNS44bDE1LjctMTUuN2MwLjktMC45LDEuNy0wLjksMi40LTAuMWwxMS4xLDExLjFjMC44LDAuOCwwLjgsMS41LTAuMSwyLjRMLTE2MS42LDM5Ni45eiIgZmlsbD0iI0ZGRkZGRiIvPgogPC9nPgo8L3N2Zz4K'; + me._video_popup_close_file__img.setAttribute('src',hs); + els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); + els['ondragstart']=function() { return false; }; + el.appendChild(els); + el.ggSubElement = els; + elo=me._video_popup_close_file__imgo=document.createElement('img'); + elo.className='ggskin ggskin_svg'; + hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHk9IjBweCIgYmFzZVByb2ZpbGU9InRpb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WwxNy41LDE3LjVjMC44LDAuOCwwLjgsMS43LTAuMSwyLjdsLTEyLjIsMTIuMmMtMC40LDAuNC0wLjgsMC42LTEuNCwwLjYmI3hkOyYjeGE7JiN4OTsmI3g5O2MtMC42LDAtMS0wLjEtMS4zLTAuNGwtMTcuNS0xNy41bC0xNy40LDE3LjRjLTAuNCwwLjQtMC44LDAuNi0xLjQsMC42Yy0wLjYsMC0xLTAuMS0xLjMtMC40bC0xMi4zLTEyLjNjLTAuMy0wLjMtMC40LTAuNy0wLjQtMS4zJiN4ZDsmI3hhOyYjeDk7JiN4OTtjMC0wLjYsMC4xLTEsMC42LTEuNGwxNy40LTE3LjRsLTE3LjUtMTcuNWMtMC4zLTAuMy0wLjQtMC43LTAuNC0xLjNjMC0wLjYsMC4x'+ + 'LTEsMC42LTEuNGwxMi4yLTEyLjJjMS0xLDEuOC0xLDIuNy0wLjFsMTcuNSwxNy41JiN4ZDsmI3hhOyYjeDk7JiN4OTtsMTcuNC0xNy40YzEtMSwxLjgtMSwyLjctMC4xbDEyLjMsMTIuM2MwLjgsMC44LDAuOCwxLjctMC4xLDIuN0wtMTYwLjEsMzk2Ljl6IiBmaWxsPSIjRkZGRkZGIi8+CiA8L2c+Cjwvc3ZnPgo='; + me._video_popup_close_file__imgo.setAttribute('src',hs); + elo.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;visibility:hidden;pointer-events:none;;'); + elo['ondragstart']=function() { return false; }; + el.appendChild(elo); + el.ggId="video_popup_close_file"; + el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=false; - el.className="ggskin ggskin_rectangle "; - el.ggType='rectangle'; + el.className="ggskin ggskin_svg "; + el.ggType='svg'; hs =''; - hs+='background : rgba(0,0,0,0.501961);'; - hs+='border : 1px solid #000000;'; - hs+='cursor : default;'; - hs+='height : 100%;'; - hs+='left : 0px;'; - hs+='opacity : 0;'; + hs+='cursor : pointer;'; + hs+='height : 32px;'; + hs+='left : -10000px;'; hs+='position : absolute;'; - hs+='top : 0px;'; + hs+='top : 50px;'; hs+='visibility : hidden;'; - hs+='width : 178px;'; + hs+='width : 32px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; - me._menu_background.ggIsActive=function() { + me._video_popup_close_file.ggIsActive=function() { return false; } el.ggElementNodeId=function() { return player.getCurrentNode(); } - me._menu_background.logicBlock_visible = function() { + me._video_popup_close_file.logicBlock_visible = function() { var newLogicStateVisible; if ( - ((player.getVariableValue('Menu') == true)) && - ((player.getVariableValue('Node1') == true)) + ((player.getVariableValue('vis_video_file') == true)) ) { newLogicStateVisible = 0; @@ -3794,355 +3744,237 @@ function pano2vrSkin(player,base) { else { newLogicStateVisible = -1; } - if (me._menu_background.ggCurrentLogicStateVisible != newLogicStateVisible) { - me._menu_background.ggCurrentLogicStateVisible = newLogicStateVisible; - me._menu_background.style[domTransition]='opacity 500ms ease 0ms'; - if (me._menu_background.ggCurrentLogicStateVisible == 0) { - me._menu_background.style.visibility=(Number(me._menu_background.style.opacity)>0||!me._menu_background.style.opacity)?'inherit':'hidden'; - me._menu_background.ggVisible=true; + if (me._video_popup_close_file.ggCurrentLogicStateVisible != newLogicStateVisible) { + me._video_popup_close_file.ggCurrentLogicStateVisible = newLogicStateVisible; + me._video_popup_close_file.style[domTransition]=''; + if (me._video_popup_close_file.ggCurrentLogicStateVisible == 0) { + me._video_popup_close_file.style.visibility=(Number(me._video_popup_close_file.style.opacity)>0||!me._video_popup_close_file.style.opacity)?'inherit':'hidden'; + me._video_popup_close_file.ggVisible=true; } else { - me._menu_background.style.visibility="hidden"; - me._menu_background.ggVisible=false; + me._video_popup_close_file.style.visibility="hidden"; + me._video_popup_close_file.ggVisible=false; } } } - me._menu_background.logicBlock_alpha = function() { - var newLogicStateAlpha; + me._video_popup_close_file.onclick=function (e) { + player.setVariableValue('vis_video_file', false); + } + me._video_popup_close_file.onmouseover=function (e) { + me._video_popup_close_file__img.style.visibility='hidden'; + me._video_popup_close_file__imgo.style.visibility='inherit'; + } + me._video_popup_close_file.onmouseout=function (e) { + me._video_popup_close_file__img.style.visibility='inherit'; + me._video_popup_close_file__imgo.style.visibility='hidden'; + } + me._video_popup_close_file.ggUpdatePosition=function (useTransition) { + if (useTransition==='undefined') { + useTransition = false; + } + if (!useTransition) { + this.style[domTransition]='none'; + } + if (this.parentNode) { + var pw=this.parentNode.clientWidth; + var w=this.offsetWidth; + this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; + } + } + me.divSkin.appendChild(me._video_popup_close_file); + el=me._screentint_image=document.createElement('div'); + el.ggId="screentint_image"; + el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; + el.ggVisible=false; + el.className="ggskin ggskin_rectangle "; + el.ggType='rectangle'; + hs =''; + hs+='background : rgba(0,0,0,0.392157);'; + hs+='border : 0px solid #000000;'; + hs+='cursor : pointer;'; + hs+='height : 100%;'; + hs+='left : 0%;'; + hs+='position : absolute;'; + hs+='top : 0%;'; + hs+='visibility : hidden;'; + hs+='width : 100%;'; + hs+='pointer-events:auto;'; + el.setAttribute('style',hs); + el.style[domTransform + 'Origin']='50% 50%'; + me._screentint_image.ggIsActive=function() { + return false; + } + el.ggElementNodeId=function() { + return player.getCurrentNode(); + } + me._screentint_image.logicBlock_visible = function() { + var newLogicStateVisible; if ( - ((player.getVariableValue('category_visible') == true)) + ((player.getVariableValue('vis_image_popup') == true)) ) { - newLogicStateAlpha = 0; + newLogicStateVisible = 0; } else { - newLogicStateAlpha = -1; + newLogicStateVisible = -1; } - if (me._menu_background.ggCurrentLogicStateAlpha != newLogicStateAlpha) { - me._menu_background.ggCurrentLogicStateAlpha = newLogicStateAlpha; - me._menu_background.style[domTransition]='opacity 500ms ease 0ms'; - if (me._menu_background.ggCurrentLogicStateAlpha == 0) { - me._menu_background.style.visibility=me._menu_background.ggVisible?'inherit':'hidden'; - me._menu_background.style.opacity=1; + if (me._screentint_image.ggCurrentLogicStateVisible != newLogicStateVisible) { + me._screentint_image.ggCurrentLogicStateVisible = newLogicStateVisible; + me._screentint_image.style[domTransition]=''; + if (me._screentint_image.ggCurrentLogicStateVisible == 0) { + me._screentint_image.style.visibility=(Number(me._screentint_image.style.opacity)>0||!me._screentint_image.style.opacity)?'inherit':'hidden'; + me._screentint_image.ggVisible=true; } else { - setTimeout(function() { if (me._menu_background.style.opacity == 0.0) { me._menu_background.style.visibility="hidden"; } }, 505); - me._menu_background.style.opacity=0; + me._screentint_image.style.visibility="hidden"; + me._screentint_image.ggVisible=false; } } } - me._menu_background.onclick=function (e) { - if ( - ( - ((me.ggUserdata.customnodeid == "Flores")) - ) - ) { - player.playSound("Audio2","100"); - } - player.playSound("Audio3","100"); - if ( - ( - ((me.ggUserdata.customnodeid == "Flores")) - ) - ) { - player.stopSound("Audio1"); - } + me._screentint_image.onclick=function (e) { + player.setVariableValue('vis_image_popup', false); + } + me._screentint_image.ggUpdatePosition=function (useTransition) { + } + me.divSkin.appendChild(me._screentint_image); + el=me._image_popup=document.createElement('div'); + el.ggId="image_popup"; + el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; + el.ggVisible=false; + el.className="ggskin ggskin_container "; + el.ggType='container'; + hs =''; + hs+='height : 80%;'; + hs+='left : 10%;'; + hs+='position : absolute;'; + hs+='top : 6%;'; + hs+='visibility : hidden;'; + hs+='width : 80%;'; + hs+='pointer-events:none;'; + el.setAttribute('style',hs); + el.style[domTransform + 'Origin']='50% 50%'; + me._image_popup.ggIsActive=function() { + return false; + } + el.ggElementNodeId=function() { + return player.getCurrentNode(); + } + me._image_popup.logicBlock_visible = function() { + var newLogicStateVisible; if ( - ( - ((me.ggUserdata.customnodeid != "Flores")) && - ((player.getVariableValue('AudioFlores') == true)) - ) - ) { - player.playSound("Audio1","100"); + ((player.getVariableValue('vis_image_popup') == true)) + ) + { + newLogicStateVisible = 0; } - if ( - ( - ((me.ggUserdata.customnodeid == "Flores")) - ) - ) { - player.setVariableValue('AudioFlores', true); + else { + newLogicStateVisible = -1; } - if ( - ( - ((me.ggUserdata.customnodeid != "Flores")) && - ((me.ggUserdata.customnodeid != "PreFlores")) - ) - ) { - player.setVariableValue('AudioFlores', false); + if (me._image_popup.ggCurrentLogicStateVisible != newLogicStateVisible) { + me._image_popup.ggCurrentLogicStateVisible = newLogicStateVisible; + me._image_popup.style[domTransition]=''; + if (me._image_popup.ggCurrentLogicStateVisible == 0) { + me._image_popup.style.visibility=(Number(me._image_popup.style.opacity)>0||!me._image_popup.style.opacity)?'inherit':'hidden'; + me._image_popup.ggVisible=true; + } + else { + me._image_popup.style.visibility="hidden"; + me._image_popup.ggVisible=false; + } } } - me._menu_background.ggUpdatePosition=function (useTransition) { + me._image_popup.ggUpdatePosition=function (useTransition) { } - el=me._node_scroller=document.createElement('div'); - els=me._node_scroller__content=document.createElement('div'); - els.className='ggskin ggskin_subelement ggskin_scrollarea'; - el.ggContent=els; + el=me._loading_image=document.createElement('div'); + els=me._loading_image__img=document.createElement('img'); + els.className='ggskin ggskin_svg'; + hs='data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IndoaXRlIiB3aWR0aD0iNjQiIHZpZXdCb3g9IjAgMCAzMiAzMiIgaGVpZ2h0PSI2NCI+CiA8Y2lyY2xlIGN5PSIzIiBjeD0iMTYiIHI9IjAiPgogIDxhbmltYXRlIHZhbHVlcz0iMDszOzA7MCIga2V5U3BsaW5lcz0iMC4yIDAuMiAwLjQgMC44OzAuMiAwLjIgMC40IDAuODswLjIgMC4yIDAuNCAwLjgiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBhdHRyaWJ1dGVOYW1lPSJyIiBkdXI9IjFzIiBjYWxjTW9kZT0ic3BsaW5lIiBiZWdpbj0iMCIvPgogPC9jaXJjbGU+CiA8Y2lyY2xlIHRyYW5zZm9ybT0icm90YXRlKD'+ + 'Q1IDE2IDE2KSIgY3k9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LjIgMC4yIDAuNCAwLjgiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBhdHRyaWJ1dGVOYW1lPSJyIiBkdXI9IjFzIiBjYWxjTW9kZT0ic3BsaW5lIiBiZWdpbj0iMC44NzVz'+ + 'Ii8+CiA8L2NpcmNsZT4KIDxjaXJjbGUgdHJhbnNmb3JtPSJyb3RhdGUoMTgwIDE2IDE2KSIgY3k9IjMiIGN4PSIxNiIgcj0iMCI+CiAgPGFuaW1hdGUgdmFsdWVzPSIwOzM7MDswIiBrZXlTcGxpbmVzPSIwLjIgMC4yIDAuNCAwLjg7MC4yIDAuMiAwLjQgMC44OzAuMiAwLjIgMC40IDAuOCIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGF0dHJpYnV0ZU5hbWU9InIiIGR1cj0iMXMiIGNhbGNNb2RlPSJzcGxpbmUiIGJlZ2luPSIwLjVzIi8+CiA8L2NpcmNsZT4KPC9zdmc+Cg=='; + me._loading_image__img.setAttribute('src',hs); + els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); + els['ondragstart']=function() { return false; }; el.appendChild(els); - el.ggHorScrollVisible = false; - el.ggVertScrollVisible = false; - el.ggContentLeftOffset = 0; - el.ggContentTopOffset = 0; - el.ggDragInertiaX = 0; - el.ggDragInertiaY = 0; - el.ggVPercentVisible = 1.0; - el.ggHPercentVisible = 1.0; + el.ggSubElement = els; + el.ggId="loading_image"; + el.ggDx=0; + el.ggDy=0; + el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; + el.ggVisible=true; + el.className="ggskin ggskin_svg "; + el.ggType='svg'; hs =''; - hs+='height : 99px;'; - hs+='left : 0px;'; - hs+='overflow : visible;'; + hs+='height : 40px;'; + hs+='left : -10000px;'; hs+='position : absolute;'; - hs+='top : 0px;'; - hs+='width : 149.5px;'; - hs+=""; - els.setAttribute('style',hs); - me._node_scroller.ggScrollByX = function(diffX) { - if(!me._node_scroller.ggHorScrollVisible || diffX == 0 || me._node_scroller.ggHPercentVisible >= 1.0) return; - me._node_scroller.ggScrollPosX = (me._node_scroller__horScrollFg.offsetLeft + diffX); - me._node_scroller.ggScrollPosX = Math.max(me._node_scroller.ggScrollPosX, 0); - me._node_scroller.ggScrollPosX = Math.min(me._node_scroller.ggScrollPosX, me._node_scroller__horScrollBg.offsetWidth - me._node_scroller__horScrollFg.offsetWidth); - me._node_scroller__horScrollFg.style.left = me._node_scroller.ggScrollPosX + 'px'; - let percentScrolled = me._node_scroller.ggScrollPosX / (me._node_scroller__horScrollBg.offsetWidth - me._node_scroller__horScrollFg.offsetWidth); - me._node_scroller__content.style.left = -(Math.round((me._node_scroller.ggContentWidth * (1.0 - me._node_scroller.ggHPercentVisible)) * percentScrolled)) + me._node_scroller.ggContentLeftOffset + 'px'; - me._node_scroller.ggScrollPosXPercent = (me._node_scroller__horScrollFg.offsetLeft / me._node_scroller__horScrollBg.offsetWidth); - } - me._node_scroller.ggScrollByXSmooth = function(diffX) { - if(!me._node_scroller.ggHorScrollVisible || diffX == 0 || me._node_scroller.ggHPercentVisible >= 1.0) return; - var scrollPerInterval = diffX / 25; - var scrollCurrX = 0; - var id = setInterval(function() { - scrollCurrX += scrollPerInterval; - me._node_scroller.ggScrollPosX += scrollPerInterval; - if (diffX > 0 && (scrollCurrX >= diffX || me._node_scroller.ggScrollPosX >= me._node_scroller__horScrollBg.offsetWidth - me._node_scroller__horScrollFg.offsetWidth)) { - me._node_scroller.ggScrollPosX = Math.min(me._node_scroller.ggScrollPosX, me._node_scroller__horScrollBg.offsetWidth - me._node_scroller__horScrollFg.offsetWidth); - clearInterval(id); - } - if (diffX < 0 && (scrollCurrX <= diffX || me._node_scroller.ggScrollPosX <= 0)) { - me._node_scroller.ggScrollPosX = Math.max(me._node_scroller.ggScrollPosX, 0); - clearInterval(id); - } - me._node_scroller__horScrollFg.style.left = me._node_scroller.ggScrollPosX + 'px'; - let percentScrolled = me._node_scroller.ggScrollPosX / (me._node_scroller__horScrollBg.offsetWidth - me._node_scroller__horScrollFg.offsetWidth); - me._node_scroller__content.style.left = -(Math.round((me._node_scroller.ggContentWidth * (1.0 - me._node_scroller.ggHPercentVisible)) * percentScrolled)) + me._node_scroller.ggContentLeftOffset + 'px'; - me._node_scroller.ggScrollPosXPercent = (me._node_scroller__horScrollFg.offsetLeft / me._node_scroller__horScrollBg.offsetWidth); - }, 10); - } - me._node_scroller.ggScrollByY = function(diffY) { - if(!me._node_scroller.ggVertScrollVisible || diffY == 0 || me._node_scroller.ggVPercentVisible >= 1.0) return; - me._node_scroller.ggScrollPosY = (me._node_scroller__vertScrollFg.offsetTop + diffY); - me._node_scroller.ggScrollPosY = Math.max(me._node_scroller.ggScrollPosY, 0); - me._node_scroller.ggScrollPosY = Math.min(me._node_scroller.ggScrollPosY, me._node_scroller__vertScrollBg.offsetHeight - me._node_scroller__vertScrollFg.offsetHeight); - me._node_scroller__vertScrollFg.style.top = me._node_scroller.ggScrollPosY + 'px'; - let percentScrolled = me._node_scroller.ggScrollPosY / (me._node_scroller__vertScrollBg.offsetHeight - me._node_scroller__vertScrollFg.offsetHeight); - me._node_scroller__content.style.top = -(Math.round((me._node_scroller.ggContentHeight * (1.0 - me._node_scroller.ggVPercentVisible)) * percentScrolled)) + me._node_scroller.ggContentTopOffset + 'px'; - me._node_scroller.ggScrollPosYPercent = (me._node_scroller__vertScrollFg.offsetTop / me._node_scroller__vertScrollBg.offsetHeight); + hs+='top : -10000px;'; + hs+='visibility : inherit;'; + hs+='width : 40px;'; + hs+='pointer-events:auto;'; + el.setAttribute('style',hs); + el.style[domTransform + 'Origin']='50% 50%'; + me._loading_image.ggIsActive=function() { + if ((this.parentNode) && (this.parentNode.ggIsActive)) { + return this.parentNode.ggIsActive(); + } + return false; } - me._node_scroller.ggScrollByYSmooth = function(diffY) { - if(!me._node_scroller.ggVertScrollVisible || diffY == 0 || me._node_scroller.ggVPercentVisible >= 1.0) return; - var scrollPerInterval = diffY / 25; - var scrollCurrY = 0; - var id = setInterval(function() { - scrollCurrY += scrollPerInterval; - me._node_scroller.ggScrollPosY += scrollPerInterval; - if (diffY > 0 && (scrollCurrY >= diffY || me._node_scroller.ggScrollPosY >= me._node_scroller__vertScrollBg.offsetHeight - me._node_scroller__vertScrollFg.offsetHeight)) { - me._node_scroller.ggScrollPosY = Math.min(me._node_scroller.ggScrollPosY, me._node_scroller__vertScrollBg.offsetHeight - me._node_scroller__vertScrollFg.offsetHeight); - clearInterval(id); - } - if (diffY < 0 && (scrollCurrY <= diffY || me._node_scroller.ggScrollPosY <= 0)) { - me._node_scroller.ggScrollPosY = Math.max(me._node_scroller.ggScrollPosY, 0); - clearInterval(id); - } - me._node_scroller__vertScrollFg.style.top = me._node_scroller.ggScrollPosY + 'px'; - let percentScrolled = me._node_scroller.ggScrollPosY / (me._node_scroller__vertScrollBg.offsetHeight - me._node_scroller__vertScrollFg.offsetHeight); - me._node_scroller__content.style.top = -(Math.round((me._node_scroller.ggContentHeight * (1.0 - me._node_scroller.ggVPercentVisible)) * percentScrolled)) + me._node_scroller.ggContentTopOffset + 'px'; - me._node_scroller.ggScrollPosYPercent = (me._node_scroller__vertScrollFg.offsetTop / me._node_scroller__vertScrollBg.offsetHeight); - }, 10); + el.ggElementNodeId=function() { + if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { + return this.parentNode.ggElementNodeId(); + } + return player.getCurrentNode(); } - me._node_scroller.ggScrollIntoView = function(posX, posY, width, height) { - if (me._node_scroller.ggHorScrollVisible) { - if (posX < 0) { - var diffX = Math.floor(posX * me._node_scroller.ggHPercentVisible); - me._node_scroller.ggScrollByXSmooth(diffX); - } else if (posX + width > me._node_scroller.clientWidth - (me._node_scroller.ggVertScrollVisible ? 15 : 0)) { - var diffX = Math.ceil(((posX + width) - (me._node_scroller.clientWidth - (me._node_scroller.ggVertScrollVisible ? 15 : 0))) * me._node_scroller.ggHPercentVisible); - me._node_scroller.ggScrollByXSmooth(diffX); - } + me._loading_image.ggUpdatePosition=function (useTransition) { + if (useTransition==='undefined') { + useTransition = false; } - if (me._node_scroller.ggVertScrollVisible) { - if (posY < 0) { - var diffY = Math.floor(posY * me._node_scroller.ggVPercentVisible); - me._node_scroller.ggScrollByYSmooth(diffY); - } else if (posY + height > me._node_scroller.clientHeight - (me._node_scroller.ggHorScrollVisible ? 15 : 0)) { - var diffY = Math.ceil(((posY + height) - (me._node_scroller.clientHeight - (me._node_scroller.ggHorScrollVisible ? 15 : 0))) * me._node_scroller.ggVPercentVisible); - me._node_scroller.ggScrollByYSmooth(diffY); - } + if (!useTransition) { + this.style[domTransition]='none'; } - } - els.ontouchstart = function(e) { - e = e || window.event; - var t = e.touches; - me._node_scroller.ggDragLastX = t ? t[0].clientX : e.clientX; - me._node_scroller.ggDragLastY = t ? t[0].clientY : e.clientY; - me._node_scroller__content.ontouchend = function() { - let inertiaInterval = setInterval(function() { - me._node_scroller.ggDragInertiaX *= 0.65; - me._node_scroller.ggDragInertiaY *= 0.65; - me._node_scroller.ggScrollByX(me._node_scroller.ggDragInertiaX); - me._node_scroller.ggScrollByY(me._node_scroller.ggDragInertiaY); - if (Math.abs(me._node_scroller.ggDragInertiaX) < 1.0 && Math.abs(me._node_scroller.ggDragInertiaY) < 1.0) { - clearInterval(inertiaInterval); - } - }, 50); - me._node_scroller__content.ontouchend = null; - me._node_scroller__content.ontouchmove = null; - me._node_scroller__content.onpointerup = null; - me._node_scroller__content.onpointermove = null; + if (this.parentNode) { + var pw=this.parentNode.clientWidth; + var w=this.offsetWidth; + this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; + var ph=this.parentNode.clientHeight; + var h=this.offsetHeight; + this.style.top=(this.ggDy + ph/2 - h/2) + 'px'; } - if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { - me._node_scroller__content.onpointerup = me._node_scroller__content.ontouchend; } - me._node_scroller__content.ontouchmove = function(e) { - e = e || window.event; - e.preventDefault(); - var t = e.touches; - var diffX = ((t ? t[0].clientX : e.clientX) - me._node_scroller.ggDragLastX) * me._node_scroller.ggHPercentVisible; - var diffY = ((t ? t[0].clientY : e.clientY) - me._node_scroller.ggDragLastY) * me._node_scroller.ggVPercentVisible; - me._node_scroller.ggDragInertiaX = -diffX; - me._node_scroller.ggDragInertiaY = -diffY; - me._node_scroller.ggDragLastX = t ? t[0].clientX : e.clientX; - me._node_scroller.ggDragLastY = t ? t[0].clientY : e.clientY; - me._node_scroller.ggScrollByX(-diffX); - me._node_scroller.ggScrollByY(-diffY); - } - if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { - me._node_scroller__content.onpointermove = me._node_scroller__content.ontouchmove; - } - } - if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { - els.onpointerdown = els.ontouchstart; - } - elVertScrollBg = me._node_scroller__vertScrollBg = document.createElement('div'); - el.appendChild(elVertScrollBg); - elVertScrollBg.setAttribute('style', 'position: absolute; right: 0px; top: 0px; visibility: hidden; width: 15px; height: 800px; background-color: rgba(0,0,0,0.12549); pointer-events: auto;'); - elVertScrollBg.className='ggskin ggskin_scrollarea_vscrollbg'; - elVertScrollFg = me._node_scroller__vertScrollFg = document.createElement('div'); - elVertScrollBg.appendChild(elVertScrollFg); - elVertScrollFg.setAttribute('style', 'position: absolute; left: 0px; top: 0px; visibility: hidden; width: 15px; height: 800px; background-color: rgba(255,255,255,0.25098); pointer-events: auto;'); - elVertScrollFg.className='ggskin ggskin_scrollarea_vscrollfg'; - me._node_scroller.ggScrollPosY = 0; - me._node_scroller.ggScrollPosYPercent = 0.0; - elVertScrollFg.onmousedown = function(e) { - if (player.getOS() == 1 && navigator.maxTouchPoints > 0) return; - e = e || window.event; - e.preventDefault(); - e.stopPropagation(); - me._node_scroller.ggDragLastY = e.clientY; - document.onmouseup = function() { - let inertiaInterval = setInterval(function() { - me._node_scroller.ggDragInertiaY *= 0.65; - me._node_scroller.ggScrollByY(me._node_scroller.ggDragInertiaY); - if (Math.abs(me._node_scroller.ggDragInertiaY) < 1.0) { - clearInterval(inertiaInterval); - } - }, 50); - document.onmouseup = null; - document.onmousemove = null; - } - document.onmousemove = function(e) { - e = e || window.event; - e.preventDefault(); - var diffY = e.clientY - me._node_scroller.ggDragLastY; - me._node_scroller.ggDragInertiaY = diffY; - me._node_scroller.ggDragLastY = e.clientY; - me._node_scroller.ggScrollByY(diffY); - } - } - elVertScrollFg.ontouchstart = function(e) { - e = e || window.event; - e.preventDefault(); - e.stopPropagation(); - var t = e.touches; - me._node_scroller.ggDragLastY = t ? t[0].clientY : e.clientY; - document.ontouchend = function() { - let inertiaInterval = setInterval(function() { - me._node_scroller.ggDragInertiaY *= 0.65; - me._node_scroller.ggScrollByY(me._node_scroller.ggDragInertiaY); - if (Math.abs(me._node_scroller.ggDragInertiaY) < 1.0) { - clearInterval(inertiaInterval); - } - }, 50); - document.ontouchend = null; - document.ontouchmove = null; - document.onpointerup = null; - document.onpointermove = null; - } - if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { - document.onpointerup = document.ontouchend; - } - document.ontouchmove = function(e) { - e = e || window.event; - e.preventDefault(); - var t = e.touches; - var diffY = (t ? t[0].clientY : e.clientY) - me._node_scroller.ggDragLastY; - me._node_scroller.ggDragInertiaY = diffY; - me._node_scroller.ggDragLastY = t ? t[0].clientY : e.clientY; - me._node_scroller.ggScrollByY(diffY); - } - if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { - document.onpointermove = document.ontouchmove; - } - } - if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { - elVertScrollFg.onpointerdown = elVertScrollFg.ontouchstart; - } - elVertScrollBg.onmousedown = function(e) { - e = e || window.event; - e.preventDefault(); - var diffY = me._node_scroller.ggScrollHeight; - if (e.offsetY < me._node_scroller.ggScrollPosY) { - diffY = diffY * -1; - } - me._node_scroller.ggScrollByYSmooth(diffY); - } - elVertScrollBg.ontouchstart = function(e) { - e = e || window.event; - e.preventDefault(); - e.stopPropagation(); - var t = e.touches; - var rect = me._node_scroller__vertScrollBg.getBoundingClientRect(); - var diffY = me._node_scroller.ggScrollHeight; - if ((t[0].clientY - rect.top) < me._node_scroller.ggScrollPosY) { - diffY = diffY * -1; - } - me._node_scroller.ggScrollByYSmooth(diffY); - } - el.addEventListener('wheel', function(e) { - e.preventDefault(); - var wheelDelta = Math.sign(e.deltaY); - me._node_scroller.ggScrollByYSmooth(30 * me._node_scroller.ggVPercentVisible * wheelDelta); - }); - elCornerBg = me._node_scroller__cornerBg = document.createElement('div'); - el.appendChild(elCornerBg); - elCornerBg.setAttribute('style', 'position: absolute; right: 0px; bottom: 0px; visibility: hidden; width: 15px; height: 15px; background-color: rgba(255,255,255,1);'); - elCornerBg.className='ggskin ggskin_scrollarea_scrollcorner'; - el.ggId="node_scroller"; + me._image_popup.appendChild(me._loading_image); + el=me._popup_image=document.createElement('div'); + els=me._popup_image__img=document.createElement('img'); + els.className='ggskin ggskin_external'; + els.setAttribute('style','position: absolute;-webkit-user-drag:none;pointer-events:none;;'); + els.onload=function() {me._popup_image.ggUpdatePosition();} + el.ggText=basePath + ""; + els.setAttribute('src', el.ggText); + els['ondragstart']=function() { return false; }; + hs =''; + el.appendChild(els); + el.ggSubElement = els; + el.ggId="popup_image"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; - el.ggVisible=true; - el.className="ggskin ggskin_scrollarea "; - el.ggType='scrollarea'; + el.ggVisible=false; + el.className="ggskin ggskin_external "; + el.ggType='external'; hs =''; hs+='border : 0px solid #000000;'; - hs+='height : calc(100% - 50px);'; - hs+='left : 0px;'; - hs+='opacity : 0;'; - hs+='overflow : hidden;'; + hs+='cursor : default;'; + hs+='height : 100%;'; + hs+='left : -0.19%;'; hs+='position : absolute;'; - hs+='top : 50px;'; + hs+='top : 0%;'; hs+='visibility : hidden;'; - hs+='width : 178px;'; + hs+='width : 100%;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; - me._node_scroller.ggIsActive=function() { + me._popup_image.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } @@ -4154,684 +3986,271 @@ function pano2vrSkin(player,base) { } return player.getCurrentNode(); } - me._node_scroller.logicBlock_alpha = function() { - var newLogicStateAlpha; + me._popup_image.logicBlock_visible = function() { + var newLogicStateVisible; if ( - ((player.getVariableValue('category_visible') == true)) && - ((player.getVariableValue('node_visible') == true)) + ((player.getVariableValue('vis_image_popup') == true)) ) { - newLogicStateAlpha = 0; + newLogicStateVisible = 0; } else { - newLogicStateAlpha = -1; + newLogicStateVisible = -1; } - if (me._node_scroller.ggCurrentLogicStateAlpha != newLogicStateAlpha) { - me._node_scroller.ggCurrentLogicStateAlpha = newLogicStateAlpha; - me._node_scroller.style[domTransition]='opacity 500ms ease 0ms'; - if (me._node_scroller.ggCurrentLogicStateAlpha == 0) { - me._node_scroller.style.visibility=me._node_scroller.ggVisible?'inherit':'hidden'; - me._node_scroller.style.opacity=1; + if (me._popup_image.ggCurrentLogicStateVisible != newLogicStateVisible) { + me._popup_image.ggCurrentLogicStateVisible = newLogicStateVisible; + me._popup_image.style[domTransition]=''; + if (me._popup_image.ggCurrentLogicStateVisible == 0) { + me._popup_image.style.visibility=(Number(me._popup_image.style.opacity)>0||!me._popup_image.style.opacity)?'inherit':'hidden'; + me._popup_image.ggSubElement.src=me._popup_image.ggText; + me._popup_image.ggVisible=true; } else { - setTimeout(function() { if (me._node_scroller.style.opacity == 0.0) { me._node_scroller.style.visibility="hidden"; } }, 505); - me._node_scroller.style.opacity=0; + me._popup_image.style.visibility="hidden"; + me._popup_image__img.src = ''; + me._popup_image.ggVisible=false; } } } - me._node_scroller.ggUpdatePosition=function (useTransition) { - { - var horScrollWasVisible = this.ggHorScrollVisible; - var vertScrollWasVisible = this.ggVertScrollVisible; - this.ggContent.style.left = '0px'; - this.ggContent.style.top = '0px'; - this.ggContentLeftOffset = 0; - this.ggContentTopOffset = 0; - this.ggContentWidth = 0; - this.ggContentHeight = 0; - var offsetWidthWithScale = this.getBoundingClientRect().width; - var offsetHeightWithScale = this.getBoundingClientRect().height; - var domRectContent = this.ggContent.getBoundingClientRect(); - var minX = 0; - var minY = 0; - var maxX = 0; - var maxY = 0; - var stack=[]; - stack.push(this.ggContent); - while(stack.length>0) { - var e=stack.pop(); - if (e!=this.ggContent && e.getBoundingClientRect && e.style['display']!='none') { - var domRectChild = e.getBoundingClientRect(); - var diffX = domRectChild.left - domRectContent.left; - minX = Math.min(minX, diffX); - maxX = Math.max(maxX, diffX + domRectChild.width); - var diffY = domRectChild.top - domRectContent.top; - minY = Math.min(minY, diffY); - maxY = Math.max(maxY, diffY + domRectChild.height); - } - if (e.hasChildNodes() && e.style['display']!='none') { - for(var i=0;i this.clientHeight - 15) || (!me._node_scroller.ggHorScrollVisible && contentHeight > this.clientHeight)) { - me._node_scroller__vertScrollBg.style.visibility = 'inherit'; - me._node_scroller__vertScrollFg.style.visibility = 'inherit'; - me._node_scroller.ggVertScrollVisible = true; - } else { - me._node_scroller__vertScrollBg.style.visibility = 'hidden'; - me._node_scroller__vertScrollFg.style.visibility = 'hidden'; - me._node_scroller.ggVertScrollVisible = false; - } - if(me._node_scroller.ggVertScrollVisible) { - me._node_scroller.ggAvailableWidth = me._node_scroller.clientWidth - 15; - if (me._node_scroller.ggHorScrollVisible) { - me._node_scroller.ggAvailableHeight = me._node_scroller.clientHeight - 15; - me._node_scroller.ggAvailableHeightWithScale = me._node_scroller.getBoundingClientRect().height - me._node_scroller__vertScrollBg.getBoundingClientRect().width; - me._node_scroller__cornerBg.style.visibility = 'inherit'; - } else { - me._node_scroller.ggAvailableHeight = me._node_scroller.clientHeight; - me._node_scroller.ggAvailableHeightWithScale = me._node_scroller.getBoundingClientRect().height; - me._node_scroller__cornerBg.style.visibility = 'hidden'; - } - me._node_scroller__vertScrollBg.style.height = me._node_scroller.ggAvailableHeight + 'px'; - me._node_scroller.ggVPercentVisible = contentHeight != 0 ? me._node_scroller.ggAvailableHeightWithScale / contentHeight : 0.0; - if (me._node_scroller.ggVPercentVisible > 1.0) me._node_scroller.ggVPercentVisible = 1.0; - me._node_scroller.ggScrollHeight = Math.round(me._node_scroller__vertScrollBg.offsetHeight * me._node_scroller.ggVPercentVisible); - me._node_scroller__vertScrollFg.style.height = me._node_scroller.ggScrollHeight + 'px'; - me._node_scroller.ggScrollPosY = me._node_scroller.ggScrollPosYPercent * me._node_scroller.ggAvailableHeight; - me._node_scroller.ggScrollPosY = Math.min(me._node_scroller.ggScrollPosY, me._node_scroller__vertScrollBg.offsetHeight - me._node_scroller__vertScrollFg.offsetHeight); - me._node_scroller__vertScrollFg.style.top = me._node_scroller.ggScrollPosY + 'px'; - if (me._node_scroller.ggVPercentVisible < 1.0) { - let percentScrolled = me._node_scroller.ggScrollPosY / (me._node_scroller__vertScrollBg.offsetHeight - me._node_scroller__vertScrollFg.offsetHeight); - me._node_scroller__content.style.top = -(Math.round((me._node_scroller.ggContentHeight * (1.0 - me._node_scroller.ggVPercentVisible)) * percentScrolled)) + me._node_scroller.ggContentTopOffset + 'px'; - } - } else { - me._node_scroller.ggAvailableWidth = me._node_scroller.clientWidth; - me._node_scroller.ggScrollPosY = 0; - me._node_scroller.ggScrollPosYPercent = 0.0; - me._node_scroller__content.style.top = this.ggContentTopOffset + 'px'; - me._node_scroller__cornerBg.style.visibility = 'hidden'; - } - if(horScrollWasVisible != me._node_scroller.ggHorScrollVisible || vertScrollWasVisible != me._node_scroller.ggVertScrollVisible) { - me.updateSize(me._node_scroller); - me._node_scroller.ggUpdatePosition(); - } - } - } - el=me._node_cloner=document.createElement('div'); - el.ggPermeable=false; - el.ggNumRepeat = 1; - el.ggNumRows = 0; - el.ggNumCols = 0; - el.ggWidth = 140; - el.ggHeight = 100; - el.ggUpdating = false; - el.ggFilter = []; - el.ggInstances = []; - me._node_cloner.callChildLogicBlocks_changenode = function(){ - if(me._node_cloner.ggInstances) { - var i; - for(i = 0; i < me._node_cloner.ggInstances.length; i++) { - if (me._node_cloner.ggInstances[i]._node_title && me._node_cloner.ggInstances[i]._node_title.logicBlock_visible) { - me._node_cloner.ggInstances[i]._node_title.logicBlock_visible(); - } - } - } - } - me._node_cloner.callChildLogicBlocks_mouseover = function(){ - if(me._node_cloner.ggInstances) { - var i; - for(i = 0; i < me._node_cloner.ggInstances.length; i++) { - if (me._node_cloner.ggInstances[i]._node_visited && me._node_cloner.ggInstances[i]._node_visited.logicBlock_bordercolor) { - me._node_cloner.ggInstances[i]._node_visited.logicBlock_bordercolor(); - } - } - } - } - me._node_cloner.callChildLogicBlocks_active = function(){ - if(me._node_cloner.ggInstances) { - var i; - for(i = 0; i < me._node_cloner.ggInstances.length; i++) { - if (me._node_cloner.ggInstances[i]._node_visited && me._node_cloner.ggInstances[i]._node_visited.logicBlock_bordercolor) { - me._node_cloner.ggInstances[i]._node_visited.logicBlock_bordercolor(); - } - } - } - } - me._node_cloner.callChildLogicBlocks_changevisitednodes = function(){ - if(me._node_cloner.ggInstances) { - var i; - for(i = 0; i < me._node_cloner.ggInstances.length; i++) { - if (me._node_cloner.ggInstances[i]._node_visited && me._node_cloner.ggInstances[i]._node_visited.logicBlock_bordercolor) { - me._node_cloner.ggInstances[i]._node_visited.logicBlock_bordercolor(); - } - } - } - } - me._node_cloner.callChildLogicBlocks_activehotspotchanged = function(){ - if(me._node_cloner.ggInstances) { - var i; - for(i = 0; i < me._node_cloner.ggInstances.length; i++) { - if (me._node_cloner.ggInstances[i]._node_title && me._node_cloner.ggInstances[i]._node_title.logicBlock_visible) { - me._node_cloner.ggInstances[i]._node_title.logicBlock_visible(); - } - } - } - } - el.ggUpdate = function(filter) { - if(me._node_cloner.ggUpdating == true) return; - me._node_cloner.ggUpdating = true; - var el=me._node_cloner; - var curNumCols = 0; - curNumCols = me._node_cloner.ggNumRepeat; - if (curNumCols < 1) curNumCols = 1; - if (typeof filter=='object') { - el.ggFilter = filter; + me._popup_image.ggUpdatePosition=function (useTransition) { + var parentWidth = me._popup_image.clientWidth; + var parentHeight = me._popup_image.clientHeight; + var img = me._popup_image__img; + var aspectRatioDiv = me._popup_image.clientWidth / me._popup_image.clientHeight; + var aspectRatioImg = img.naturalWidth / img.naturalHeight; + if (img.naturalWidth < parentWidth) parentWidth = img.naturalWidth; + if (img.naturalHeight < parentHeight) parentHeight = img.naturalHeight; + var currentWidth,currentHeight; + if (aspectRatioDiv > aspectRatioImg) { + currentHeight = parentHeight; + currentWidth = parentHeight * aspectRatioImg; + img.style.width=''; + img.style.height=parentHeight + 'px'; } else { - filter = el.ggFilter; + currentWidth = parentWidth; + currentHeight = parentWidth / aspectRatioImg; + img.style.width=parentWidth + 'px'; + img.style.height=''; }; - if (me.ggTag) filter.push(me.ggTag); - filter=filter.sort(); - if ((el.ggNumCols == curNumCols) && (el.ggInstances.length > 0) && (filter.length === el.ggCurrentFilter.length) && (filter.every(function(value, index) { return value === el.ggCurrentFilter[index] }) )) { - me._node_cloner.ggUpdating = false; - return; - } else { - el.ggNumRows = 1; - el.ggNumCols = curNumCols; - } - el.ggCurrentFilter = filter; - el.ggInstances = []; - if (el.hasChildNodes() == true) { - while (el.firstChild) { - el.removeChild(el.firstChild); - } - } - var tourNodes = player.getNodeIds(); - var row = 0; - var column = 0; - var currentIndex = 0; - for (var i=0; i < tourNodes.length; i++) { - var nodeId = tourNodes[i]; - var passed = true; - var nodeData = player.getNodeUserdata(nodeId); - if (filter.length > 0) { - for (var j=0; j < filter.length; j++) { - if (nodeData['tags'].indexOf(filter[j]) == -1) passed = false; - } - } - if (passed) { - var parameter={}; - parameter.top=(row * me._node_cloner.ggHeight) + 'px'; - parameter.left=(column * me._node_cloner.ggWidth) + 'px'; - parameter.width=me._node_cloner.ggWidth + 'px'; - parameter.height=me._node_cloner.ggHeight + 'px'; - parameter.index=currentIndex; - parameter.title=nodeData['title']; - var inst = new SkinCloner_node_cloner_Class(nodeId, me, el, parameter); - currentIndex++; - el.ggInstances.push(inst); - el.appendChild(inst.__div); - inst.__div.ggObj=inst; - skin.updateSize(inst.__div); - column++; - if (column >= el.ggNumCols) { - column = 0; - row++; - el.ggNumRows++; - } - } - } - me._node_cloner.callChildLogicBlocks_changenode(); - me._node_cloner.callChildLogicBlocks_mouseover(); - me._node_cloner.callChildLogicBlocks_active(); - me._node_cloner.callChildLogicBlocks_changevisitednodes(); - me._node_cloner.callChildLogicBlocks_activehotspotchanged(); - me._node_cloner.ggUpdating = false; - player.triggerEvent('clonerchanged'); - if (me._node_cloner.parentNode.classList.contains('ggskin_subelement') && me._node_cloner.parentNode.parentNode.classList.contains('ggskin_scrollarea')) me._node_cloner.parentNode.parentNode.ggUpdatePosition(); + img.style.left='50%'; + img.style.marginLeft='-' + currentWidth/2 + 'px'; + img.style.top='50%'; + img.style.marginTop='-' + currentHeight/2 + 'px'; } - el.ggFilter = []; - el.ggFilter[0] = "_nop_"; - el.ggId="node_cloner"; + me._image_popup.appendChild(me._popup_image); + me.divSkin.appendChild(me._image_popup); + el=me._image_popup_close=document.createElement('div'); + els=me._image_popup_close__img=document.createElement('img'); + els.className='ggskin ggskin_svg'; + hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHk9IjBweCIgYmFzZVByb2ZpbGU9InRpbnkiIHZpZXdCb3g9Ii0yNDAgMzMyIDEzMCAxMzAiIHg9IjBweCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CiA8ZyBpZD0iTG'+ + 'F5ZXJfMV8xXyI+CiAgPHBhdGggZD0iTS0xMzUuMywzNTcuM2MtMjEuOS0yMS45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OGwtMTUuNywxNS43Yy0wLjQsMC40LTAuOCwwLjUtMS4zLDAuNXMtMC45LTAuMS0xLjEtMC40bC0xMS4xLTExLjFjLTAuMy0wLjMtMC40LTAuNi0wLjQtMS4xJiN4ZDsmI3hhOyYjeDk7JiN4OTtjMC0wLjUsMC4xLTAuOSwwLjUtMS4zbDE1LjctMTUuN2wtMTUuOC0xNS44Yy0wLjMtMC4zLTAuNC0wLjYtMC40'+ + 'LTEuMWMwLTAuNSwwLjEtMC45LDAuNS0xLjNsMTAuOS0xMC45YzAuOS0wLjksMS43LTAuOSwyLjQtMC4xJiN4ZDsmI3hhOyYjeDk7JiN4OTtsMTUuOCwxNS44bDE1LjctMTUuN2MwLjktMC45LDEuNy0wLjksMi40LTAuMWwxMS4xLDExLjFjMC44LDAuOCwwLjgsMS41LTAuMSwyLjRMLTE2MS42LDM5Ni45eiIgZmlsbD0iI0ZGRkZGRiIvPgogPC9nPgo8L3N2Zz4K'; + me._image_popup_close__img.setAttribute('src',hs); + els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); + els['ondragstart']=function() { return false; }; + el.appendChild(els); + el.ggSubElement = els; + elo=me._image_popup_close__imgo=document.createElement('img'); + elo.className='ggskin ggskin_svg'; + hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHk9IjBweCIgYmFzZVByb2ZpbGU9In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YuOWwxNy41LDE3LjVjMC44LDAuOCwwLjgsMS43LTAuMSwyLjdsLTEyLjIsMTIuMmMtMC40LDAuNC0wLjgsMC42LTEuNCwwLjYmI3hkOyYjeGE7JiN4OTsmI3g5O2MtMC42LDAtMS0wLjEtMS4zLTAuNGwtMTcuNS0xNy41bC0xNy40LDE3LjRjLTAuNCwwLjQtMC44LDAuNi0xLjQsMC42Yy0wLjYsMC0xLTAuMS0xLjMtMC40bC0xMi4zLTEyLjNjLTAuMy0wLjMtMC40LTAuNy0wLjQtMS4zJiN4ZDsmI3hhOyYjeDk7JiN4OTtjMC0wLjYsMC4xLTEsMC42LTEuNGwxNy40LTE3LjRsLTE3LjUtMTcuNWMtMC4zLTAuMy0wLjQtMC43LTAuNC0xLjNjMC0wLjYsMC4x'+ + 'LTEsMC42LTEuNGwxMi4yLTEyLjJjMS0xLDEuOC0xLDIuNy0wLjFsMTcuNSwxNy41JiN4ZDsmI3hhOyYjeDk7JiN4OTtsMTcuNC0xNy40YzEtMSwxLjgtMSwyLjctMC4xbDEyLjMsMTIuM2MwLjgsMC44LDAuOCwxLjctMC4xLDIuN0wtMTYwLjEsMzk2Ljl6IiBmaWxsPSIjRkZGRkZGIi8+CiA8L2c+Cjwvc3ZnPgo='; + me._image_popup_close__imgo.setAttribute('src',hs); + elo.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;visibility:hidden;pointer-events:none;;'); + elo['ondragstart']=function() { return false; }; + el.appendChild(elo); + el.ggId="image_popup_close"; + el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; - el.ggVisible=true; - el.className="ggskin ggskin_cloner "; - el.ggType='cloner'; + el.ggVisible=false; + el.className="ggskin ggskin_svg "; + el.ggType='svg'; hs =''; - hs+='height : 100px;'; - hs+='left : 10px;'; - hs+='overflow : visible;'; + hs+='cursor : pointer;'; + hs+='height : 32px;'; + hs+='left : -10000px;'; hs+='position : absolute;'; - hs+='top : 0px;'; - hs+='visibility : inherit;'; - hs+='width : 140px;'; + hs+='top : 50px;'; + hs+='visibility : hidden;'; + hs+='width : 32px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; - me._node_cloner.ggIsActive=function() { - if ((this.parentNode) && (this.parentNode.ggIsActive)) { - return this.parentNode.ggIsActive(); - } + me._image_popup_close.ggIsActive=function() { return false; } el.ggElementNodeId=function() { - if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { - return this.parentNode.ggElementNodeId(); - } return player.getCurrentNode(); } - me._node_cloner.ggUpdateConditionNodeChange=function () { - var cnode=player.getCurrentNode(); - for(var i=0; i= 1.0) return; - me._category_scroller.ggScrollPosX = (me._category_scroller__horScrollFg.offsetLeft + diffX); - me._category_scroller.ggScrollPosX = Math.max(me._category_scroller.ggScrollPosX, 0); - me._category_scroller.ggScrollPosX = Math.min(me._category_scroller.ggScrollPosX, me._category_scroller__horScrollBg.offsetWidth - me._category_scroller__horScrollFg.offsetWidth); - me._category_scroller__horScrollFg.style.left = me._category_scroller.ggScrollPosX + 'px'; - let percentScrolled = me._category_scroller.ggScrollPosX / (me._category_scroller__horScrollBg.offsetWidth - me._category_scroller__horScrollFg.offsetWidth); - me._category_scroller__content.style.left = -(Math.round((me._category_scroller.ggContentWidth * (1.0 - me._category_scroller.ggHPercentVisible)) * percentScrolled)) + me._category_scroller.ggContentLeftOffset + 'px'; - me._category_scroller.ggScrollPosXPercent = (me._category_scroller__horScrollFg.offsetLeft / me._category_scroller__horScrollBg.offsetWidth); - } - me._category_scroller.ggScrollByXSmooth = function(diffX) { - if(!me._category_scroller.ggHorScrollVisible || diffX == 0 || me._category_scroller.ggHPercentVisible >= 1.0) return; - var scrollPerInterval = diffX / 25; - var scrollCurrX = 0; - var id = setInterval(function() { - scrollCurrX += scrollPerInterval; - me._category_scroller.ggScrollPosX += scrollPerInterval; - if (diffX > 0 && (scrollCurrX >= diffX || me._category_scroller.ggScrollPosX >= me._category_scroller__horScrollBg.offsetWidth - me._category_scroller__horScrollFg.offsetWidth)) { - me._category_scroller.ggScrollPosX = Math.min(me._category_scroller.ggScrollPosX, me._category_scroller__horScrollBg.offsetWidth - me._category_scroller__horScrollFg.offsetWidth); - clearInterval(id); + else { + newLogicStateVisible = -1; + } + if (me._image_popup_close.ggCurrentLogicStateVisible != newLogicStateVisible) { + me._image_popup_close.ggCurrentLogicStateVisible = newLogicStateVisible; + me._image_popup_close.style[domTransition]=''; + if (me._image_popup_close.ggCurrentLogicStateVisible == 0) { + me._image_popup_close.style.visibility=(Number(me._image_popup_close.style.opacity)>0||!me._image_popup_close.style.opacity)?'inherit':'hidden'; + me._image_popup_close.ggVisible=true; } - if (diffX < 0 && (scrollCurrX <= diffX || me._category_scroller.ggScrollPosX <= 0)) { - me._category_scroller.ggScrollPosX = Math.max(me._category_scroller.ggScrollPosX, 0); - clearInterval(id); + else { + me._image_popup_close.style.visibility="hidden"; + me._image_popup_close.ggVisible=false; } - me._category_scroller__horScrollFg.style.left = me._category_scroller.ggScrollPosX + 'px'; - let percentScrolled = me._category_scroller.ggScrollPosX / (me._category_scroller__horScrollBg.offsetWidth - me._category_scroller__horScrollFg.offsetWidth); - me._category_scroller__content.style.left = -(Math.round((me._category_scroller.ggContentWidth * (1.0 - me._category_scroller.ggHPercentVisible)) * percentScrolled)) + me._category_scroller.ggContentLeftOffset + 'px'; - me._category_scroller.ggScrollPosXPercent = (me._category_scroller__horScrollFg.offsetLeft / me._category_scroller__horScrollBg.offsetWidth); - }, 10); + } } - me._category_scroller.ggScrollByY = function(diffY) { - if(!me._category_scroller.ggVertScrollVisible || diffY == 0 || me._category_scroller.ggVPercentVisible >= 1.0) return; - me._category_scroller.ggScrollPosY = (me._category_scroller__vertScrollFg.offsetTop + diffY); - me._category_scroller.ggScrollPosY = Math.max(me._category_scroller.ggScrollPosY, 0); - me._category_scroller.ggScrollPosY = Math.min(me._category_scroller.ggScrollPosY, me._category_scroller__vertScrollBg.offsetHeight - me._category_scroller__vertScrollFg.offsetHeight); - me._category_scroller__vertScrollFg.style.top = me._category_scroller.ggScrollPosY + 'px'; - let percentScrolled = me._category_scroller.ggScrollPosY / (me._category_scroller__vertScrollBg.offsetHeight - me._category_scroller__vertScrollFg.offsetHeight); - me._category_scroller__content.style.top = -(Math.round((me._category_scroller.ggContentHeight * (1.0 - me._category_scroller.ggVPercentVisible)) * percentScrolled)) + me._category_scroller.ggContentTopOffset + 'px'; - me._category_scroller.ggScrollPosYPercent = (me._category_scroller__vertScrollFg.offsetTop / me._category_scroller__vertScrollBg.offsetHeight); + me._image_popup_close.onclick=function (e) { + player.setVariableValue('vis_image_popup', false); } - me._category_scroller.ggScrollByYSmooth = function(diffY) { - if(!me._category_scroller.ggVertScrollVisible || diffY == 0 || me._category_scroller.ggVPercentVisible >= 1.0) return; - var scrollPerInterval = diffY / 25; - var scrollCurrY = 0; - var id = setInterval(function() { - scrollCurrY += scrollPerInterval; - me._category_scroller.ggScrollPosY += scrollPerInterval; - if (diffY > 0 && (scrollCurrY >= diffY || me._category_scroller.ggScrollPosY >= me._category_scroller__vertScrollBg.offsetHeight - me._category_scroller__vertScrollFg.offsetHeight)) { - me._category_scroller.ggScrollPosY = Math.min(me._category_scroller.ggScrollPosY, me._category_scroller__vertScrollBg.offsetHeight - me._category_scroller__vertScrollFg.offsetHeight); - clearInterval(id); - } - if (diffY < 0 && (scrollCurrY <= diffY || me._category_scroller.ggScrollPosY <= 0)) { - me._category_scroller.ggScrollPosY = Math.max(me._category_scroller.ggScrollPosY, 0); - clearInterval(id); - } - me._category_scroller__vertScrollFg.style.top = me._category_scroller.ggScrollPosY + 'px'; - let percentScrolled = me._category_scroller.ggScrollPosY / (me._category_scroller__vertScrollBg.offsetHeight - me._category_scroller__vertScrollFg.offsetHeight); - me._category_scroller__content.style.top = -(Math.round((me._category_scroller.ggContentHeight * (1.0 - me._category_scroller.ggVPercentVisible)) * percentScrolled)) + me._category_scroller.ggContentTopOffset + 'px'; - me._category_scroller.ggScrollPosYPercent = (me._category_scroller__vertScrollFg.offsetTop / me._category_scroller__vertScrollBg.offsetHeight); - }, 10); + me._image_popup_close.onmouseover=function (e) { + me._image_popup_close__img.style.visibility='hidden'; + me._image_popup_close__imgo.style.visibility='inherit'; } - me._category_scroller.ggScrollIntoView = function(posX, posY, width, height) { - if (me._category_scroller.ggHorScrollVisible) { - if (posX < 0) { - var diffX = Math.floor(posX * me._category_scroller.ggHPercentVisible); - me._category_scroller.ggScrollByXSmooth(diffX); - } else if (posX + width > me._category_scroller.clientWidth - (me._category_scroller.ggVertScrollVisible ? 15 : 0)) { - var diffX = Math.ceil(((posX + width) - (me._category_scroller.clientWidth - (me._category_scroller.ggVertScrollVisible ? 15 : 0))) * me._category_scroller.ggHPercentVisible); - me._category_scroller.ggScrollByXSmooth(diffX); - } - } - if (me._category_scroller.ggVertScrollVisible) { - if (posY < 0) { - var diffY = Math.floor(posY * me._category_scroller.ggVPercentVisible); - me._category_scroller.ggScrollByYSmooth(diffY); - } else if (posY + height > me._category_scroller.clientHeight - (me._category_scroller.ggHorScrollVisible ? 15 : 0)) { - var diffY = Math.ceil(((posY + height) - (me._category_scroller.clientHeight - (me._category_scroller.ggHorScrollVisible ? 15 : 0))) * me._category_scroller.ggVPercentVisible); - me._category_scroller.ggScrollByYSmooth(diffY); - } - } + me._image_popup_close.onmouseout=function (e) { + me._image_popup_close__img.style.visibility='inherit'; + me._image_popup_close__imgo.style.visibility='hidden'; } - els.ontouchstart = function(e) { - e = e || window.event; - var t = e.touches; - me._category_scroller.ggDragLastX = t ? t[0].clientX : e.clientX; - me._category_scroller.ggDragLastY = t ? t[0].clientY : e.clientY; - me._category_scroller__content.ontouchend = function() { - let inertiaInterval = setInterval(function() { - me._category_scroller.ggDragInertiaX *= 0.65; - me._category_scroller.ggDragInertiaY *= 0.65; - me._category_scroller.ggScrollByX(me._category_scroller.ggDragInertiaX); - me._category_scroller.ggScrollByY(me._category_scroller.ggDragInertiaY); - if (Math.abs(me._category_scroller.ggDragInertiaX) < 1.0 && Math.abs(me._category_scroller.ggDragInertiaY) < 1.0) { - clearInterval(inertiaInterval); - } - }, 50); - me._category_scroller__content.ontouchend = null; - me._category_scroller__content.ontouchmove = null; - me._category_scroller__content.onpointerup = null; - me._category_scroller__content.onpointermove = null; + me._image_popup_close.ggUpdatePosition=function (useTransition) { + if (useTransition==='undefined') { + useTransition = false; } - if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { - me._category_scroller__content.onpointerup = me._category_scroller__content.ontouchend; - } - me._category_scroller__content.ontouchmove = function(e) { - e = e || window.event; - e.preventDefault(); - var t = e.touches; - var diffX = ((t ? t[0].clientX : e.clientX) - me._category_scroller.ggDragLastX) * me._category_scroller.ggHPercentVisible; - var diffY = ((t ? t[0].clientY : e.clientY) - me._category_scroller.ggDragLastY) * me._category_scroller.ggVPercentVisible; - me._category_scroller.ggDragInertiaX = -diffX; - me._category_scroller.ggDragInertiaY = -diffY; - me._category_scroller.ggDragLastX = t ? t[0].clientX : e.clientX; - me._category_scroller.ggDragLastY = t ? t[0].clientY : e.clientY; - me._category_scroller.ggScrollByX(-diffX); - me._category_scroller.ggScrollByY(-diffY); + if (!useTransition) { + this.style[domTransition]='none'; } - if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { - me._category_scroller__content.onpointermove = me._category_scroller__content.ontouchmove; + if (this.parentNode) { + var pw=this.parentNode.clientWidth; + var w=this.offsetWidth; + this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; } } - if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { - els.onpointerdown = els.ontouchstart; + me.divSkin.appendChild(me._image_popup_close); + el=me._timer_1=document.createElement('div'); + el.ggTimestamp=this.ggCurrentTime; + el.ggLastIsActive=true; + el.ggTimeout=250; + el.ggId="Timer 1"; + el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; + el.ggVisible=true; + el.className="ggskin ggskin_timer "; + el.ggType='timer'; + hs =''; + hs+='height : 20px;'; + hs+='left : 1px;'; + hs+='position : absolute;'; + hs+='top : 5px;'; + hs+='visibility : inherit;'; + hs+='width : 100px;'; + hs+='pointer-events:none;'; + el.setAttribute('style',hs); + el.style[domTransform + 'Origin']='50% 50%'; + me._timer_1.ggIsActive=function() { + return (me._timer_1.ggTimestamp==0 ? false : (Math.floor((me.ggCurrentTime - me._timer_1.ggTimestamp) / me._timer_1.ggTimeout) % 2 == 0)); } - elHorScrollBg = me._category_scroller__horScrollBg = document.createElement('div'); - el.appendChild(elHorScrollBg); - elHorScrollBg.setAttribute('style', 'position: absolute; left: 0px; bottom: 0px; visibility: hidden; width: 178px; height: 15px; background-color: rgba(128,128,128,0.752941); pointer-events: auto;'); - elHorScrollBg.className='ggskin ggskin_scrollarea_hscrollbg'; - elHorScrollFg = me._category_scroller__horScrollFg = document.createElement('div'); - elHorScrollBg.appendChild(elHorScrollFg); - elHorScrollFg.className='ggskin ggskin_scrollarea_hscrollfg'; - elHorScrollFg.setAttribute('style', 'position: absolute; left: 0px; top: 0px; visibility: hidden; width: 178px; height: 15px; background-color: rgba(192,192,192,0.752941); pointer-events: auto;'); - me._category_scroller.ggScrollPosX = 0; - me._category_scroller.ggScrollPosXPercent = 0.0; - elHorScrollFg.onmousedown = function(e) { - if (player.getOS() == 1 && navigator.maxTouchPoints > 0) return; - e = e || window.event; - e.preventDefault(); - e.stopPropagation(); - me._category_scroller.ggDragLastX = e.clientX; - document.onmouseup = function() { - let inertiaInterval = setInterval(function() { - me._category_scroller.ggDragInertiaX *= 0.65; - me._category_scroller.ggScrollByX(me._category_scroller.ggDragInertiaX); - if (Math.abs(me._category_scroller.ggDragInertiaX) < 1.0) { - clearInterval(inertiaInterval); - } - }, 50); - document.onmouseup = null; - document.onmousemove = null; - } - document.onmousemove = function(e) { - e = e || window.event; - e.preventDefault(); - var diffX = e.clientX - me._category_scroller.ggDragLastX; - me._category_scroller.ggDragInertiaX = diffX; - me._category_scroller.ggDragLastX = e.clientX; - me._category_scroller.ggScrollByX(diffX); - } + el.ggElementNodeId=function() { + return player.getCurrentNode(); } - elHorScrollFg.ontouchstart = function(e) { - e = e || window.event; - e.preventDefault(); - e.stopPropagation(); - var t = e.touches; - me._category_scroller.ggDragLastX = t ? t[0].clientX : e.clientX; - document.ontouchend = function() { - let inertiaInterval = setInterval(function() { - me._category_scroller.ggDragInertiaX *= 0.65; - me._category_scroller.ggScrollByX(me._category_scroller.ggDragInertiaX); - if (Math.abs(me._category_scroller.ggDragInertiaX) < 1.0) { - clearInterval(inertiaInterval); - } - }, 50); - document.ontouchend = null; - document.ontouchmove = null; - document.onpointerup = null; - document.onpointermove = null; - } - if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { - document.onpointerup = document.ontouchend; - } - document.ontouchmove = function(e) { - e = e || window.event; - e.preventDefault(); - var t = e.touches; - var diffX = (t ? t[0].clientX : e.clientX) - me._category_scroller.ggDragLastX; - me._category_scroller.ggDragInertiaX = diffX; - me._category_scroller.ggDragLastX = t ? t[0].clientX : e.clientX; - me._category_scroller.ggScrollByX(diffX); - } - if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { - document.onpointermove = document.ontouchmove; - } - } - if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { - elHorScrollFg.onpointerdown = elHorScrollFg.ontouchstart; + me._timer_1.ggActivate=function () { + player.setVariableValue('var_hs', player.getVariableValue('var_hs') + Number("1")); + player.setVariableValue('var_hs', player.getVariableValue('var_hs') % Number("4")); } - elHorScrollBg.onmousedown = function(e) { - e = e || window.event; - e.preventDefault(); - var diffX = me._category_scroller.ggScrollWidth; - if (e.offsetX < me._category_scroller.ggScrollPosX) { - diffX = diffX * -1; - } - me._category_scroller.ggScrollByXSmooth(diffX); + me._timer_1.ggUpdatePosition=function (useTransition) { } - elHorScrollBg.ontouchstart = function(e) { - e = e || window.event; - e.preventDefault(); - e.stopPropagation(); - var t = e.touches; - var rect = me._category_scroller__horScrollBg.getBoundingClientRect(); - var diffX = me._category_scroller.ggScrollWidth; - if ((t[0].clientX - rect.left) < me._category_scroller.ggScrollPosX) { - diffX = diffX * -1; - } - me._category_scroller.ggScrollByXSmooth(diffX); + me.divSkin.appendChild(me._timer_1); + el=me._inicioflecha=document.createElement('div'); + el.ggId="InicioFlecha"; + el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; + el.ggVisible=true; + el.className="ggskin ggskin_container "; + el.ggType='container'; + hs =''; + hs+='bottom : 63px;'; + hs+='height : 99px;'; + hs+='position : absolute;'; + hs+='right : 7px;'; + hs+='visibility : inherit;'; + hs+='width : 80px;'; + hs+='pointer-events:none;'; + el.setAttribute('style',hs); + el.style[domTransform + 'Origin']='50% 50%'; + me._inicioflecha.ggIsActive=function() { + return false; } - el.addEventListener('wheel', function(e) { - e.preventDefault(); - var wheelDelta = Math.sign(e.deltaX); - me._category_scroller.ggScrollByXSmooth(30 * me._category_scroller.ggHPercentVisible * wheelDelta); - }); - elVertScrollBg = me._category_scroller__vertScrollBg = document.createElement('div'); - el.appendChild(elVertScrollBg); - elVertScrollBg.setAttribute('style', 'position: absolute; right: 0px; top: 0px; visibility: hidden; width: 15px; height: 480px; background-color: rgba(128,128,128,0.752941); pointer-events: auto;'); - elVertScrollBg.className='ggskin ggskin_scrollarea_vscrollbg'; - elVertScrollFg = me._category_scroller__vertScrollFg = document.createElement('div'); - elVertScrollBg.appendChild(elVertScrollFg); - elVertScrollFg.setAttribute('style', 'position: absolute; left: 0px; top: 0px; visibility: hidden; width: 15px; height: 480px; background-color: rgba(192,192,192,0.752941); pointer-events: auto;'); - elVertScrollFg.className='ggskin ggskin_scrollarea_vscrollfg'; - me._category_scroller.ggScrollPosY = 0; - me._category_scroller.ggScrollPosYPercent = 0.0; - elVertScrollFg.onmousedown = function(e) { - if (player.getOS() == 1 && navigator.maxTouchPoints > 0) return; - e = e || window.event; - e.preventDefault(); - e.stopPropagation(); - me._category_scroller.ggDragLastY = e.clientY; - document.onmouseup = function() { - let inertiaInterval = setInterval(function() { - me._category_scroller.ggDragInertiaY *= 0.65; - me._category_scroller.ggScrollByY(me._category_scroller.ggDragInertiaY); - if (Math.abs(me._category_scroller.ggDragInertiaY) < 1.0) { - clearInterval(inertiaInterval); - } - }, 50); - document.onmouseup = null; - document.onmousemove = null; - } - document.onmousemove = function(e) { - e = e || window.event; - e.preventDefault(); - var diffY = e.clientY - me._category_scroller.ggDragLastY; - me._category_scroller.ggDragInertiaY = diffY; - me._category_scroller.ggDragLastY = e.clientY; - me._category_scroller.ggScrollByY(diffY); - } + el.ggElementNodeId=function() { + return player.getCurrentNode(); } - elVertScrollFg.ontouchstart = function(e) { - e = e || window.event; - e.preventDefault(); - e.stopPropagation(); - var t = e.touches; - me._category_scroller.ggDragLastY = t ? t[0].clientY : e.clientY; - document.ontouchend = function() { - let inertiaInterval = setInterval(function() { - me._category_scroller.ggDragInertiaY *= 0.65; - me._category_scroller.ggScrollByY(me._category_scroller.ggDragInertiaY); - if (Math.abs(me._category_scroller.ggDragInertiaY) < 1.0) { - clearInterval(inertiaInterval); - } - }, 50); - document.ontouchend = null; - document.ontouchmove = null; - document.onpointerup = null; - document.onpointermove = null; - } - if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { - document.onpointerup = document.ontouchend; - } - document.ontouchmove = function(e) { - e = e || window.event; - e.preventDefault(); - var t = e.touches; - var diffY = (t ? t[0].clientY : e.clientY) - me._category_scroller.ggDragLastY; - me._category_scroller.ggDragInertiaY = diffY; - me._category_scroller.ggDragLastY = t ? t[0].clientY : e.clientY; - me._category_scroller.ggScrollByY(diffY); - } - if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { - document.onpointermove = document.ontouchmove; - } + me._inicioflecha.onmouseover=function (e) { + me.elementMouseOver['inicioflecha']=true; + me._inicio.logicBlock_alpha(); + me._inicioflecha0.logicBlock_alpha(); } - if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { - elVertScrollFg.onpointerdown = elVertScrollFg.ontouchstart; + me._inicioflecha.onmouseout=function (e) { + me.elementMouseOver['inicioflecha']=false; + me._inicio.logicBlock_alpha(); + me._inicioflecha0.logicBlock_alpha(); } - elVertScrollBg.onmousedown = function(e) { - e = e || window.event; - e.preventDefault(); - var diffY = me._category_scroller.ggScrollHeight; - if (e.offsetY < me._category_scroller.ggScrollPosY) { - diffY = diffY * -1; - } - me._category_scroller.ggScrollByYSmooth(diffY); + me._inicioflecha.ontouchend=function (e) { + me.elementMouseOver['inicioflecha']=false; + me._inicio.logicBlock_alpha(); + me._inicioflecha0.logicBlock_alpha(); } - elVertScrollBg.ontouchstart = function(e) { - e = e || window.event; - e.preventDefault(); - e.stopPropagation(); - var t = e.touches; - var rect = me._category_scroller__vertScrollBg.getBoundingClientRect(); - var diffY = me._category_scroller.ggScrollHeight; - if ((t[0].clientY - rect.top) < me._category_scroller.ggScrollPosY) { - diffY = diffY * -1; - } - me._category_scroller.ggScrollByYSmooth(diffY); + me._inicioflecha.ggUpdatePosition=function (useTransition) { } - el.addEventListener('wheel', function(e) { - e.preventDefault(); - var wheelDelta = Math.sign(e.deltaY); - me._category_scroller.ggScrollByYSmooth(30 * me._category_scroller.ggVPercentVisible * wheelDelta); - }); - elCornerBg = me._category_scroller__cornerBg = document.createElement('div'); - el.appendChild(elCornerBg); - elCornerBg.setAttribute('style', 'position: absolute; right: 0px; bottom: 0px; visibility: hidden; width: 15px; height: 15px; background-color: rgba(255,255,255,1);'); - elCornerBg.className='ggskin ggskin_scrollarea_scrollcorner'; - el.ggId="category_scroller"; + el=me._inicio=document.createElement('div'); + els=me._inicio__text=document.createElement('div'); + el.className='ggskin ggskin_textdiv'; + el.ggTextDiv=els; + el.ggId="inicio"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; - el.className="ggskin ggskin_scrollarea "; - el.ggType='scrollarea'; + el.className="ggskin ggskin_text "; + el.ggType='text'; hs =''; - hs+='border : 0px solid #000000;'; - hs+='height : calc(100% - 50px);'; - hs+='left : 0px;'; - hs+='overflow : hidden;'; + hs+='bottom : 50px;'; + hs+='height : 24px;'; + hs+='opacity : 0.3;'; hs+='position : absolute;'; - hs+='top : 50px;'; + hs+='right : -9px;'; hs+='visibility : inherit;'; - hs+='width : 178px;'; - hs+='pointer-events:none;'; + hs+='width : 100px;'; + hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; - me._category_scroller.ggIsActive=function() { + hs ='position:absolute;'; + hs += 'box-sizing: border-box;'; + hs+='cursor: default;'; + hs+='right: 0px;'; + hs+='bottom: 0px;'; + hs+='width: 102px;'; + hs+='height: 26px;'; + hs+='background: #ffffff;'; + hs+='background: rgba(255,255,255,0);'; + hs+='border: 1px solid #000000;'; + hs+='border: 1px solid rgba(0,0,0,0);'; + hs+=cssPrefix + 'background-clip: padding-box;'; + hs+='background-clip: padding-box;'; + hs+='color: #000000;'; + hs+='font-size: 19px;'; + hs+='font-weight: 600;'; + hs+='text-align: center;'; + hs+='white-space: nowrap;'; + hs+='padding: 0px 1px 0px 1px;'; + hs+='overflow: hidden;'; + hs+='overflow-y: auto;'; + els.setAttribute('style',hs); + els.innerHTML="INICIO"; + el.appendChild(els); + me._inicio.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } @@ -4843,279 +4262,320 @@ function pano2vrSkin(player,base) { } return player.getCurrentNode(); } - me._category_scroller.logicBlock_alpha = function() { - var newLogicStateAlpha; + me._inicio.logicBlock_visible = function() { + var newLogicStateVisible; if ( - ((player.getVariableValue('node_visible') == true)) || - ((player.getVariableValue('category_visible') == false)) + ((player.getVariableValue('Node1') == false)) ) { - newLogicStateAlpha = 0; + newLogicStateVisible = 0; } else { - newLogicStateAlpha = -1; + newLogicStateVisible = -1; } - if (me._category_scroller.ggCurrentLogicStateAlpha != newLogicStateAlpha) { - me._category_scroller.ggCurrentLogicStateAlpha = newLogicStateAlpha; - me._category_scroller.style[domTransition]='opacity 500ms ease 0ms'; - if (me._category_scroller.ggCurrentLogicStateAlpha == 0) { - setTimeout(function() { if (me._category_scroller.style.opacity == 0.0) { me._category_scroller.style.visibility="hidden"; } }, 505); - me._category_scroller.style.opacity=0; + if (me._inicio.ggCurrentLogicStateVisible != newLogicStateVisible) { + me._inicio.ggCurrentLogicStateVisible = newLogicStateVisible; + me._inicio.style[domTransition]='opacity 0s'; + if (me._inicio.ggCurrentLogicStateVisible == 0) { + me._inicio.style.visibility="hidden"; + me._inicio.ggVisible=false; } else { - me._category_scroller.style.visibility=me._category_scroller.ggVisible?'inherit':'hidden'; - me._category_scroller.style.opacity=1; + me._inicio.style.visibility=(Number(me._inicio.style.opacity)>0||!me._inicio.style.opacity)?'inherit':'hidden'; + me._inicio.ggVisible=true; } } } - me._category_scroller.ggUpdatePosition=function (useTransition) { + me._inicio.logicBlock_alpha = function() { + var newLogicStateAlpha; + if ( + ((me.elementMouseOver['inicioflecha'] == true)) + ) { - var horScrollWasVisible = this.ggHorScrollVisible; - var vertScrollWasVisible = this.ggVertScrollVisible; - this.ggContent.style.left = '0px'; - this.ggContent.style.top = '0px'; - this.ggContentLeftOffset = 0; - this.ggContentTopOffset = 0; - this.ggContentWidth = 0; - this.ggContentHeight = 0; - var offsetWidthWithScale = this.getBoundingClientRect().width; - var offsetHeightWithScale = this.getBoundingClientRect().height; - var domRectContent = this.ggContent.getBoundingClientRect(); - var minX = 0; - var minY = 0; - var maxX = 0; - var maxY = 0; - var stack=[]; - stack.push(this.ggContent); - while(stack.length>0) { - var e=stack.pop(); - if (e!=this.ggContent && e.getBoundingClientRect && e.style['display']!='none') { - var domRectChild = e.getBoundingClientRect(); - var diffX = domRectChild.left - domRectContent.left; - minX = Math.min(minX, diffX); - maxX = Math.max(maxX, diffX + domRectChild.width); - var diffY = domRectChild.top - domRectContent.top; - minY = Math.min(minY, diffY); - maxY = Math.max(maxY, diffY + domRectChild.height); - } - if (e.hasChildNodes() && e.style['display']!='none') { - for(var i=0;i Math.ceil(offsetWidthWithScale)) { - me._category_scroller__horScrollBg.style.visibility = 'inherit'; - me._category_scroller__horScrollFg.style.visibility = 'inherit'; - me._category_scroller.ggHorScrollVisible = true; - } else { - me._category_scroller__horScrollBg.style.visibility = 'hidden'; - me._category_scroller__horScrollFg.style.visibility = 'hidden'; - me._category_scroller.ggHorScrollVisible = false; + else { + me._inicio.style.visibility=me._inicio.ggVisible?'inherit':'hidden'; + me._inicio.style.opacity=0.3; } - if ((me._category_scroller.ggHorScrollVisible && contentHeight > this.clientHeight - 15) || (!me._category_scroller.ggHorScrollVisible && contentHeight > this.clientHeight)) { - me._category_scroller__vertScrollBg.style.visibility = 'inherit'; - me._category_scroller__vertScrollFg.style.visibility = 'inherit'; - me._category_scroller.ggVertScrollVisible = true; - if (!me._category_scroller.ggHorScrollVisible && (contentWidth > offsetWidthWithScale - me._category_scroller__vertScrollBg.getBoundingClientRect().width)) { - me._category_scroller__horScrollBg.style.visibility = 'inherit'; - me._category_scroller__horScrollFg.style.visibility = 'inherit'; - me._category_scroller.ggHorScrollVisible = true; - } - } else { - me._category_scroller__vertScrollBg.style.visibility = 'hidden'; - me._category_scroller__vertScrollFg.style.visibility = 'hidden'; - me._category_scroller.ggVertScrollVisible = false; + } + } + me._inicio.ggUpdatePosition=function (useTransition) { + } + me._inicioflecha.appendChild(me._inicio); + el=me._inicioflecha0=document.createElement('div'); + els=me._inicioflecha0__img=document.createElement('img'); + els.className='ggskin ggskin_inicioflecha0'; + hs=basePath + 'images/inicioflecha0.png'; + els.setAttribute('src',hs); + els.ggNormalSrc=hs; + els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); + els.className='ggskin ggskin_image'; + els['ondragstart']=function() { return false; }; + player.checkLoaded.push(els); + el.appendChild(els); + el.ggSubElement = els; + el.ggId="inicioflecha"; + el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; + el.ggVisible=true; + el.className="ggskin ggskin_image "; + el.ggType='image'; + hs =''; + hs+='bottom : 0px;'; + hs+='height : 41px;'; + hs+='opacity : 0.3;'; + hs+='position : absolute;'; + hs+='right : 21px;'; + hs+='visibility : inherit;'; + hs+='width : 29px;'; + hs+='pointer-events:auto;'; + el.setAttribute('style',hs); + el.style[domTransform + 'Origin']='50% 50%'; + me._inicioflecha0.ggIsActive=function() { + if ((this.parentNode) && (this.parentNode.ggIsActive)) { + return this.parentNode.ggIsActive(); + } + return false; + } + el.ggElementNodeId=function() { + if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { + return this.parentNode.ggElementNodeId(); + } + return player.getCurrentNode(); + } + me._inicioflecha0.logicBlock_visible = function() { + var newLogicStateVisible; + if ( + ((player.getVariableValue('Node1') == false)) + ) + { + newLogicStateVisible = 0; + } + else { + newLogicStateVisible = -1; + } + if (me._inicioflecha0.ggCurrentLogicStateVisible != newLogicStateVisible) { + me._inicioflecha0.ggCurrentLogicStateVisible = newLogicStateVisible; + me._inicioflecha0.style[domTransition]='opacity 0s'; + if (me._inicioflecha0.ggCurrentLogicStateVisible == 0) { + me._inicioflecha0.style.visibility="hidden"; + me._inicioflecha0.ggVisible=false; } - if(me._category_scroller.ggHorScrollVisible) { - me._category_scroller.ggAvailableHeight = me._category_scroller.clientHeight - 15; - if (me._category_scroller.ggVertScrollVisible) { - me._category_scroller.ggAvailableWidth = me._category_scroller.clientWidth - 15; - me._category_scroller.ggAvailableWidthWithScale = me._category_scroller.getBoundingClientRect().width - me._category_scroller__horScrollBg.getBoundingClientRect().height; - } else { - me._category_scroller.ggAvailableWidth = me._category_scroller.clientWidth; - me._category_scroller.ggAvailableWidthWithScale = me._category_scroller.getBoundingClientRect().width; - } - me._category_scroller__horScrollBg.style.width = me._category_scroller.ggAvailableWidth + 'px'; - me._category_scroller.ggHPercentVisible = contentWidth != 0 ? me._category_scroller.ggAvailableWidthWithScale / contentWidth : 0.0; - if (me._category_scroller.ggHPercentVisible > 1.0) me._category_scroller.ggHPercentVisible = 1.0; - me._category_scroller.ggScrollWidth = Math.round(me._category_scroller__horScrollBg.offsetWidth * me._category_scroller.ggHPercentVisible); - me._category_scroller__horScrollFg.style.width = me._category_scroller.ggScrollWidth + 'px'; - me._category_scroller.ggScrollPosX = me._category_scroller.ggScrollPosXPercent * me._category_scroller.ggAvailableWidth; - me._category_scroller.ggScrollPosX = Math.min(me._category_scroller.ggScrollPosX, me._category_scroller__horScrollBg.offsetWidth - me._category_scroller__horScrollFg.offsetWidth); - me._category_scroller__horScrollFg.style.left = me._category_scroller.ggScrollPosX + 'px'; - if (me._category_scroller.ggHPercentVisible < 1.0) { - let percentScrolled = me._category_scroller.ggScrollPosX / (me._category_scroller__horScrollBg.offsetWidth - me._category_scroller__horScrollFg.offsetWidth); - me._category_scroller__content.style.left = -(Math.round((me._category_scroller.ggContentWidth * (1.0 - me._category_scroller.ggHPercentVisible)) * percentScrolled)) + this.ggContentLeftOffset + 'px'; - } - } else { - me._category_scroller.ggAvailableHeight = me._category_scroller.clientHeight; - me._category_scroller.ggScrollPosX = 0; - me._category_scroller.ggScrollPosXPercent = 0.0; - me._category_scroller__content.style.left = this.ggContentLeftOffset + 'px'; + else { + me._inicioflecha0.style.visibility=(Number(me._inicioflecha0.style.opacity)>0||!me._inicioflecha0.style.opacity)?'inherit':'hidden'; + me._inicioflecha0.ggVisible=true; } - if(me._category_scroller.ggVertScrollVisible) { - me._category_scroller.ggAvailableWidth = me._category_scroller.clientWidth - 15; - if (me._category_scroller.ggHorScrollVisible) { - me._category_scroller.ggAvailableHeight = me._category_scroller.clientHeight - 15; - me._category_scroller.ggAvailableHeightWithScale = me._category_scroller.getBoundingClientRect().height - me._category_scroller__vertScrollBg.getBoundingClientRect().width; - me._category_scroller__cornerBg.style.visibility = 'inherit'; - } else { - me._category_scroller.ggAvailableHeight = me._category_scroller.clientHeight; - me._category_scroller.ggAvailableHeightWithScale = me._category_scroller.getBoundingClientRect().height; - me._category_scroller__cornerBg.style.visibility = 'hidden'; - } - me._category_scroller__vertScrollBg.style.height = me._category_scroller.ggAvailableHeight + 'px'; - me._category_scroller.ggVPercentVisible = contentHeight != 0 ? me._category_scroller.ggAvailableHeightWithScale / contentHeight : 0.0; - if (me._category_scroller.ggVPercentVisible > 1.0) me._category_scroller.ggVPercentVisible = 1.0; - me._category_scroller.ggScrollHeight = Math.round(me._category_scroller__vertScrollBg.offsetHeight * me._category_scroller.ggVPercentVisible); - me._category_scroller__vertScrollFg.style.height = me._category_scroller.ggScrollHeight + 'px'; - me._category_scroller.ggScrollPosY = me._category_scroller.ggScrollPosYPercent * me._category_scroller.ggAvailableHeight; - me._category_scroller.ggScrollPosY = Math.min(me._category_scroller.ggScrollPosY, me._category_scroller__vertScrollBg.offsetHeight - me._category_scroller__vertScrollFg.offsetHeight); - me._category_scroller__vertScrollFg.style.top = me._category_scroller.ggScrollPosY + 'px'; - if (me._category_scroller.ggVPercentVisible < 1.0) { - let percentScrolled = me._category_scroller.ggScrollPosY / (me._category_scroller__vertScrollBg.offsetHeight - me._category_scroller__vertScrollFg.offsetHeight); - me._category_scroller__content.style.top = -(Math.round((me._category_scroller.ggContentHeight * (1.0 - me._category_scroller.ggVPercentVisible)) * percentScrolled)) + me._category_scroller.ggContentTopOffset + 'px'; - } - } else { - me._category_scroller.ggAvailableWidth = me._category_scroller.clientWidth; - me._category_scroller.ggScrollPosY = 0; - me._category_scroller.ggScrollPosYPercent = 0.0; - me._category_scroller__content.style.top = this.ggContentTopOffset + 'px'; - me._category_scroller__cornerBg.style.visibility = 'hidden'; + } + } + me._inicioflecha0.logicBlock_alpha = function() { + var newLogicStateAlpha; + if ( + ((me.elementMouseOver['inicioflecha'] == true)) + ) + { + newLogicStateAlpha = 0; + } + else { + newLogicStateAlpha = -1; + } + if (me._inicioflecha0.ggCurrentLogicStateAlpha != newLogicStateAlpha) { + me._inicioflecha0.ggCurrentLogicStateAlpha = newLogicStateAlpha; + me._inicioflecha0.style[domTransition]='opacity 0s'; + if (me._inicioflecha0.ggCurrentLogicStateAlpha == 0) { + me._inicioflecha0.style.visibility=me._inicioflecha0.ggVisible?'inherit':'hidden'; + me._inicioflecha0.style.opacity=1; } - if(horScrollWasVisible != me._category_scroller.ggHorScrollVisible || vertScrollWasVisible != me._category_scroller.ggVertScrollVisible) { - me.updateSize(me._category_scroller); - me._category_scroller.ggUpdatePosition(); + else { + me._inicioflecha0.style.visibility=me._inicioflecha0.ggVisible?'inherit':'hidden'; + me._inicioflecha0.style.opacity=0.3; } } } - el=me._category_cloner=document.createElement('div'); - el.ggNumRepeat = 1; - el.ggNumRows = 0; - el.ggNumCols = 0; - el.ggWidth = 140; - el.ggHeight = 37; - el.ggUpdating = false; - el.ggFilter = []; - el.ggInstances = []; - el.ggUpdate = function(filter) { - if(me._category_cloner.ggUpdating == true) return; - me._category_cloner.ggUpdating = true; - var el=me._category_cloner; - var curNumCols = 0; - curNumCols = me._category_cloner.ggNumRepeat; - if (curNumCols < 1) curNumCols = 1; - if (typeof filter=='object') { - el.ggFilter = filter; - } else { - filter = el.ggFilter; - }; - if (me.ggTag) filter.push(me.ggTag); - filter=filter.sort(); - if ((el.ggNumCols == curNumCols) && (el.ggInstances.length > 0) && (filter.length === el.ggCurrentFilter.length) && (filter.every(function(value, index) { return value === el.ggCurrentFilter[index] }) )) { - me._category_cloner.ggUpdating = false; - return; - } else { - el.ggNumRows = 1; - el.ggNumCols = curNumCols; + me._inicioflecha0.ggUpdatePosition=function (useTransition) { + } + me._inicioflecha.appendChild(me._inicioflecha0); + me.divSkin.appendChild(me._inicioflecha); + el=me._screentint_info=document.createElement('div'); + el.ggId="screentint_info"; + el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; + el.ggVisible=false; + el.className="ggskin ggskin_rectangle "; + el.ggType='rectangle'; + hs =''; + hs+='background : rgba(0,0,0,0.392157);'; + hs+='border : 0px solid #000000;'; + hs+='cursor : pointer;'; + hs+='height : 100%;'; + hs+='left : 0.16%;'; + hs+='position : absolute;'; + hs+='top : -0.13%;'; + hs+='visibility : hidden;'; + hs+='width : 100%;'; + hs+='pointer-events:auto;'; + el.setAttribute('style',hs); + el.style[domTransform + 'Origin']='50% 50%'; + me._screentint_info.ggIsActive=function() { + return false; + } + el.ggElementNodeId=function() { + return player.getCurrentNode(); + } + me._screentint_info.logicBlock_visible = function() { + var newLogicStateVisible; + if ( + ((player.getVariableValue('vis_info_popup_1') == true)) + ) + { + newLogicStateVisible = 0; } - el.ggCurrentFilter = filter; - el.ggInstances = []; - if (el.hasChildNodes() == true) { - while (el.firstChild) { - el.removeChild(el.firstChild); + else { + newLogicStateVisible = -1; + } + if (me._screentint_info.ggCurrentLogicStateVisible != newLogicStateVisible) { + me._screentint_info.ggCurrentLogicStateVisible = newLogicStateVisible; + me._screentint_info.style[domTransition]=''; + if (me._screentint_info.ggCurrentLogicStateVisible == 0) { + me._screentint_info.style.visibility=(Number(me._screentint_info.style.opacity)>0||!me._screentint_info.style.opacity)?'inherit':'hidden'; + me._screentint_info.ggVisible=true; + } + else { + me._screentint_info.style.visibility="hidden"; + me._screentint_info.ggVisible=false; } } - var tourNodes = player.getNodeIds(); - var row = 0; - var column = 0; - var currentIndex = 0; - var firstNode; - for (var i=0; i < el.ggTagTable.length; i++) { - var cItem = el.ggTagTable[i]; - firstNode = ''; - cItem.nodecount = 0; - for (var j=0; j < tourNodes.length; j++) { - var nodeData = player.getNodeUserdata(tourNodes[j]); - if ((nodeData['tags'].indexOf(cItem.tag) != -1) || (cItem.tag=='')) { - var passed = true; - if (filter.length > 0) { - for (var k=0; k < filter.length; k++) { - if (nodeData['tags'].indexOf(filter[k]) == -1) passed = false; - } - } - if (passed) { - cItem.nodecount++; - if (firstNode == '') firstNode = tourNodes[j]; - } + } + me._screentint_info.onclick=function (e) { + player.setVariableValue('vis_info_popup_1', false); + me._info_title.ggText=""; + me._info_title.ggTextDiv.innerHTML=me._info_title.ggText; + if (me._info_title.ggUpdateText) { + me._info_title.ggUpdateText=function() { + var hs=""; + if (hs!=this.ggText) { + this.ggText=hs; + this.ggTextDiv.innerHTML=hs; + if (this.ggUpdatePosition) this.ggUpdatePosition(); } } - cItem.firstnode=firstNode; - if (cItem.nodecount == 0) continue; - var nodeId = {}; - nodeId['tag'] = cItem.tag; - nodeId['title'] = cItem.title; - nodeId['nodecount'] = cItem.nodecount; - nodeId['firstnode'] = cItem.firstnode; - var parameter={}; - parameter.top=(row * me._category_cloner.ggHeight) + 'px'; - parameter.left=(column * me._category_cloner.ggWidth) + 'px'; - parameter.width=me._category_cloner.ggWidth + 'px'; - parameter.height=me._category_cloner.ggHeight + 'px'; - parameter.index=currentIndex; - var inst = new SkinCloner_category_cloner_Class(nodeId, me, el, parameter); - currentIndex++; - el.ggInstances.push(inst); - el.appendChild(inst.__div); - inst.__div.ggObj=inst; - skin.updateSize(inst.__div); - column++; - if (column >= el.ggNumCols) { - column = 0; - row++; - el.ggNumRows++; + } + if (me._info_title.ggUpdatePosition) { + me._info_title.ggUpdatePosition(); + } + me._info_title.ggTextDiv.scrollTop = 0; + me._info_text_body.ggText=""; + me._info_text_body.ggTextDiv.innerHTML=me._info_text_body.ggText; + if (me._info_text_body.ggUpdateText) { + me._info_text_body.ggUpdateText=function() { + var hs=""; + if (hs!=this.ggText) { + this.ggText=hs; + this.ggTextDiv.innerHTML=hs; + if (this.ggUpdatePosition) this.ggUpdatePosition(); + } + } + } + if (me._info_text_body.ggUpdatePosition) { + me._info_text_body.ggUpdatePosition(); + } + me._info_text_body.ggTextDiv.scrollTop = 0; + } + me._screentint_info.ggUpdatePosition=function (useTransition) { + } + me.divSkin.appendChild(me._screentint_info); + el=me._information=document.createElement('div'); + el.ggId="information"; + el.ggDx=0; + el.ggDy=-20; + el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; + el.ggVisible=false; + el.className="ggskin ggskin_container "; + el.ggType='container'; + hs =''; + hs+='height : 250px;'; + hs+='left : -10000px;'; + hs+='position : absolute;'; + hs+='top : -10000px;'; + hs+='visibility : hidden;'; + hs+='width : 300px;'; + hs+='pointer-events:none;'; + el.setAttribute('style',hs); + el.style[domTransform + 'Origin']='50% 50%'; + me._information.ggIsActive=function() { + return false; + } + el.ggElementNodeId=function() { + return player.getCurrentNode(); + } + me._information.logicBlock_visible = function() { + var newLogicStateVisible; + if ( + ((player.getVariableValue('vis_info_popup_1') == true)) + ) + { + newLogicStateVisible = 0; + } + else { + newLogicStateVisible = -1; + } + if (me._information.ggCurrentLogicStateVisible != newLogicStateVisible) { + me._information.ggCurrentLogicStateVisible = newLogicStateVisible; + me._information.style[domTransition]=''; + if (me._information.ggCurrentLogicStateVisible == 0) { + me._information.style.visibility=(Number(me._information.style.opacity)>0||!me._information.style.opacity)?'inherit':'hidden'; + me._information.ggVisible=true; + } + else { + me._information.style.visibility="hidden"; + me._information.ggVisible=false; } } - me._category_cloner.ggUpdating = false; - player.triggerEvent('clonerchanged'); - if (me._category_cloner.parentNode.classList.contains('ggskin_subelement') && me._category_cloner.parentNode.parentNode.classList.contains('ggskin_scrollarea')) me._category_cloner.parentNode.parentNode.ggUpdatePosition(); } - el.ggFilter = []; - el.ggTagTable = [ - {tag:"",title:"All"}, - ]; - el.ggId="category_cloner"; + me._information.ggUpdatePosition=function (useTransition) { + if (useTransition==='undefined') { + useTransition = false; + } + if (!useTransition) { + this.style[domTransition]='none'; + } + if (this.parentNode) { + var pw=this.parentNode.clientWidth; + var w=this.offsetWidth; + this.style.left=((this.ggDx * pw)/100.0 + pw/2 - w/2) + 'px'; + var ph=this.parentNode.clientHeight; + var h=this.offsetHeight; + this.style.top=((this.ggDy * ph)/100.0 + ph/2 - h/2) + 'px'; + } + } + el=me._information_bg=document.createElement('div'); + el.ggId="information_bg"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; - el.className="ggskin ggskin_cloner "; - el.ggType='cloner'; + el.className="ggskin ggskin_rectangle "; + el.ggType='rectangle'; hs =''; - hs+='height : 37px;'; - hs+='left : 10px;'; - hs+='overflow : visible;'; + hs+='background : rgba(0,0,0,0.666667);'; + hs+='border : 0px solid #ffffff;'; + hs+='cursor : default;'; + hs+='height : 250px;'; + hs+='left : 0px;'; hs+='position : absolute;'; hs+='top : 0px;'; hs+='visibility : inherit;'; - hs+='width : 140px;'; - hs+='pointer-events:none;'; + hs+='width : 300px;'; + hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; - me._category_cloner.ggIsActive=function() { + me._information_bg.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } @@ -5127,255 +4587,267 @@ function pano2vrSkin(player,base) { } return player.getCurrentNode(); } - me._category_cloner.ggUpdateConditionNodeChange=function () { - var cnode=player.getCurrentNode(); - for(var i=0; i0||!me._menu_open.style.opacity)?'inherit':'hidden'; - me._menu_open.ggVisible=true; - } - else { - me._menu_open.style.visibility="hidden"; - me._menu_open.ggVisible=false; - } + me._information.appendChild(me._info_title); + el=me._info_popup_close=document.createElement('div'); + els=me._info_popup_close__img=document.createElement('img'); + els.className='ggskin ggskin_svg'; + hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHk9IjBweCIgYmFzZVByb2ZpbGU9InRpbnkiIHZpZXdCb3g9Ii0yNDAgMzMyIDEzMCAxMzAiIHg9IjBweCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CiA8ZyBpZD0iTG'+ + 'F5ZXJfMV8xXyI+CiAgPHBhdGggZD0iTS0xMzUuMywzNTcuM2MtMjEuOS0yMS45LTU3LjUtMjEuO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43Yy0wLjQsMC40LTAuOCwwLjUtMS4zLDAuNXMtMC45LTAuMS0xLjEtMC40bC0xMS4xLTExLjFjLTAuMy0wLjMtMC40LTAuNi0wLjQtMS4xJiN4ZDsmI3hhOyYjeDk7JiN4OTtjMC0wLjUsMC4xLTAuOSwwLjUtMS4zbDE1LjctMTUuN2wtMTUuOC0xNS44Yy0wLjMtMC4zLTAuNC0wLjYtMC40'+ + 'LTEuMWMwLTAuNSwwLjEtMC45LDAuNS0xLjNsMTAuOS0xMC45YzAuOS0wLjksMS43LTAuOSwyLjQtMC4xJiN4ZDsmI3hhOyYjeDk7JiN4OTtsMTUuOCwxNS44bDE1LjctMTUuN2MwLjktMC45LDEuNy0wLjksMi40LTAuMWwxMS4xLDExLjFjMC44LDAuOCwwLjgsMS41LTAuMSwyLjRMLTE2MS42LDM5Ni45eiIgZmlsbD0iI0ZGRkZGRiIvPgogPC9nPgo8L3N2Zz4K'; + me._info_popup_close__img.setAttribute('src',hs); + els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); + els['ondragstart']=function() { return false; }; + el.appendChild(els); + el.ggSubElement = els; + elo=me._info_popup_close__imgo=document.createElement('img'); + elo.className='ggskin ggskin_svg'; + hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHk9IjBweCIgYmFzZVByb2ZpbGU9InRpbnkiIHZpZXd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LjVjMC44LDAuOCwwLjgsMS43LTAuMSwyLjdsLTEyLjIsMTIuMmMtMC40LDAuNC0wLjgsMC42LTEuNCwwLjYmI3hkOyYjeGE7JiN4OTsmI3g5O2MtMC42LDAtMS0wLjEtMS4zLTAuNGwtMTcuNS0xNy41bC0xNy40LDE3LjRjLTAuNCwwLjQtMC44LDAuNi0xLjQsMC42Yy0wLjYsMC0xLTAuMS0xLjMtMC40bC0xMi4zLTEyLjNjLTAuMy0wLjMtMC40LTAuNy0wLjQtMS4zJiN4ZDsmI3hhOyYjeDk7JiN4OTtjMC0wLjYsMC4xLTEsMC42LTEuNGwxNy40LTE3LjRsLTE3LjUtMTcuNWMtMC4zLTAuMy0wLjQtMC43LTAuNC0xLjNjMC0wLjYsMC4x'+ + 'LTEsMC42LTEuNGwxMi4yLTEyLjJjMS0xLDEuOC0xLDIuNy0wLjFsMTcuNSwxNy41JiN4ZDsmI3hhOyYjeDk7JiN4OTtsMTcuNC0xNy40YzEtMSwxLjgtMSwyLjctMC4xbDEyLjMsMTIuM2MwLjgsMC44LDAuOCwxLjctMC4xLDIuN0wtMTYwLjEsMzk2Ljl6IiBmaWxsPSIjRkZGRkZGIi8+CiA8L2c+Cjwvc3ZnPgo='; + me._info_popup_close__imgo.setAttribute('src',hs); + elo.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;visibility:hidden;pointer-events:none;;'); + elo['ondragstart']=function() { return false; }; + el.appendChild(elo); + el.ggId="info_popup_close"; + el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; + el.ggVisible=true; + el.className="ggskin ggskin_svg "; + el.ggType='svg'; + hs =''; + hs+='cursor : pointer;'; + hs+='height : 32px;'; + hs+='position : absolute;'; + hs+='right : 5px;'; + hs+='top : 4px;'; + hs+='visibility : inherit;'; + hs+='width : 32px;'; + hs+='pointer-events:auto;'; + el.setAttribute('style',hs); + el.style[domTransform + 'Origin']='50% 50%'; + me._info_popup_close.ggIsActive=function() { + if ((this.parentNode) && (this.parentNode.ggIsActive)) { + return this.parentNode.ggIsActive(); } + return false; } - me._menu_open.logicBlock_alpha = function() { - var newLogicStateAlpha; - if ( - ((me.elementMouseOver['menu_open'] == true)) - ) - { - newLogicStateAlpha = 0; + el.ggElementNodeId=function() { + if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { + return this.parentNode.ggElementNodeId(); } - else if ( - ((player.getVariableValue('category_visible') == false)) - ) - { - newLogicStateAlpha = 1; + return player.getCurrentNode(); + } + me._info_popup_close.onclick=function (e) { + player.setVariableValue('vis_info_popup_1', false); + me._info_title.ggText=""; + me._info_title.ggTextDiv.innerHTML=me._info_title.ggText; + if (me._info_title.ggUpdateText) { + me._info_title.ggUpdateText=function() { + var hs=""; + if (hs!=this.ggText) { + this.ggText=hs; + this.ggTextDiv.innerHTML=hs; + if (this.ggUpdatePosition) this.ggUpdatePosition(); + } + } } - else { - newLogicStateAlpha = -1; + if (me._info_title.ggUpdatePosition) { + me._info_title.ggUpdatePosition(); } - if (me._menu_open.ggCurrentLogicStateAlpha != newLogicStateAlpha) { - me._menu_open.ggCurrentLogicStateAlpha = newLogicStateAlpha; - me._menu_open.style[domTransition]='left 500ms ease 0ms, top 500ms ease 0ms, opacity 500ms ease 0ms'; - if (me._menu_open.ggCurrentLogicStateAlpha == 0) { - me._menu_open.style.visibility=me._menu_open.ggVisible?'inherit':'hidden'; - me._menu_open.style.opacity=1; - } - else if (me._menu_open.ggCurrentLogicStateAlpha == 1) { - me._menu_open.style.visibility=me._menu_open.ggVisible?'inherit':'hidden'; - me._menu_open.style.opacity=0.6; - } - else { - me._menu_open.style.visibility=me._menu_open.ggVisible?'inherit':'hidden'; - me._menu_open.style.opacity=1; + me._info_title.ggTextDiv.scrollTop = 0; + me._info_text_body.ggText=""; + me._info_text_body.ggTextDiv.innerHTML=me._info_text_body.ggText; + if (me._info_text_body.ggUpdateText) { + me._info_text_body.ggUpdateText=function() { + var hs=""; + if (hs!=this.ggText) { + this.ggText=hs; + this.ggTextDiv.innerHTML=hs; + if (this.ggUpdatePosition) this.ggUpdatePosition(); + } } } - } - me._menu_open.onclick=function (e) { - if ( - ( - ((player.getVariableValue('node_visible') == false)) - ) - ) { - player.setVariableValue('category_visible', !player.getVariableValue('category_visible')); + if (me._info_text_body.ggUpdatePosition) { + me._info_text_body.ggUpdatePosition(); } - player.setVariableValue('node_visible', false); - } - me._menu_open.onmouseover=function (e) { - me.elementMouseOver['menu_open']=true; - me._menu_open.logicBlock_alpha(); + me._info_text_body.ggTextDiv.scrollTop = 0; } - me._menu_open.onmouseout=function (e) { - me.elementMouseOver['menu_open']=false; - me._menu_open.logicBlock_alpha(); + me._info_popup_close.onmouseover=function (e) { + me._info_popup_close__img.style.visibility='hidden'; + me._info_popup_close__imgo.style.visibility='inherit'; } - me._menu_open.ontouchend=function (e) { - me.elementMouseOver['menu_open']=false; - me._menu_open.logicBlock_alpha(); + me._info_popup_close.onmouseout=function (e) { + me._info_popup_close__img.style.visibility='inherit'; + me._info_popup_close__imgo.style.visibility='hidden'; } - me._menu_open.ggUpdatePosition=function (useTransition) { + me._info_popup_close.ggUpdatePosition=function (useTransition) { } - me.divSkin.appendChild(me._menu_open); - el=me._screentint_image=document.createElement('div'); - el.ggId="screentint_image"; + me._information.appendChild(me._info_popup_close); + me.divSkin.appendChild(me._information); + el=me._instrues_de_uso=document.createElement('div'); + el.ggId="INSTRU\xc7\xd5ES DE USO"; + el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; - el.ggVisible=false; + el.ggVisible=true; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; - hs+='background : rgba(0,0,0,0.392157);'; - hs+='border : 0px solid #000000;'; - hs+='cursor : pointer;'; - hs+='height : 100%;'; - hs+='left : 0%;'; + hs+=cssPrefix + 'border-radius : 15px;'; + hs+='border-radius : 15px;'; + hs+='background : #231a3f;'; + hs+='border : 4px solid #231a3f;'; + hs+='bottom : 29px;'; + hs+='cursor : default;'; + hs+='height : 20px;'; + hs+='left : -10000px;'; hs+='position : absolute;'; - hs+='top : 0%;'; - hs+='visibility : hidden;'; - hs+='width : 100%;'; + hs+='visibility : inherit;'; + hs+='width : 200px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; - me._screentint_image.ggIsActive=function() { + me._instrues_de_uso.ggIsActive=function() { return false; } el.ggElementNodeId=function() { return player.getCurrentNode(); } - me._screentint_image.logicBlock_visible = function() { - var newLogicStateVisible; + me._instrues_de_uso.logicBlock_position = function() { + var newLogicStatePosition; if ( - ((player.getVariableValue('vis_image_popup') == true)) + ((player.getViewerSize().width <= 1024)) ) { - newLogicStateVisible = 0; + newLogicStatePosition = 0; } else { - newLogicStateVisible = -1; + newLogicStatePosition = -1; } - if (me._screentint_image.ggCurrentLogicStateVisible != newLogicStateVisible) { - me._screentint_image.ggCurrentLogicStateVisible = newLogicStateVisible; - me._screentint_image.style[domTransition]=''; - if (me._screentint_image.ggCurrentLogicStateVisible == 0) { - me._screentint_image.style.visibility=(Number(me._screentint_image.style.opacity)>0||!me._screentint_image.style.opacity)?'inherit':'hidden'; - me._screentint_image.ggVisible=true; + if (me._instrues_de_uso.ggCurrentLogicStatePosition != newLogicStatePosition) { + me._instrues_de_uso.ggCurrentLogicStatePosition = newLogicStatePosition; + me._instrues_de_uso.style[domTransition]='left 0s, bottom 0s'; + if (me._instrues_de_uso.ggCurrentLogicStatePosition == 0) { + this.ggDx = 0; + me._instrues_de_uso.style.bottom='90px'; + me._instrues_de_uso.ggUpdatePosition(true); } else { - me._screentint_image.style.visibility="hidden"; - me._screentint_image.ggVisible=false; + me._instrues_de_uso.ggDx=0; + me._instrues_de_uso.style.bottom='29px'; + me._instrues_de_uso.ggUpdatePosition(true); } } } - me._screentint_image.onclick=function (e) { - player.setVariableValue('vis_image_popup', false); - } - me._screentint_image.ggUpdatePosition=function (useTransition) { - } - me.divSkin.appendChild(me._screentint_image); - el=me._image_popup=document.createElement('div'); - el.ggId="image_popup"; - el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; - el.ggVisible=false; - el.className="ggskin ggskin_container "; - el.ggType='container'; - hs =''; - hs+='height : 80%;'; - hs+='left : 10%;'; - hs+='position : absolute;'; - hs+='top : 6%;'; - hs+='visibility : hidden;'; - hs+='width : 80%;'; - hs+='pointer-events:none;'; - el.setAttribute('style',hs); - el.style[domTransform + 'Origin']='50% 50%'; - me._image_popup.ggIsActive=function() { - return false; - } - el.ggElementNodeId=function() { - return player.getCurrentNode(); - } - me._image_popup.logicBlock_visible = function() { + me._instrues_de_uso.logicBlock_visible = function() { var newLogicStateVisible; if ( - ((player.getVariableValue('vis_image_popup') == true)) + ((player.getVariableValue('Node1') == true)) ) { newLogicStateVisible = 0; @@ -5383,54 +4855,104 @@ function pano2vrSkin(player,base) { else { newLogicStateVisible = -1; } - if (me._image_popup.ggCurrentLogicStateVisible != newLogicStateVisible) { - me._image_popup.ggCurrentLogicStateVisible = newLogicStateVisible; - me._image_popup.style[domTransition]=''; - if (me._image_popup.ggCurrentLogicStateVisible == 0) { - me._image_popup.style.visibility=(Number(me._image_popup.style.opacity)>0||!me._image_popup.style.opacity)?'inherit':'hidden'; - me._image_popup.ggVisible=true; + if (me._instrues_de_uso.ggCurrentLogicStateVisible != newLogicStateVisible) { + me._instrues_de_uso.ggCurrentLogicStateVisible = newLogicStateVisible; + me._instrues_de_uso.style[domTransition]='left 0s, bottom 0s'; + if (me._instrues_de_uso.ggCurrentLogicStateVisible == 0) { + me._instrues_de_uso.style.visibility="hidden"; + me._instrues_de_uso.ggVisible=false; } else { - me._image_popup.style.visibility="hidden"; - me._image_popup.ggVisible=false; + me._instrues_de_uso.style.visibility=(Number(me._instrues_de_uso.style.opacity)>0||!me._instrues_de_uso.style.opacity)?'inherit':'hidden'; + me._instrues_de_uso.ggVisible=true; + } + } + } + me._instrues_de_uso.onclick=function (e) { + player.playStopSound("Element01","1"); + player.setVolume("_main",1); + player.stopSound("Audio1"); + player.stopSound("Audio2"); + if (me._popup_video_file.ggApiPlayer) { + if (me._popup_video_file.ggApiPlayerType == 'youtube') { + let youtubeMediaFunction = function() { + me._popup_video_file.ggApiPlayer.pauseVideo(); + me._popup_video_file.ggApiPlayer.seekTo(0); + }; + if (me._popup_video_file.ggApiPlayerReady) { + youtubeMediaFunction(); + } else { + let youtubeApiInterval = setInterval(function() { + if (me._popup_video_file.ggApiPlayerReady) { + clearInterval(youtubeApiInterval); + youtubeMediaFunction(); + } + }, 100); + } + } else if (me._popup_video_file.ggApiPlayerType == 'vimeo') { + me._popup_video_file.ggApiPlayer.pause(); + me._popup_video_file.ggApiPlayer.setCurrentTime(0); } + } else { + player.stopSound("popup_video_file"); + } + } + me._instrues_de_uso.ggUpdatePosition=function (useTransition) { + if (useTransition==='undefined') { + useTransition = false; + } + if (!useTransition) { + this.style[domTransition]='none'; + } + if (this.parentNode) { + var pw=this.parentNode.clientWidth; + var w=this.offsetWidth; + this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; } } - me._image_popup.ggUpdatePosition=function (useTransition) { - } - el=me._loading_image=document.createElement('div'); - els=me._loading_image__img=document.createElement('img'); - els.className='ggskin ggskin_svg'; - hs='data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IndoaXRlIiB3aWR0aD0iNjQiIHZpZXdCb3g9IjAgMCAzMiAzMiIgaGVpZ2h0PSI2NCI+CiA8Y2lyY2xlIGN5PSIzIiBjeD0iMTYiIHI9IjAiPgogIDxhbmltYXRlIHZhbHVlcz0iMDszOzA7MCIga2V5U3BsaW5lcz0iMC4yIDAuMiAwLjQgMC44OzAuMiAwLjIgMC40IDAuODswLjIgMC4yIDAuNCAwLjgiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBhdHRyaWJ1dGVOYW1lPSJyIiBkdXI9IjFzIiBjYWxjTW9kZT0ic3BsaW5lIiBiZWdpbj0iMCIvPgogP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HVlcz0iMDszOzA7MCIga2V5U3BsaW5lcz0iMC4yIDAuMiAwLjQgMC44OzAuMiAwLjIgMC40IDAuODswLjIgMC4yIDAuNCAwLjgiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBhdHRyaWJ1dGVOYW1lPSJyIiBkdXI9IjFzIiBjYWxjTW9kZT0ic3BsaW5lIiBiZWdpbj0iMC44NzVz'+ - 'Ii8+CiA8L2NpcmNsZT4KIDxjaXJjbGUgdHJhbnNmb3JtPSJyb3RhdGUoMTgwIDE2IDE2KSIgY3k9IjMiIGN4PSIxNiIgcj0iMCI+CiAgPGFuaW1hdGUgdmFsdWVzPSIwOzM7MDswIiBrZXlTcGxpbmVzPSIwLjIgMC4yIDAuNCAwLjg7MC4yIDAuMiAwLjQgMC44OzAuMiAwLjIgMC40IDAuOCIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGF0dHJpYnV0ZU5hbWU9InIiIGR1cj0iMXMiIGNhbGNNb2RlPSJzcGxpbmUiIGJlZ2luPSIwLjVzIi8+CiA8L2NpcmNsZT4KPC9zdmc+Cg=='; - me._loading_image__img.setAttribute('src',hs); - els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); - els['ondragstart']=function() { return false; }; - el.appendChild(els); - el.ggSubElement = els; - el.ggId="loading_image"; + el=me._instrues_de_uso_texto=document.createElement('div'); + els=me._instrues_de_uso_texto__text=document.createElement('div'); + el.className='ggskin ggskin_textdiv'; + el.ggTextDiv=els; + el.ggId="INSTRU\xc7\xd5ES DE USO_texto"; el.ggDx=0; - el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; - el.className="ggskin ggskin_svg "; - el.ggType='svg'; + el.className="ggskin ggskin_text tooltip"; + el.ggType='text'; hs =''; - hs+='height : 40px;'; + hs+='bottom : -2px;'; + hs+='height : 20px;'; hs+='left : -10000px;'; hs+='position : absolute;'; - hs+='top : -10000px;'; hs+='visibility : inherit;'; - hs+='width : 40px;'; + hs+='width : 200px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; - me._loading_image.ggIsActive=function() { + hs ='position:absolute;'; + hs += 'box-sizing: border-box;'; + hs+='cursor: default;'; + hs+='left: 0px;'; + hs+='bottom: 0px;'; + hs+='width: 202px;'; + hs+='height: 22px;'; + hs+='background: #ffffff;'; + hs+='background: rgba(255,255,255,0);'; + hs+='border: 1px solid #000000;'; + hs+='border: 1px solid rgba(0,0,0,0);'; + hs+=cssPrefix + 'background-clip: padding-box;'; + hs+='background-clip: padding-box;'; + hs+='color: rgba(255,255,255,1);'; + hs+='text-align: center;'; + hs+='white-space: nowrap;'; + hs+='padding: 0px 1px 0px 1px;'; + hs+='overflow: hidden;'; + hs+='overflow-y: auto;'; + els.setAttribute('style',hs); + els.innerHTML="INSTRU\xc7\xd5ES DE USO"; + el.appendChild(els); + me._instrues_de_uso_texto.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } @@ -5442,7 +4964,7 @@ function pano2vrSkin(player,base) { } return player.getCurrentNode(); } - me._loading_image.ggUpdatePosition=function (useTransition) { + me._instrues_de_uso_texto.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } @@ -5451,190 +4973,112 @@ function pano2vrSkin(player,base) { } if (this.parentNode) { var pw=this.parentNode.clientWidth; - var w=this.offsetWidth; + var w=this.offsetWidth + 2; this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; - var ph=this.parentNode.clientHeight; - var h=this.offsetHeight; - this.style.top=(this.ggDy + ph/2 - h/2) + 'px'; } } - me._image_popup.appendChild(me._loading_image); - el=me._popup_image=document.createElement('div'); - els=me._popup_image__img=document.createElement('img'); - els.className='ggskin ggskin_external'; - els.setAttribute('style','position: absolute;-webkit-user-drag:none;pointer-events:none;;'); - els.onload=function() {me._popup_image.ggUpdatePosition();} - el.ggText=basePath + ""; - els.setAttribute('src', el.ggText); - els['ondragstart']=function() { return false; }; - hs =''; - el.appendChild(els); - el.ggSubElement = els; - el.ggId="popup_image"; + me._instrues_de_uso.appendChild(me._instrues_de_uso_texto); + me.divSkin.appendChild(me._instrues_de_uso); + el=me._iconespadro=document.createElement('div'); + el.ggId="Icones-Padr\xe3o"; + el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=false; - el.className="ggskin ggskin_external "; - el.ggType='external'; + el.className="ggskin ggskin_rectangle "; + el.ggType='rectangle'; hs =''; - hs+='border : 0px solid #000000;'; + hs+='background : #000000;'; + hs+='border : 1px solid #000000;'; hs+='cursor : default;'; - hs+='height : 100%;'; - hs+='left : -0.19%;'; + hs+='height : 45px;'; + hs+='left : -10000px;'; + hs+='opacity : 0.3;'; hs+='position : absolute;'; - hs+='top : 0%;'; + hs+='top : 0px;'; hs+='visibility : hidden;'; hs+='width : 100%;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; - me._popup_image.ggIsActive=function() { - if ((this.parentNode) && (this.parentNode.ggIsActive)) { - return this.parentNode.ggIsActive(); - } + me._iconespadro.ggIsActive=function() { return false; } el.ggElementNodeId=function() { - if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { - return this.parentNode.ggElementNodeId(); - } return player.getCurrentNode(); } - me._popup_image.logicBlock_visible = function() { + me._iconespadro.logicBlock_visible = function() { var newLogicStateVisible; if ( - ((player.getVariableValue('vis_image_popup') == true)) + ((player.getVariableValue('Opcao2') == true)) && + ((player.getVariableValue('Node1') == true)) ) { newLogicStateVisible = 0; } + else if ( + ((player.getVariableValue('Menu') == true)) && + ((player.getVariableValue('Node1') == true)) + ) + { + newLogicStateVisible = 1; + } else { newLogicStateVisible = -1; } - if (me._popup_image.ggCurrentLogicStateVisible != newLogicStateVisible) { - me._popup_image.ggCurrentLogicStateVisible = newLogicStateVisible; - me._popup_image.style[domTransition]=''; - if (me._popup_image.ggCurrentLogicStateVisible == 0) { - me._popup_image.style.visibility=(Number(me._popup_image.style.opacity)>0||!me._popup_image.style.opacity)?'inherit':'hidden'; - me._popup_image.ggSubElement.src=me._popup_image.ggText; - me._popup_image.ggVisible=true; + if (me._iconespadro.ggCurrentLogicStateVisible != newLogicStateVisible) { + me._iconespadro.ggCurrentLogicStateVisible = newLogicStateVisible; + me._iconespadro.style[domTransition]='opacity 0s'; + if (me._iconespadro.ggCurrentLogicStateVisible == 0) { + me._iconespadro.style.visibility=(Number(me._iconespadro.style.opacity)>0||!me._iconespadro.style.opacity)?'inherit':'hidden'; + me._iconespadro.ggVisible=true; + } + else if (me._iconespadro.ggCurrentLogicStateVisible == 1) { + me._iconespadro.style.visibility=(Number(me._iconespadro.style.opacity)>0||!me._iconespadro.style.opacity)?'inherit':'hidden'; + me._iconespadro.ggVisible=true; } else { - me._popup_image.style.visibility="hidden"; - me._popup_image__img.src = ''; - me._popup_image.ggVisible=false; + me._iconespadro.style.visibility="hidden"; + me._iconespadro.ggVisible=false; } } } - me._popup_image.ggUpdatePosition=function (useTransition) { - var parentWidth = me._popup_image.clientWidth; - var parentHeight = me._popup_image.clientHeight; - var img = me._popup_image__img; - var aspectRatioDiv = me._popup_image.clientWidth / me._popup_image.clientHeight; - var aspectRatioImg = img.naturalWidth / img.naturalHeight; - if (img.naturalWidth < parentWidth) parentWidth = img.naturalWidth; - if (img.naturalHeight < parentHeight) parentHeight = img.naturalHeight; - var currentWidth,currentHeight; - if (aspectRatioDiv > aspectRatioImg) { - currentHeight = parentHeight; - currentWidth = parentHeight * aspectRatioImg; - img.style.width=''; - img.style.height=parentHeight + 'px'; - } else { - currentWidth = parentWidth; - currentHeight = parentWidth / aspectRatioImg; - img.style.width=parentWidth + 'px'; - img.style.height=''; - }; - img.style.left='50%'; - img.style.marginLeft='-' + currentWidth/2 + 'px'; - img.style.top='50%'; - img.style.marginTop='-' + currentHeight/2 + 'px'; - } - me._image_popup.appendChild(me._popup_image); - me.divSkin.appendChild(me._image_popup); - el=me._image_popup_close=document.createElement('div'); - els=me._image_popup_close__img=document.createElement('img'); - els.className='ggskin ggskin_svg'; - hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHk9IjBweCIgYmFzZVByb2ZpbGU9InRpbnkiIHZpZXdCb3g9Ii0yNDAgMzMyIDEzMCAxMzAiIHg9IjBweCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CiA8ZyBpZD0iTG'+ - 'F5ZXJfMV8xXyI+CiAgPHBhdGggZD0iTS0xMzUuMywzNTcuM2MtMjEuOS0yMS45LTU3LjUtMjEuOS03OS40LDBjLTIxLjksMjEuOS0yMS45LDU3LjUsMCw3OS40YzIxLjksMjEuOSw1Ny41LDIxLjksNzkuNCwwJiN4ZDsmI3hhOyYjeDk7JiN4OTtTLTExMy40LDM3OS4yLTEzNS4zLDM1Ny4zeiBNLTE0NS44LDQxMi43YzAuOCwwLjgsMC44LDEuNS0wLjEsMi40bC0xMC45LDEwLjljLTAuNCwwLjQtMC44LDAuNS0xLjMsMC41Yy0wLjUsMC0wLjktMC4xLTEuMS0wLjQmI3hkOyYjeGE7JiN4OTsmI3g5O2wtMTUuOC0xNS44bC0xNS43LDE1LjdjLTAuNCwwLjQtMC44LDAuNS0xLjMsMC41cy0wLjktMC4x'+ - 'LTEuMS0wLjRsLTExLjEtMTEuMWMtMC4zLTAuMy0w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jgsMS41LTAuMSwyLjRMLTE2MS42LDM5Ni45eiIgZmlsbD0iI0ZGRkZGRiIvPgogPC9nPgo8L3N2Zz4K'; - me._image_popup_close__img.setAttribute('src',hs); - els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); - els['ondragstart']=function() { return false; }; - el.appendChild(els); - el.ggSubElement = els; - elo=me._image_popup_close__imgo=document.createElement('img'); - elo.className='ggskin ggskin_svg'; - hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHk9IjBweCIgYmFzZVByb2ZpbGU9InRpbnkiIHZpZXdCb3g9Ii0yNDAgMzMyIDEzMCAxMzAiIHg9IjBweCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CiA8ZyBpZD0iTG'+ - 'F5ZXJfMV8xXyI+CiAgPHBhdGggZD0iTS0xMzAuOSwzNTIuOWMtMjQuNC0yNC40LTYzLjgtMjQuNC04OC4yLDBjLTI0LjQsMjQuNC0yNC40LDYzLjgsMCw4OC4yYzI0LjQsMjQuNCw2My44LDI0LjQsODguMiwwJiN4ZDsmI3hhOyYjeDk7JiN4OTtTLTEwNi41LDM3Ny4zLTEzMC45LDM1Mi45eiBNLTE0Mi41LDQxNC41YzAuOCwwLjgsMC44LDEuNy0wLjEsMi43bC0xMi4yLDEyLjJjLTAuNCwwLjQtMC44LDAuNi0xLjQsMC42Y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EsMC42LTEuNGwxMi4yLTEyLjJjMS0xLDEuOC0xLDIuNy0wLjFsMTcuNSwxNy41JiN4ZDsmI3hhOyYjeDk7JiN4OTtsMTcuNC0xNy40YzEtMSwxLjgtMSwyLjctMC4xbDEyLjMsMTIuM2MwLjgsMC44LDAuOCwxLjctMC4xLDIuN0wtMTYwLjEsMzk2Ljl6IiBmaWxsPSIjRkZGRkZGIi8+CiA8L2c+Cjwvc3ZnPgo='; - me._image_popup_close__imgo.setAttribute('src',hs); - elo.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;visibility:hidden;pointer-events:none;;'); - elo['ondragstart']=function() { return false; }; - el.appendChild(elo); - el.ggId="image_popup_close"; - el.ggDx=0; - el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; - el.ggVisible=false; - el.className="ggskin ggskin_svg "; - el.ggType='svg'; - hs =''; - hs+='cursor : pointer;'; - hs+='height : 32px;'; - hs+='left : -10000px;'; - hs+='position : absolute;'; - hs+='top : 9px;'; - hs+='visibility : hidden;'; - hs+='width : 32px;'; - hs+='pointer-events:auto;'; - el.setAttribute('style',hs); - el.style[domTransform + 'Origin']='50% 50%'; - me._image_popup_close.ggIsActive=function() { - return false; - } - el.ggElementNodeId=function() { - return player.getCurrentNode(); - } - me._image_popup_close.logicBlock_visible = function() { - var newLogicStateVisible; + me._iconespadro.logicBlock_alpha = function() { + var newLogicStateAlpha; if ( - ((player.getVariableValue('vis_image_popup') == true)) + ((me.elementMouseOver['iconespadro'] == true)) ) { - newLogicStateVisible = 0; + newLogicStateAlpha = 0; } else { - newLogicStateVisible = -1; + newLogicStateAlpha = -1; } - if (me._image_popup_close.ggCurrentLogicStateVisible != newLogicStateVisible) { - me._image_popup_close.ggCurrentLogicStateVisible = newLogicStateVisible; - me._image_popup_close.style[domTransition]=''; - if (me._image_popup_close.ggCurrentLogicStateVisible == 0) { - me._image_popup_close.style.visibility=(Number(me._image_popup_close.style.opacity)>0||!me._image_popup_close.style.opacity)?'inherit':'hidden'; - me._image_popup_close.ggVisible=true; + if (me._iconespadro.ggCurrentLogicStateAlpha != newLogicStateAlpha) { + me._iconespadro.ggCurrentLogicStateAlpha = newLogicStateAlpha; + me._iconespadro.style[domTransition]='opacity 0s'; + if (me._iconespadro.ggCurrentLogicStateAlpha == 0) { + me._iconespadro.style.visibility=me._iconespadro.ggVisible?'inherit':'hidden'; + me._iconespadro.style.opacity=1; } else { - me._image_popup_close.style.visibility="hidden"; - me._image_popup_close.ggVisible=false; + me._iconespadro.style.visibility=me._iconespadro.ggVisible?'inherit':'hidden'; + me._iconespadro.style.opacity=0.3; } } } - me._image_popup_close.onclick=function (e) { - player.setVariableValue('vis_image_popup', false); + me._iconespadro.onmouseover=function (e) { + me.elementMouseOver['iconespadro']=true; + me._iconespadro.logicBlock_alpha(); } - me._image_popup_close.onmouseover=function (e) { - me._image_popup_close__img.style.visibility='hidden'; - me._image_popup_close__imgo.style.visibility='inherit'; + me._iconespadro.onmouseout=function (e) { + me.elementMouseOver['iconespadro']=false; + me._iconespadro.logicBlock_alpha(); } - me._image_popup_close.onmouseout=function (e) { - me._image_popup_close__img.style.visibility='inherit'; - me._image_popup_close__imgo.style.visibility='hidden'; + me._iconespadro.ontouchend=function (e) { + me.elementMouseOver['iconespadro']=false; + me._iconespadro.logicBlock_alpha(); } - me._image_popup_close.ggUpdatePosition=function (useTransition) { + me._iconespadro.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } @@ -5647,123 +5091,172 @@ function pano2vrSkin(player,base) { this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; } } - me.divSkin.appendChild(me._image_popup_close); - el=me._timer_1=document.createElement('div'); - el.ggTimestamp=this.ggCurrentTime; - el.ggLastIsActive=true; - el.ggTimeout=250; - el.ggId="Timer 1"; + el=me._nd_image_contato=document.createElement('div'); + els=me._nd_image_contato__img=document.createElement('img'); + els.className='ggskin ggskin_nd_image_contato'; + hs=basePath + 'images/nd_image_contato.png'; + els.setAttribute('src',hs); + els.ggNormalSrc=hs; + els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); + els.className='ggskin ggskin_image'; + els['ondragstart']=function() { return false; }; + player.checkLoaded.push(els); + el.appendChild(els); + el.ggSubElement = els; + el.ggId="nd_image_contato"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; - el.className="ggskin ggskin_timer "; - el.ggType='timer'; + el.className="ggskin ggskin_image "; + el.ggType='image'; hs =''; - hs+='height : 20px;'; - hs+='left : 1px;'; + hs+='height : 37px;'; + hs+='left : 65px;'; hs+='position : absolute;'; - hs+='top : 5px;'; + hs+='top : 0px;'; hs+='visibility : inherit;'; - hs+='width : 100px;'; - hs+='pointer-events:none;'; + hs+='width : 37px;'; + hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; - me._timer_1.ggIsActive=function() { - return (me._timer_1.ggTimestamp==0 ? false : (Math.floor((me.ggCurrentTime - me._timer_1.ggTimestamp) / me._timer_1.ggTimeout) % 2 == 0)); + me._nd_image_contato.ggIsActive=function() { + if ((this.parentNode) && (this.parentNode.ggIsActive)) { + return this.parentNode.ggIsActive(); + } + return false; } el.ggElementNodeId=function() { + if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { + return this.parentNode.ggElementNodeId(); + } return player.getCurrentNode(); } - me._timer_1.ggActivate=function () { - player.setVariableValue('var_hs', player.getVariableValue('var_hs') + Number("1")); - player.setVariableValue('var_hs', player.getVariableValue('var_hs') % Number("4")); + me._nd_image_contato.logicBlock_position = function() { + var newLogicStatePosition; + if ( + ((player.getVariableValue('Menu') == true)) + ) + { + newLogicStatePosition = 0; + } + else { + newLogicStatePosition = -1; + } + if (me._nd_image_contato.ggCurrentLogicStatePosition != newLogicStatePosition) { + me._nd_image_contato.ggCurrentLogicStatePosition = newLogicStatePosition; + me._nd_image_contato.style[domTransition]='left 0s, top 0s'; + if (me._nd_image_contato.ggCurrentLogicStatePosition == 0) { + me._nd_image_contato.style.left='95px'; + me._nd_image_contato.style.top='2px'; + } + else { + me._nd_image_contato.style.left='65px'; + me._nd_image_contato.style.top='0px'; + } + } } - me._timer_1.ggUpdatePosition=function (useTransition) { + me._nd_image_contato.onclick=function (e) { + player.openUrl("https:\/\/api.whatsapp.com\/send?phone=5491150500147&text=Turismo%20Ciudad",""); } - me.divSkin.appendChild(me._timer_1); - el=me._inicioflecha=document.createElement('div'); - el.ggId="InicioFlecha"; + me._nd_image_contato.ggUpdatePosition=function (useTransition) { + } + me._iconespadro.appendChild(me._nd_image_contato); + el=me._nd_image_mapa=document.createElement('div'); + els=me._nd_image_mapa__img=document.createElement('img'); + els.className='ggskin ggskin_nd_image_mapa'; + hs=basePath + 'images/nd_image_mapa.png'; + els.setAttribute('src',hs); + els.ggNormalSrc=hs; + els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); + els.className='ggskin ggskin_image'; + els['ondragstart']=function() { return false; }; + player.checkLoaded.push(els); + el.appendChild(els); + el.ggSubElement = els; + el.ggId="nd_image_mapa"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; - el.className="ggskin ggskin_container "; - el.ggType='container'; + el.className="ggskin ggskin_image "; + el.ggType='image'; hs =''; - hs+='bottom : 63px;'; - hs+='height : 99px;'; + hs+='height : 40px;'; + hs+='left : 10px;'; hs+='position : absolute;'; - hs+='right : 7px;'; + hs+='top : 0px;'; hs+='visibility : inherit;'; - hs+='width : 80px;'; - hs+='pointer-events:none;'; + hs+='width : 45px;'; + hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; - me._inicioflecha.ggIsActive=function() { + me._nd_image_mapa.ggIsActive=function() { + if ((this.parentNode) && (this.parentNode.ggIsActive)) { + return this.parentNode.ggIsActive(); + } return false; } el.ggElementNodeId=function() { + if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { + return this.parentNode.ggElementNodeId(); + } return player.getCurrentNode(); } - me._inicioflecha.onmouseover=function (e) { - me.elementMouseOver['inicioflecha']=true; - me._inicio.logicBlock_alpha(); - me._inicioflecha0.logicBlock_alpha(); - } - me._inicioflecha.onmouseout=function (e) { - me.elementMouseOver['inicioflecha']=false; - me._inicio.logicBlock_alpha(); - me._inicioflecha0.logicBlock_alpha(); + me._nd_image_mapa.logicBlock_position = function() { + var newLogicStatePosition; + if ( + ((player.getVariableValue('Menu') == true)) + ) + { + newLogicStatePosition = 0; + } + else { + newLogicStatePosition = -1; + } + if (me._nd_image_mapa.ggCurrentLogicStatePosition != newLogicStatePosition) { + me._nd_image_mapa.ggCurrentLogicStatePosition = newLogicStatePosition; + me._nd_image_mapa.style[domTransition]='left 0s, top 0s'; + if (me._nd_image_mapa.ggCurrentLogicStatePosition == 0) { + me._nd_image_mapa.style.left='40px'; + me._nd_image_mapa.style.top='2px'; + } + else { + me._nd_image_mapa.style.left='10px'; + me._nd_image_mapa.style.top='0px'; + } + } } - me._inicioflecha.ontouchend=function (e) { - me.elementMouseOver['inicioflecha']=false; - me._inicio.logicBlock_alpha(); - me._inicioflecha0.logicBlock_alpha(); + me._nd_image_mapa.onclick=function (e) { + player.openUrl("https:\/\/www.google.com\/maps\/place\/Parque+de+los+Ni%C3%B1os\/@-34.5292308,-58.4585581,15z\/data=!4m2!3m1!1s0x0:0xb0570982b87e7524?sa=X&ved=2ahUKEwi529u4u46AAxWFgpUCHfOVCGoQ_BJ6BAhUEAA&ved=2ahUKEwi529u4u46AAxWFgpUCHfOVCGoQ_BJ6BAhlEAg",""); } - me._inicioflecha.ggUpdatePosition=function (useTransition) { + me._nd_image_mapa.ggUpdatePosition=function (useTransition) { } - el=me._inicio=document.createElement('div'); - els=me._inicio__text=document.createElement('div'); - el.className='ggskin ggskin_textdiv'; - el.ggTextDiv=els; - el.ggId="inicio"; + me._iconespadro.appendChild(me._nd_image_mapa); + el=me._nd_image_sitie=document.createElement('div'); + els=me._nd_image_sitie__img=document.createElement('img'); + els.className='ggskin ggskin_nd_image_sitie'; + hs=basePath + 'images/nd_image_sitie.png'; + els.setAttribute('src',hs); + els.ggNormalSrc=hs; + els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); + els.className='ggskin ggskin_image'; + els['ondragstart']=function() { return false; }; + player.checkLoaded.push(els); + el.appendChild(els); + el.ggSubElement = els; + el.ggId="nd_image_sitie"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; - el.className="ggskin ggskin_text "; - el.ggType='text'; + el.className="ggskin ggskin_image "; + el.ggType='image'; hs =''; - hs+='bottom : 73px;'; - hs+='height : 24px;'; - hs+='opacity : 0.3;'; + hs+='height : 38px;'; + hs+='left : 120px;'; hs+='position : absolute;'; - hs+='right : -9px;'; + hs+='top : 2px;'; hs+='visibility : inherit;'; - hs+='width : 100px;'; + hs+='width : 38px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; - hs ='position:absolute;'; - hs += 'box-sizing: border-box;'; - hs+='cursor: default;'; - hs+='right: 0px;'; - hs+='bottom: 0px;'; - hs+='width: 102px;'; - hs+='height: 26px;'; - hs+='background: #ffffff;'; - hs+='background: rgba(255,255,255,0);'; - hs+='border: 1px solid #000000;'; - hs+='border: 1px solid rgba(0,0,0,0);'; - hs+=cssPrefix + 'background-clip: padding-box;'; - hs+='background-clip: padding-box;'; - hs+='color: #000000;'; - hs+='font-size: 19px;'; - hs+='font-weight: 600;'; - hs+='text-align: center;'; - hs+='white-space: nowrap;'; - hs+='padding: 0px 1px 0px 1px;'; - hs+='overflow: hidden;'; - hs+='overflow-y: auto;'; - els.setAttribute('style',hs); - els.innerHTML="INICIO"; - el.appendChild(els); - me._inicio.ggIsActive=function() { + me._nd_image_sitie.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } @@ -5775,61 +5268,40 @@ function pano2vrSkin(player,base) { } return player.getCurrentNode(); } - me._inicio.logicBlock_visible = function() { - var newLogicStateVisible; + me._nd_image_sitie.logicBlock_position = function() { + var newLogicStatePosition; if ( - ((player.getVariableValue('Node1') == false)) + ((player.getVariableValue('Menu') == true)) ) { - newLogicStateVisible = 0; + newLogicStatePosition = 0; } else { - newLogicStateVisible = -1; + newLogicStatePosition = -1; } - if (me._inicio.ggCurrentLogicStateVisible != newLogicStateVisible) { - me._inicio.ggCurrentLogicStateVisible = newLogicStateVisible; - me._inicio.style[domTransition]='opacity 0s'; - if (me._inicio.ggCurrentLogicStateVisible == 0) { - me._inicio.style.visibility="hidden"; - me._inicio.ggVisible=false; + if (me._nd_image_sitie.ggCurrentLogicStatePosition != newLogicStatePosition) { + me._nd_image_sitie.ggCurrentLogicStatePosition = newLogicStatePosition; + me._nd_image_sitie.style[domTransition]='left 0s, top 0s'; + if (me._nd_image_sitie.ggCurrentLogicStatePosition == 0) { + me._nd_image_sitie.style.left='150px'; + me._nd_image_sitie.style.top='2px'; } else { - me._inicio.style.visibility=(Number(me._inicio.style.opacity)>0||!me._inicio.style.opacity)?'inherit':'hidden'; - me._inicio.ggVisible=true; + me._nd_image_sitie.style.left='120px'; + me._nd_image_sitie.style.top='2px'; } } } - me._inicio.logicBlock_alpha = function() { - var newLogicStateAlpha; - if ( - ((me.elementMouseOver['inicioflecha'] == true)) - ) - { - newLogicStateAlpha = 0; - } - else { - newLogicStateAlpha = -1; - } - if (me._inicio.ggCurrentLogicStateAlpha != newLogicStateAlpha) { - me._inicio.ggCurrentLogicStateAlpha = newLogicStateAlpha; - me._inicio.style[domTransition]='opacity 0s'; - if (me._inicio.ggCurrentLogicStateAlpha == 0) { - me._inicio.style.visibility=me._inicio.ggVisible?'inherit':'hidden'; - me._inicio.style.opacity=1; - } - else { - me._inicio.style.visibility=me._inicio.ggVisible?'inherit':'hidden'; - me._inicio.style.opacity=0.3; - } - } + me._nd_image_sitie.onclick=function (e) { + player.openUrl("https:\/\/turismo.buenosaires.gob.ar\/es\/otros-establecimientos\/parque-de-los-ni%C3%B1os",""); } - me._inicio.ggUpdatePosition=function (useTransition) { + me._nd_image_sitie.ggUpdatePosition=function (useTransition) { } - me._inicioflecha.appendChild(me._inicio); - el=me._inicioflecha0=document.createElement('div'); - els=me._inicioflecha0__img=document.createElement('img'); - els.className='ggskin ggskin_inicioflecha0'; - hs=basePath + 'images/inicioflecha0.png'; + me._iconespadro.appendChild(me._nd_image_sitie); + el=me._nd_image_instagram=document.createElement('div'); + els=me._nd_image_instagram__img=document.createElement('img'); + els.className='ggskin ggskin_nd_image_instagram'; + hs=basePath + 'images/nd_image_instagram.png'; els.setAttribute('src',hs); els.ggNormalSrc=hs; els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); @@ -5838,23 +5310,22 @@ function pano2vrSkin(player,base) { player.checkLoaded.push(els); el.appendChild(els); el.ggSubElement = els; - el.ggId="inicioflecha"; + el.ggId="nd_image_instagram"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; el.className="ggskin ggskin_image "; el.ggType='image'; hs =''; - hs+='bottom : 0px;'; - hs+='height : 61px;'; - hs+='opacity : 0.3;'; + hs+='height : 38px;'; + hs+='left : 180px;'; hs+='position : absolute;'; - hs+='right : 21px;'; + hs+='top : 2px;'; hs+='visibility : inherit;'; - hs+='width : 39px;'; + hs+='width : 38px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; - me._inicioflecha0.ggIsActive=function() { + me._nd_image_instagram.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } @@ -5866,87 +5337,68 @@ function pano2vrSkin(player,base) { } return player.getCurrentNode(); } - me._inicioflecha0.logicBlock_visible = function() { - var newLogicStateVisible; + me._nd_image_instagram.logicBlock_position = function() { + var newLogicStatePosition; if ( - ((player.getVariableValue('Node1') == false)) + ((player.getVariableValue('Menu') == true)) ) { - newLogicStateVisible = 0; + newLogicStatePosition = 0; } else { - newLogicStateVisible = -1; + newLogicStatePosition = -1; } - if (me._inicioflecha0.ggCurrentLogicStateVisible != newLogicStateVisible) { - me._inicioflecha0.ggCurrentLogicStateVisible = newLogicStateVisible; - me._inicioflecha0.style[domTransition]='opacity 0s'; - if (me._inicioflecha0.ggCurrentLogicStateVisible == 0) { - me._inicioflecha0.style.visibility="hidden"; - me._inicioflecha0.ggVisible=false; + if (me._nd_image_instagram.ggCurrentLogicStatePosition != newLogicStatePosition) { + me._nd_image_instagram.ggCurrentLogicStatePosition = newLogicStatePosition; + me._nd_image_instagram.style[domTransition]='left 0s, top 0s'; + if (me._nd_image_instagram.ggCurrentLogicStatePosition == 0) { + me._nd_image_instagram.style.left='210px'; + me._nd_image_instagram.style.top='2px'; } else { - me._inicioflecha0.style.visibility=(Number(me._inicioflecha0.style.opacity)>0||!me._inicioflecha0.style.opacity)?'inherit':'hidden'; - me._inicioflecha0.ggVisible=true; + me._nd_image_instagram.style.left='180px'; + me._nd_image_instagram.style.top='2px'; } } } - me._inicioflecha0.logicBlock_alpha = function() { - var newLogicStateAlpha; - if ( - ((me.elementMouseOver['inicioflecha'] == true)) - ) - { - newLogicStateAlpha = 0; - } - else { - newLogicStateAlpha = -1; - } - if (me._inicioflecha0.ggCurrentLogicStateAlpha != newLogicStateAlpha) { - me._inicioflecha0.ggCurrentLogicStateAlpha = newLogicStateAlpha; - me._inicioflecha0.style[domTransition]='opacity 0s'; - if (me._inicioflecha0.ggCurrentLogicStateAlpha == 0) { - me._inicioflecha0.style.visibility=me._inicioflecha0.ggVisible?'inherit':'hidden'; - me._inicioflecha0.style.opacity=1; - } - else { - me._inicioflecha0.style.visibility=me._inicioflecha0.ggVisible?'inherit':'hidden'; - me._inicioflecha0.style.opacity=0.3; - } - } + me._nd_image_instagram.onclick=function (e) { + player.openUrl("https:\/\/www.instagram.com\/p\/Ci-2nAqrt4A\/",""); } - me._inicioflecha0.ggUpdatePosition=function (useTransition) { + me._nd_image_instagram.ggUpdatePosition=function (useTransition) { } - me._inicioflecha.appendChild(me._inicioflecha0); - me.divSkin.appendChild(me._inicioflecha); - el=me._screentint_info=document.createElement('div'); - el.ggId="screentint_info"; + me._iconespadro.appendChild(me._nd_image_instagram); + me.divSkin.appendChild(me._iconespadro); + el=me._menu_background=document.createElement('div'); + el.ggId="menu_background"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=false; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; - hs+='background : rgba(0,0,0,0.392157);'; - hs+='border : 0px solid #000000;'; - hs+='cursor : pointer;'; + hs+='background : rgba(0,0,0,0.501961);'; + hs+='border : 1px solid #000000;'; + hs+='cursor : default;'; hs+='height : 100%;'; - hs+='left : 0.16%;'; + hs+='left : 0px;'; + hs+='opacity : 0;'; hs+='position : absolute;'; - hs+='top : -0.13%;'; + hs+='top : 0px;'; hs+='visibility : hidden;'; - hs+='width : 100%;'; + hs+='width : 178px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; - me._screentint_info.ggIsActive=function() { + me._menu_background.ggIsActive=function() { return false; } el.ggElementNodeId=function() { return player.getCurrentNode(); } - me._screentint_info.logicBlock_visible = function() { + me._menu_background.logicBlock_visible = function() { var newLogicStateVisible; if ( - ((player.getVariableValue('vis_info_popup_1') == true)) + ((player.getVariableValue('Menu') == true)) && + ((player.getVariableValue('Node1') == true)) ) { newLogicStateVisible = 0; @@ -5954,192 +5406,355 @@ function pano2vrSkin(player,base) { else { newLogicStateVisible = -1; } - if (me._screentint_info.ggCurrentLogicStateVisible != newLogicStateVisible) { - me._screentint_info.ggCurrentLogicStateVisible = newLogicStateVisible; - me._screentint_info.style[domTransition]=''; - if (me._screentint_info.ggCurrentLogicStateVisible == 0) { - me._screentint_info.style.visibility=(Number(me._screentint_info.style.opacity)>0||!me._screentint_info.style.opacity)?'inherit':'hidden'; - me._screentint_info.ggVisible=true; + if (me._menu_background.ggCurrentLogicStateVisible != newLogicStateVisible) { + me._menu_background.ggCurrentLogicStateVisible = newLogicStateVisible; + me._menu_background.style[domTransition]='opacity 500ms ease 0ms'; + if (me._menu_background.ggCurrentLogicStateVisible == 0) { + me._menu_background.style.visibility=(Number(me._menu_background.style.opacity)>0||!me._menu_background.style.opacity)?'inherit':'hidden'; + me._menu_background.ggVisible=true; } else { - me._screentint_info.style.visibility="hidden"; - me._screentint_info.ggVisible=false; + me._menu_background.style.visibility="hidden"; + me._menu_background.ggVisible=false; } } } - me._screentint_info.onclick=function (e) { - player.setVariableValue('vis_info_popup_1', false); - me._info_title.ggText=""; - me._info_title.ggTextDiv.innerHTML=me._info_title.ggText; - if (me._info_title.ggUpdateText) { - me._info_title.ggUpdateText=function() { - var hs=""; - if (hs!=this.ggText) { - this.ggText=hs; - this.ggTextDiv.innerHTML=hs; - if (this.ggUpdatePosition) this.ggUpdatePosition(); - } + me._menu_background.logicBlock_alpha = function() { + var newLogicStateAlpha; + if ( + ((player.getVariableValue('category_visible') == true)) + ) + { + newLogicStateAlpha = 0; + } + else { + newLogicStateAlpha = -1; + } + if (me._menu_background.ggCurrentLogicStateAlpha != newLogicStateAlpha) { + me._menu_background.ggCurrentLogicStateAlpha = newLogicStateAlpha; + me._menu_background.style[domTransition]='opacity 500ms ease 0ms'; + if (me._menu_background.ggCurrentLogicStateAlpha == 0) { + me._menu_background.style.visibility=me._menu_background.ggVisible?'inherit':'hidden'; + me._menu_background.style.opacity=1; + } + else { + setTimeout(function() { if (me._menu_background.style.opacity == 0.0) { me._menu_background.style.visibility="hidden"; } }, 505); + me._menu_background.style.opacity=0; } } - if (me._info_title.ggUpdatePosition) { - me._info_title.ggUpdatePosition(); + } + me._menu_background.onclick=function (e) { + if ( + ( + ((me.ggUserdata.customnodeid == "Flores")) + ) + ) { + player.playSound("Audio2","100"); } - me._info_title.ggTextDiv.scrollTop = 0; - me._info_text_body.ggText=""; - me._info_text_body.ggTextDiv.innerHTML=me._info_text_body.ggText; - if (me._info_text_body.ggUpdateText) { - me._info_text_body.ggUpdateText=function() { - var hs=""; - if (hs!=this.ggText) { - this.ggText=hs; - this.ggTextDiv.innerHTML=hs; - if (this.ggUpdatePosition) this.ggUpdatePosition(); - } + player.playSound("Audio3","100"); + if ( + ( + ((me.ggUserdata.customnodeid == "Flores")) + ) + ) { + player.stopSound("Audio1"); + } + if ( + ( + ((me.ggUserdata.customnodeid != "Flores")) && + ((player.getVariableValue('AudioFlores') == true)) + ) + ) { + player.playSound("Audio1","100"); + } + if ( + ( + ((me.ggUserdata.customnodeid == "Flores")) + ) + ) { + player.setVariableValue('AudioFlores', true); + } + if ( + ( + ((me.ggUserdata.customnodeid != "Flores")) && + ((me.ggUserdata.customnodeid != "PreFlores")) + ) + ) { + player.setVariableValue('AudioFlores', false); + } + } + me._menu_background.ggUpdatePosition=function (useTransition) { + } + el=me._node_scroller=document.createElement('div'); + els=me._node_scroller__content=document.createElement('div'); + els.className='ggskin ggskin_subelement ggskin_scrollarea'; + el.ggContent=els; + el.appendChild(els); + el.ggHorScrollVisible = false; + el.ggVertScrollVisible = false; + el.ggContentLeftOffset = 0; + el.ggContentTopOffset = 0; + el.ggDragInertiaX = 0; + el.ggDragInertiaY = 0; + el.ggVPercentVisible = 1.0; + el.ggHPercentVisible = 1.0; + hs =''; + hs+='height : 99px;'; + hs+='left : 0px;'; + hs+='overflow : visible;'; + hs+='position : absolute;'; + hs+='top : 0px;'; + hs+='width : 149.5px;'; + hs+=""; + els.setAttribute('style',hs); + me._node_scroller.ggScrollByX = function(diffX) { + if(!me._node_scroller.ggHorScrollVisible || diffX == 0 || me._node_scroller.ggHPercentVisible >= 1.0) return; + me._node_scroller.ggScrollPosX = (me._node_scroller__horScrollFg.offsetLeft + diffX); + me._node_scroller.ggScrollPosX = Math.max(me._node_scroller.ggScrollPosX, 0); + me._node_scroller.ggScrollPosX = Math.min(me._node_scroller.ggScrollPosX, me._node_scroller__horScrollBg.offsetWidth - me._node_scroller__horScrollFg.offsetWidth); + me._node_scroller__horScrollFg.style.left = me._node_scroller.ggScrollPosX + 'px'; + let percentScrolled = me._node_scroller.ggScrollPosX / (me._node_scroller__horScrollBg.offsetWidth - me._node_scroller__horScrollFg.offsetWidth); + me._node_scroller__content.style.left = -(Math.round((me._node_scroller.ggContentWidth * (1.0 - me._node_scroller.ggHPercentVisible)) * percentScrolled)) + me._node_scroller.ggContentLeftOffset + 'px'; + me._node_scroller.ggScrollPosXPercent = (me._node_scroller__horScrollFg.offsetLeft / me._node_scroller__horScrollBg.offsetWidth); + } + me._node_scroller.ggScrollByXSmooth = function(diffX) { + if(!me._node_scroller.ggHorScrollVisible || diffX == 0 || me._node_scroller.ggHPercentVisible >= 1.0) return; + var scrollPerInterval = diffX / 25; + var scrollCurrX = 0; + var id = setInterval(function() { + scrollCurrX += scrollPerInterval; + me._node_scroller.ggScrollPosX += scrollPerInterval; + if (diffX > 0 && (scrollCurrX >= diffX || me._node_scroller.ggScrollPosX >= me._node_scroller__horScrollBg.offsetWidth - me._node_scroller__horScrollFg.offsetWidth)) { + me._node_scroller.ggScrollPosX = Math.min(me._node_scroller.ggScrollPosX, me._node_scroller__horScrollBg.offsetWidth - me._node_scroller__horScrollFg.offsetWidth); + clearInterval(id); + } + if (diffX < 0 && (scrollCurrX <= diffX || me._node_scroller.ggScrollPosX <= 0)) { + me._node_scroller.ggScrollPosX = Math.max(me._node_scroller.ggScrollPosX, 0); + clearInterval(id); + } + me._node_scroller__horScrollFg.style.left = me._node_scroller.ggScrollPosX + 'px'; + let percentScrolled = me._node_scroller.ggScrollPosX / (me._node_scroller__horScrollBg.offsetWidth - me._node_scroller__horScrollFg.offsetWidth); + me._node_scroller__content.style.left = -(Math.round((me._node_scroller.ggContentWidth * (1.0 - me._node_scroller.ggHPercentVisible)) * percentScrolled)) + me._node_scroller.ggContentLeftOffset + 'px'; + me._node_scroller.ggScrollPosXPercent = (me._node_scroller__horScrollFg.offsetLeft / me._node_scroller__horScrollBg.offsetWidth); + }, 10); + } + me._node_scroller.ggScrollByY = function(diffY) { + if(!me._node_scroller.ggVertScrollVisible || diffY == 0 || me._node_scroller.ggVPercentVisible >= 1.0) return; + me._node_scroller.ggScrollPosY = (me._node_scroller__vertScrollFg.offsetTop + diffY); + me._node_scroller.ggScrollPosY = Math.max(me._node_scroller.ggScrollPosY, 0); + me._node_scroller.ggScrollPosY = Math.min(me._node_scroller.ggScrollPosY, me._node_scroller__vertScrollBg.offsetHeight - me._node_scroller__vertScrollFg.offsetHeight); + me._node_scroller__vertScrollFg.style.top = me._node_scroller.ggScrollPosY + 'px'; + let percentScrolled = me._node_scroller.ggScrollPosY / (me._node_scroller__vertScrollBg.offsetHeight - me._node_scroller__vertScrollFg.offsetHeight); + me._node_scroller__content.style.top = -(Math.round((me._node_scroller.ggContentHeight * (1.0 - me._node_scroller.ggVPercentVisible)) * percentScrolled)) + me._node_scroller.ggContentTopOffset + 'px'; + me._node_scroller.ggScrollPosYPercent = (me._node_scroller__vertScrollFg.offsetTop / me._node_scroller__vertScrollBg.offsetHeight); + } + me._node_scroller.ggScrollByYSmooth = function(diffY) { + if(!me._node_scroller.ggVertScrollVisible || diffY == 0 || me._node_scroller.ggVPercentVisible >= 1.0) return; + var scrollPerInterval = diffY / 25; + var scrollCurrY = 0; + var id = setInterval(function() { + scrollCurrY += scrollPerInterval; + me._node_scroller.ggScrollPosY += scrollPerInterval; + if (diffY > 0 && (scrollCurrY >= diffY || me._node_scroller.ggScrollPosY >= me._node_scroller__vertScrollBg.offsetHeight - me._node_scroller__vertScrollFg.offsetHeight)) { + me._node_scroller.ggScrollPosY = Math.min(me._node_scroller.ggScrollPosY, me._node_scroller__vertScrollBg.offsetHeight - me._node_scroller__vertScrollFg.offsetHeight); + clearInterval(id); + } + if (diffY < 0 && (scrollCurrY <= diffY || me._node_scroller.ggScrollPosY <= 0)) { + me._node_scroller.ggScrollPosY = Math.max(me._node_scroller.ggScrollPosY, 0); + clearInterval(id); + } + me._node_scroller__vertScrollFg.style.top = me._node_scroller.ggScrollPosY + 'px'; + let percentScrolled = me._node_scroller.ggScrollPosY / (me._node_scroller__vertScrollBg.offsetHeight - me._node_scroller__vertScrollFg.offsetHeight); + me._node_scroller__content.style.top = -(Math.round((me._node_scroller.ggContentHeight * (1.0 - me._node_scroller.ggVPercentVisible)) * percentScrolled)) + me._node_scroller.ggContentTopOffset + 'px'; + me._node_scroller.ggScrollPosYPercent = (me._node_scroller__vertScrollFg.offsetTop / me._node_scroller__vertScrollBg.offsetHeight); + }, 10); + } + me._node_scroller.ggScrollIntoView = function(posX, posY, width, height) { + if (me._node_scroller.ggHorScrollVisible) { + if (posX < 0) { + var diffX = Math.floor(posX * me._node_scroller.ggHPercentVisible); + me._node_scroller.ggScrollByXSmooth(diffX); + } else if (posX + width > me._node_scroller.clientWidth - (me._node_scroller.ggVertScrollVisible ? 15 : 0)) { + var diffX = Math.ceil(((posX + width) - (me._node_scroller.clientWidth - (me._node_scroller.ggVertScrollVisible ? 15 : 0))) * me._node_scroller.ggHPercentVisible); + me._node_scroller.ggScrollByXSmooth(diffX); } } - if (me._info_text_body.ggUpdatePosition) { - me._info_text_body.ggUpdatePosition(); + if (me._node_scroller.ggVertScrollVisible) { + if (posY < 0) { + var diffY = Math.floor(posY * me._node_scroller.ggVPercentVisible); + me._node_scroller.ggScrollByYSmooth(diffY); + } else if (posY + height > me._node_scroller.clientHeight - (me._node_scroller.ggHorScrollVisible ? 15 : 0)) { + var diffY = Math.ceil(((posY + height) - (me._node_scroller.clientHeight - (me._node_scroller.ggHorScrollVisible ? 15 : 0))) * me._node_scroller.ggVPercentVisible); + me._node_scroller.ggScrollByYSmooth(diffY); + } } - me._info_text_body.ggTextDiv.scrollTop = 0; } - me._screentint_info.ggUpdatePosition=function (useTransition) { + els.ontouchstart = function(e) { + e = e || window.event; + var t = e.touches; + me._node_scroller.ggDragLastX = t ? t[0].clientX : e.clientX; + me._node_scroller.ggDragLastY = t ? t[0].clientY : e.clientY; + me._node_scroller__content.ontouchend = function() { + let inertiaInterval = setInterval(function() { + me._node_scroller.ggDragInertiaX *= 0.65; + me._node_scroller.ggDragInertiaY *= 0.65; + me._node_scroller.ggScrollByX(me._node_scroller.ggDragInertiaX); + me._node_scroller.ggScrollByY(me._node_scroller.ggDragInertiaY); + if (Math.abs(me._node_scroller.ggDragInertiaX) < 1.0 && Math.abs(me._node_scroller.ggDragInertiaY) < 1.0) { + clearInterval(inertiaInterval); + } + }, 50); + me._node_scroller__content.ontouchend = null; + me._node_scroller__content.ontouchmove = null; + me._node_scroller__content.onpointerup = null; + me._node_scroller__content.onpointermove = null; + } + if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { + me._node_scroller__content.onpointerup = me._node_scroller__content.ontouchend; } - me.divSkin.appendChild(me._screentint_info); - el=me._information=document.createElement('div'); - el.ggId="information"; - el.ggDx=0; - el.ggDy=-20; - el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; - el.ggVisible=false; - el.className="ggskin ggskin_container "; - el.ggType='container'; - hs =''; - hs+='height : 250px;'; - hs+='left : -10000px;'; - hs+='position : absolute;'; - hs+='top : -10000px;'; - hs+='visibility : hidden;'; - hs+='width : 300px;'; - hs+='pointer-events:none;'; - el.setAttribute('style',hs); - el.style[domTransform + 'Origin']='50% 50%'; - me._information.ggIsActive=function() { - return false; + me._node_scroller__content.ontouchmove = function(e) { + e = e || window.event; + e.preventDefault(); + var t = e.touches; + var diffX = ((t ? t[0].clientX : e.clientX) - me._node_scroller.ggDragLastX) * me._node_scroller.ggHPercentVisible; + var diffY = ((t ? t[0].clientY : e.clientY) - me._node_scroller.ggDragLastY) * me._node_scroller.ggVPercentVisible; + me._node_scroller.ggDragInertiaX = -diffX; + me._node_scroller.ggDragInertiaY = -diffY; + me._node_scroller.ggDragLastX = t ? t[0].clientX : e.clientX; + me._node_scroller.ggDragLastY = t ? t[0].clientY : e.clientY; + me._node_scroller.ggScrollByX(-diffX); + me._node_scroller.ggScrollByY(-diffY); + } + if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { + me._node_scroller__content.onpointermove = me._node_scroller__content.ontouchmove; + } } - el.ggElementNodeId=function() { - return player.getCurrentNode(); + if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { + els.onpointerdown = els.ontouchstart; } - me._information.logicBlock_visible = function() { - var newLogicStateVisible; - if ( - ((player.getVariableValue('vis_info_popup_1') == true)) - ) - { - newLogicStateVisible = 0; - } - else { - newLogicStateVisible = -1; + elVertScrollBg = me._node_scroller__vertScrollBg = document.createElement('div'); + el.appendChild(elVertScrollBg); + elVertScrollBg.setAttribute('style', 'position: absolute; right: 0px; top: 0px; visibility: hidden; width: 15px; height: 800px; background-color: rgba(0,0,0,0.12549); pointer-events: auto;'); + elVertScrollBg.className='ggskin ggskin_scrollarea_vscrollbg'; + elVertScrollFg = me._node_scroller__vertScrollFg = document.createElement('div'); + elVertScrollBg.appendChild(elVertScrollFg); + elVertScrollFg.setAttribute('style', 'position: absolute; left: 0px; top: 0px; visibility: hidden; width: 15px; height: 800px; background-color: rgba(255,255,255,0.25098); pointer-events: auto;'); + elVertScrollFg.className='ggskin ggskin_scrollarea_vscrollfg'; + me._node_scroller.ggScrollPosY = 0; + me._node_scroller.ggScrollPosYPercent = 0.0; + elVertScrollFg.onmousedown = function(e) { + if (player.getOS() == 1 && navigator.maxTouchPoints > 0) return; + e = e || window.event; + e.preventDefault(); + e.stopPropagation(); + me._node_scroller.ggDragLastY = e.clientY; + document.onmouseup = function() { + let inertiaInterval = setInterval(function() { + me._node_scroller.ggDragInertiaY *= 0.65; + me._node_scroller.ggScrollByY(me._node_scroller.ggDragInertiaY); + if (Math.abs(me._node_scroller.ggDragInertiaY) < 1.0) { + clearInterval(inertiaInterval); + } + }, 50); + document.onmouseup = null; + document.onmousemove = null; } - if (me._information.ggCurrentLogicStateVisible != newLogicStateVisible) { - me._information.ggCurrentLogicStateVisible = newLogicStateVisible; - me._information.style[domTransition]=''; - if (me._information.ggCurrentLogicStateVisible == 0) { - me._information.style.visibility=(Number(me._information.style.opacity)>0||!me._information.style.opacity)?'inherit':'hidden'; - me._information.ggVisible=true; - } - else { - me._information.style.visibility="hidden"; - me._information.ggVisible=false; - } + document.onmousemove = function(e) { + e = e || window.event; + e.preventDefault(); + var diffY = e.clientY - me._node_scroller.ggDragLastY; + me._node_scroller.ggDragInertiaY = diffY; + me._node_scroller.ggDragLastY = e.clientY; + me._node_scroller.ggScrollByY(diffY); } } - me._information.ggUpdatePosition=function (useTransition) { - if (useTransition==='undefined') { - useTransition = false; + elVertScrollFg.ontouchstart = function(e) { + e = e || window.event; + e.preventDefault(); + e.stopPropagation(); + var t = e.touches; + me._node_scroller.ggDragLastY = t ? t[0].clientY : e.clientY; + document.ontouchend = function() { + let inertiaInterval = setInterval(function() { + me._node_scroller.ggDragInertiaY *= 0.65; + me._node_scroller.ggScrollByY(me._node_scroller.ggDragInertiaY); + if (Math.abs(me._node_scroller.ggDragInertiaY) < 1.0) { + clearInterval(inertiaInterval); + } + }, 50); + document.ontouchend = null; + document.ontouchmove = null; + document.onpointerup = null; + document.onpointermove = null; } - if (!useTransition) { - this.style[domTransition]='none'; + if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { + document.onpointerup = document.ontouchend; } - if (this.parentNode) { - var pw=this.parentNode.clientWidth; - var w=this.offsetWidth; - this.style.left=((this.ggDx * pw)/100.0 + pw/2 - w/2) + 'px'; - var ph=this.parentNode.clientHeight; - var h=this.offsetHeight; - this.style.top=((this.ggDy * ph)/100.0 + ph/2 - h/2) + 'px'; + document.ontouchmove = function(e) { + e = e || window.event; + e.preventDefault(); + var t = e.touches; + var diffY = (t ? t[0].clientY : e.clientY) - me._node_scroller.ggDragLastY; + me._node_scroller.ggDragInertiaY = diffY; + me._node_scroller.ggDragLastY = t ? t[0].clientY : e.clientY; + me._node_scroller.ggScrollByY(diffY); } - } - el=me._information_bg=document.createElement('div'); - el.ggId="information_bg"; - el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; - el.ggVisible=true; - el.className="ggskin ggskin_rectangle "; - el.ggType='rectangle'; - hs =''; - hs+='background : rgba(0,0,0,0.666667);'; - hs+='border : 0px solid #ffffff;'; - hs+='cursor : default;'; - hs+='height : 250px;'; - hs+='left : 0px;'; - hs+='position : absolute;'; - hs+='top : 0px;'; - hs+='visibility : inherit;'; - hs+='width : 300px;'; - hs+='pointer-events:auto;'; - el.setAttribute('style',hs); - el.style[domTransform + 'Origin']='50% 50%'; - me._information_bg.ggIsActive=function() { - if ((this.parentNode) && (this.parentNode.ggIsActive)) { - return this.parentNode.ggIsActive(); + if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { + document.onpointermove = document.ontouchmove; } - return false; } - el.ggElementNodeId=function() { - if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { - return this.parentNode.ggElementNodeId(); + if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { + elVertScrollFg.onpointerdown = elVertScrollFg.ontouchstart; + } + elVertScrollBg.onmousedown = function(e) { + e = e || window.event; + e.preventDefault(); + var diffY = me._node_scroller.ggScrollHeight; + if (e.offsetY < me._node_scroller.ggScrollPosY) { + diffY = diffY * -1; } - return player.getCurrentNode(); + me._node_scroller.ggScrollByYSmooth(diffY); } - me._information_bg.ggUpdatePosition=function (useTransition) { + elVertScrollBg.ontouchstart = function(e) { + e = e || window.event; + e.preventDefault(); + e.stopPropagation(); + var t = e.touches; + var rect = me._node_scroller__vertScrollBg.getBoundingClientRect(); + var diffY = me._node_scroller.ggScrollHeight; + if ((t[0].clientY - rect.top) < me._node_scroller.ggScrollPosY) { + diffY = diffY * -1; + } + me._node_scroller.ggScrollByYSmooth(diffY); } - me._information.appendChild(me._information_bg); - el=me._info_text_body=document.createElement('div'); - els=me._info_text_body__text=document.createElement('div'); - el.className='ggskin ggskin_textdiv'; - el.ggTextDiv=els; - el.ggId="info_text_body"; + el.addEventListener('wheel', function(e) { + e.preventDefault(); + var wheelDelta = Math.sign(e.deltaY); + me._node_scroller.ggScrollByYSmooth(30 * me._node_scroller.ggVPercentVisible * wheelDelta); + }); + elCornerBg = me._node_scroller__cornerBg = document.createElement('div'); + el.appendChild(elCornerBg); + elCornerBg.setAttribute('style', 'position: absolute; right: 0px; bottom: 0px; visibility: hidden; width: 15px; height: 15px; background-color: rgba(255,255,255,1);'); + elCornerBg.className='ggskin ggskin_scrollarea_scrollcorner'; + el.ggId="node_scroller"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; - el.className="ggskin ggskin_text tooltip"; - el.ggType='text'; + el.className="ggskin ggskin_scrollarea "; + el.ggType='scrollarea'; hs =''; - hs+='height : 193px;'; - hs+='left : 12px;'; + hs+='border : 0px solid #000000;'; + hs+='height : calc(100% - 50px);'; + hs+='left : 0px;'; + hs+='opacity : 0;'; + hs+='overflow : hidden;'; hs+='position : absolute;'; - hs+='top : 45px;'; - hs+='visibility : inherit;'; - hs+='width : 276px;'; + hs+='top : 50px;'; + hs+='visibility : hidden;'; + hs+='width : 178px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; - hs ='position:absolute;'; - hs += 'box-sizing: border-box;'; - hs+='cursor: default;'; - hs+='left: 0px;'; - hs+='top: 0px;'; - hs+='width: 276px;'; - hs+='height: 193px;'; - hs+='border: 0px solid #000000;'; - hs+='color: rgba(255,255,255,1);'; - hs+='text-align: left;'; - hs+='white-space: pre-wrap;'; - hs+='padding: 0px 1px 0px 1px;'; - hs+='overflow: hidden;'; - hs+='overflow-y: auto;'; - els.setAttribute('style',hs); - els.innerHTML=""; - el.appendChild(els); - me._info_text_body.ggIsActive=function() { + me._node_scroller.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } @@ -6151,100 +5766,277 @@ function pano2vrSkin(player,base) { } return player.getCurrentNode(); } - me._info_text_body.ggUpdatePosition=function (useTransition) { + me._node_scroller.logicBlock_alpha = function() { + var newLogicStateAlpha; + if ( + ((player.getVariableValue('category_visible') == true)) && + ((player.getVariableValue('node_visible') == true)) + ) + { + newLogicStateAlpha = 0; + } + else { + newLogicStateAlpha = -1; + } + if (me._node_scroller.ggCurrentLogicStateAlpha != newLogicStateAlpha) { + me._node_scroller.ggCurrentLogicStateAlpha = newLogicStateAlpha; + me._node_scroller.style[domTransition]='opacity 500ms ease 0ms'; + if (me._node_scroller.ggCurrentLogicStateAlpha == 0) { + me._node_scroller.style.visibility=me._node_scroller.ggVisible?'inherit':'hidden'; + me._node_scroller.style.opacity=1; + } + else { + setTimeout(function() { if (me._node_scroller.style.opacity == 0.0) { me._node_scroller.style.visibility="hidden"; } }, 505); + me._node_scroller.style.opacity=0; + } + } } - me._information.appendChild(me._info_text_body); - el=me._info_title=document.createElement('div'); - els=me._info_title__text=document.createElement('div'); - el.className='ggskin ggskin_textdiv'; - el.ggTextDiv=els; - el.ggId="info_title"; - el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; - el.ggVisible=true; - el.className="ggskin ggskin_text tooltip"; - el.ggType='text'; - hs =''; - hs+='height : 20px;'; - hs+='left : 12px;'; - hs+='position : absolute;'; - hs+='top : 15px;'; - hs+='visibility : inherit;'; - hs+='width : 245px;'; - hs+='pointer-events:auto;'; - el.setAttribute('style',hs); - el.style[domTransform + 'Origin']='50% 50%'; - hs ='position:absolute;'; - hs += 'box-sizing: border-box;'; - hs+='cursor: default;'; - hs+='left: 0px;'; - hs+='top: 0px;'; - hs+='width: 245px;'; - hs+='height: 20px;'; - hs+='border: 0px solid #000000;'; - hs+='color: rgba(255,255,255,1);'; - hs+='text-align: left;'; - hs+='white-space: nowrap;'; - hs+='padding: 0px 1px 0px 1px;'; - hs+='overflow: hidden;'; - els.setAttribute('style',hs); - els.innerHTML=""; - el.appendChild(els); - me._info_title.ggIsActive=function() { - if ((this.parentNode) && (this.parentNode.ggIsActive)) { - return this.parentNode.ggIsActive(); + me._node_scroller.ggUpdatePosition=function (useTransition) { + { + var horScrollWasVisible = this.ggHorScrollVisible; + var vertScrollWasVisible = this.ggVertScrollVisible; + this.ggContent.style.left = '0px'; + this.ggContent.style.top = '0px'; + this.ggContentLeftOffset = 0; + this.ggContentTopOffset = 0; + this.ggContentWidth = 0; + this.ggContentHeight = 0; + var offsetWidthWithScale = this.getBoundingClientRect().width; + var offsetHeightWithScale = this.getBoundingClientRect().height; + var domRectContent = this.ggContent.getBoundingClientRect(); + var minX = 0; + var minY = 0; + var maxX = 0; + var maxY = 0; + var stack=[]; + stack.push(this.ggContent); + while(stack.length>0) { + var e=stack.pop(); + if (e!=this.ggContent && e.getBoundingClientRect && e.style['display']!='none') { + var domRectChild = e.getBoundingClientRect(); + var diffX = domRectChild.left - domRectContent.left; + minX = Math.min(minX, diffX); + maxX = Math.max(maxX, diffX + domRectChild.width); + var diffY = domRectChild.top - domRectContent.top; + minY = Math.min(minY, diffY); + maxY = Math.max(maxY, diffY + domRectChild.height); + } + if (e.hasChildNodes() && e.style['display']!='none') { + for(var i=0;i this.clientHeight - 15) || (!me._node_scroller.ggHorScrollVisible && contentHeight > this.clientHeight)) { + me._node_scroller__vertScrollBg.style.visibility = 'inherit'; + me._node_scroller__vertScrollFg.style.visibility = 'inherit'; + me._node_scroller.ggVertScrollVisible = true; + } else { + me._node_scroller__vertScrollBg.style.visibility = 'hidden'; + me._node_scroller__vertScrollFg.style.visibility = 'hidden'; + me._node_scroller.ggVertScrollVisible = false; + } + if(me._node_scroller.ggVertScrollVisible) { + me._node_scroller.ggAvailableWidth = me._node_scroller.clientWidth - 15; + if (me._node_scroller.ggHorScrollVisible) { + me._node_scroller.ggAvailableHeight = me._node_scroller.clientHeight - 15; + me._node_scroller.ggAvailableHeightWithScale = me._node_scroller.getBoundingClientRect().height - me._node_scroller__vertScrollBg.getBoundingClientRect().width; + me._node_scroller__cornerBg.style.visibility = 'inherit'; + } else { + me._node_scroller.ggAvailableHeight = me._node_scroller.clientHeight; + me._node_scroller.ggAvailableHeightWithScale = me._node_scroller.getBoundingClientRect().height; + me._node_scroller__cornerBg.style.visibility = 'hidden'; + } + me._node_scroller__vertScrollBg.style.height = me._node_scroller.ggAvailableHeight + 'px'; + me._node_scroller.ggVPercentVisible = contentHeight != 0 ? me._node_scroller.ggAvailableHeightWithScale / contentHeight : 0.0; + if (me._node_scroller.ggVPercentVisible > 1.0) me._node_scroller.ggVPercentVisible = 1.0; + me._node_scroller.ggScrollHeight = Math.round(me._node_scroller__vertScrollBg.offsetHeight * me._node_scroller.ggVPercentVisible); + me._node_scroller__vertScrollFg.style.height = me._node_scroller.ggScrollHeight + 'px'; + me._node_scroller.ggScrollPosY = me._node_scroller.ggScrollPosYPercent * me._node_scroller.ggAvailableHeight; + me._node_scroller.ggScrollPosY = Math.min(me._node_scroller.ggScrollPosY, me._node_scroller__vertScrollBg.offsetHeight - me._node_scroller__vertScrollFg.offsetHeight); + me._node_scroller__vertScrollFg.style.top = me._node_scroller.ggScrollPosY + 'px'; + if (me._node_scroller.ggVPercentVisible < 1.0) { + let percentScrolled = me._node_scroller.ggScrollPosY / (me._node_scroller__vertScrollBg.offsetHeight - me._node_scroller__vertScrollFg.offsetHeight); + me._node_scroller__content.style.top = -(Math.round((me._node_scroller.ggContentHeight * (1.0 - me._node_scroller.ggVPercentVisible)) * percentScrolled)) + me._node_scroller.ggContentTopOffset + 'px'; + } + } else { + me._node_scroller.ggAvailableWidth = me._node_scroller.clientWidth; + me._node_scroller.ggScrollPosY = 0; + me._node_scroller.ggScrollPosYPercent = 0.0; + me._node_scroller__content.style.top = this.ggContentTopOffset + 'px'; + me._node_scroller__cornerBg.style.visibility = 'hidden'; + } + if(horScrollWasVisible != me._node_scroller.ggHorScrollVisible || vertScrollWasVisible != me._node_scroller.ggVertScrollVisible) { + me.updateSize(me._node_scroller); + me._node_scroller.ggUpdatePosition(); + } + } + } + el=me._node_cloner=document.createElement('div'); + el.ggPermeable=false; + el.ggNumRepeat = 1; + el.ggNumRows = 0; + el.ggNumCols = 0; + el.ggWidth = 140; + el.ggHeight = 100; + el.ggUpdating = false; + el.ggFilter = []; + el.ggInstances = []; + me._node_cloner.callChildLogicBlocks_changenode = function(){ + if(me._node_cloner.ggInstances) { + var i; + for(i = 0; i < me._node_cloner.ggInstances.length; i++) { + if (me._node_cloner.ggInstances[i]._node_title && me._node_cloner.ggInstances[i]._node_title.logicBlock_visible) { + me._node_cloner.ggInstances[i]._node_title.logicBlock_visible(); + } + } + } + } + me._node_cloner.callChildLogicBlocks_mouseover = function(){ + if(me._node_cloner.ggInstances) { + var i; + for(i = 0; i < me._node_cloner.ggInstances.length; i++) { + if (me._node_cloner.ggInstances[i]._node_visited && me._node_cloner.ggInstances[i]._node_visited.logicBlock_bordercolor) { + me._node_cloner.ggInstances[i]._node_visited.logicBlock_bordercolor(); + } + } + } + } + me._node_cloner.callChildLogicBlocks_active = function(){ + if(me._node_cloner.ggInstances) { + var i; + for(i = 0; i < me._node_cloner.ggInstances.length; i++) { + if (me._node_cloner.ggInstances[i]._node_visited && me._node_cloner.ggInstances[i]._node_visited.logicBlock_bordercolor) { + me._node_cloner.ggInstances[i]._node_visited.logicBlock_bordercolor(); + } + } + } + } + me._node_cloner.callChildLogicBlocks_changevisitednodes = function(){ + if(me._node_cloner.ggInstances) { + var i; + for(i = 0; i < me._node_cloner.ggInstances.length; i++) { + if (me._node_cloner.ggInstances[i]._node_visited && me._node_cloner.ggInstances[i]._node_visited.logicBlock_bordercolor) { + me._node_cloner.ggInstances[i]._node_visited.logicBlock_bordercolor(); + } + } + } + } + me._node_cloner.callChildLogicBlocks_activehotspotchanged = function(){ + if(me._node_cloner.ggInstances) { + var i; + for(i = 0; i < me._node_cloner.ggInstances.length; i++) { + if (me._node_cloner.ggInstances[i]._node_title && me._node_cloner.ggInstances[i]._node_title.logicBlock_visible) { + me._node_cloner.ggInstances[i]._node_title.logicBlock_visible(); + } + } + } + } + el.ggUpdate = function(filter) { + if(me._node_cloner.ggUpdating == true) return; + me._node_cloner.ggUpdating = true; + var el=me._node_cloner; + var curNumCols = 0; + curNumCols = me._node_cloner.ggNumRepeat; + if (curNumCols < 1) curNumCols = 1; + if (typeof filter=='object') { + el.ggFilter = filter; + } else { + filter = el.ggFilter; + }; + if (me.ggTag) filter.push(me.ggTag); + filter=filter.sort(); + if ((el.ggNumCols == curNumCols) && (el.ggInstances.length > 0) && (filter.length === el.ggCurrentFilter.length) && (filter.every(function(value, index) { return value === el.ggCurrentFilter[index] }) )) { + me._node_cloner.ggUpdating = false; + return; + } else { + el.ggNumRows = 1; + el.ggNumCols = curNumCols; } - return false; - } - el.ggElementNodeId=function() { - if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { - return this.parentNode.ggElementNodeId(); + el.ggCurrentFilter = filter; + el.ggInstances = []; + if (el.hasChildNodes() == true) { + while (el.firstChild) { + el.removeChild(el.firstChild); + } } - return player.getCurrentNode(); - } - me._info_title.ggUpdatePosition=function (useTransition) { + var tourNodes = player.getNodeIds(); + var row = 0; + var column = 0; + var currentIndex = 0; + for (var i=0; i < tourNodes.length; i++) { + var nodeId = tourNodes[i]; + var passed = true; + var nodeData = player.getNodeUserdata(nodeId); + if (filter.length > 0) { + for (var j=0; j < filter.length; j++) { + if (nodeData['tags'].indexOf(filter[j]) == -1) passed = false; + } + } + if (passed) { + var parameter={}; + parameter.top=(row * me._node_cloner.ggHeight) + 'px'; + parameter.left=(column * me._node_cloner.ggWidth) + 'px'; + parameter.width=me._node_cloner.ggWidth + 'px'; + parameter.height=me._node_cloner.ggHeight + 'px'; + parameter.index=currentIndex; + parameter.title=nodeData['title']; + var inst = new SkinCloner_node_cloner_Class(nodeId, me, el, parameter); + currentIndex++; + el.ggInstances.push(inst); + el.appendChild(inst.__div); + inst.__div.ggObj=inst; + skin.updateSize(inst.__div); + column++; + if (column >= el.ggNumCols) { + column = 0; + row++; + el.ggNumRows++; + } + } + } + me._node_cloner.callChildLogicBlocks_changenode(); + me._node_cloner.callChildLogicBlocks_mouseover(); + me._node_cloner.callChildLogicBlocks_active(); + me._node_cloner.callChildLogicBlocks_changevisitednodes(); + me._node_cloner.callChildLogicBlocks_activehotspotchanged(); + me._node_cloner.ggUpdating = false; + player.triggerEvent('clonerchanged'); + if (me._node_cloner.parentNode.classList.contains('ggskin_subelement') && me._node_cloner.parentNode.parentNode.classList.contains('ggskin_scrollarea')) me._node_cloner.parentNode.parentNode.ggUpdatePosition(); } - me._information.appendChild(me._info_title); - el=me._info_popup_close=document.createElement('div'); - els=me._info_popup_close__img=document.createElement('img'); - els.className='ggskin ggskin_svg'; - hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHk9IjBweCIgYmFzZVByb2ZpbGU9InRpbnkiIHZpZXdCb3g9Ii0yNDAgMzMyIDEzMCAxMzAiIHg9IjBweCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CiA8ZyBpZD0iTG'+ - 'F5ZXJfMV8xXyI+CiAgPHBhdGggZD0iTS0xMzUuMywzNTcuM2MtMjEuOS0yMS45LTU3LjUtMjEuOS03OS40LDBjLTIxLjksMjEuOS0yMS45LDU3LjUsMCw3OS40YzIxLjksMjEuOSw1Ny41LDIxLjksNzkuNCwwJiN4ZDsmI3hhOyYjeDk7JiN4OTtTLTExMy40LDM3OS4yLTEzNS4zLDM1Ny4zeiBNLTE0NS44LD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wLjUtMS4zbDE1LjctMTUuN2wtMTUuOC0xNS44Yy0wLjMtMC4zLTAuNC0wLjYtMC40'+ - 'LTEuMWMwLTAuNSwwLjEtMC45LDAuNS0xLjNsMTAuOS0xMC45YzAuOS0wLjksMS43LTAuOSwyLjQtMC4xJiN4ZDsmI3hhOyYjeDk7JiN4OTtsMTUuOCwxNS44bDE1LjctMTUuN2MwLjktMC45LDEuNy0wLjksMi40LTAuMWwxMS4xLDExLjFjMC44LDAuOCwwLjgsMS41LTAuMSwyLjRMLTE2MS42LDM5Ni45eiIgZmlsbD0iI0ZGRkZGRiIvPgogPC9nPgo8L3N2Zz4K'; - me._info_popup_close__img.setAttribute('src',hs); - els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); - els['ondragstart']=function() { return false; }; - el.appendChild(els); - el.ggSubElement = els; - elo=me._info_popup_close__imgo=document.createElement('img'); - elo.className='ggskin ggskin_svg'; - hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHk9IjBweCIgYmFzZVByb2ZpbGU9InRpbnkiIHZpZXdCb3g9Ii0yNDAgMzMyIDEzMCAxMzAiIHg9IjBweCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CiA8ZyBpZD0iTG'+ - 'F5ZXJfMV8xXyI+CiAgPHBhdGggZD0iTS0xMzAuOSwzNTIuOWMtMjQuNC0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xNy40LDE3LjRjLTAuNCwwLjQtMC44LDAuNi0xLjQsMC42Yy0wLjYsMC0xLTAuMS0xLjMtMC40bC0xMi4zLTEyLjNjLTAuMy0wLjMtMC40LTAuNy0wLjQtMS4zJiN4ZDsmI3hhOyYjeDk7JiN4OTtjMC0wLjYsMC4xLTEsMC42LTEuNGwxNy40LTE3LjRsLTE3LjUtMTcuNWMtMC4zLTAuMy0wLjQtMC43LTAuNC0xLjNjMC0wLjYsMC4x'+ - 'LTEsMC42LTEuNGwxMi4yLTEyLjJjMS0xLDEuOC0xLDIuNy0wLjFsMTcuNSwxNy41JiN4ZDsmI3hhOyYjeDk7JiN4OTtsMTcuNC0xNy40YzEtMSwxLjgtMSwyLjctMC4xbDEyLjMsMTIuM2MwLjgsMC44LDAuOCwxLjctMC4xLDIuN0wtMTYwLjEsMzk2Ljl6IiBmaWxsPSIjRkZGRkZGIi8+CiA8L2c+Cjwvc3ZnPgo='; - me._info_popup_close__imgo.setAttribute('src',hs); - elo.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;visibility:hidden;pointer-events:none;;'); - elo['ondragstart']=function() { return false; }; - el.appendChild(elo); - el.ggId="info_popup_close"; + el.ggFilter = []; + el.ggFilter[0] = "_nop_"; + el.ggId="node_cloner"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; - el.className="ggskin ggskin_svg "; - el.ggType='svg'; + el.className="ggskin ggskin_cloner "; + el.ggType='cloner'; hs =''; - hs+='cursor : pointer;'; - hs+='height : 32px;'; + hs+='height : 100px;'; + hs+='left : 10px;'; + hs+='overflow : visible;'; hs+='position : absolute;'; - hs+='right : 5px;'; - hs+='top : 4px;'; + hs+='top : 0px;'; hs+='visibility : inherit;'; - hs+='width : 32px;'; + hs+='width : 140px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; - me._info_popup_close.ggIsActive=function() { + me._node_cloner.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } @@ -6256,382 +6048,402 @@ function pano2vrSkin(player,base) { } return player.getCurrentNode(); } - me._info_popup_close.onclick=function (e) { - player.setVariableValue('vis_info_popup_1', false); - me._info_title.ggText=""; - me._info_title.ggTextDiv.innerHTML=me._info_title.ggText; - if (me._info_title.ggUpdateText) { - me._info_title.ggUpdateText=function() { - var hs=""; - if (hs!=this.ggText) { - this.ggText=hs; - this.ggTextDiv.innerHTML=hs; - if (this.ggUpdatePosition) this.ggUpdatePosition(); - } - } - } - if (me._info_title.ggUpdatePosition) { - me._info_title.ggUpdatePosition(); - } - me._info_title.ggTextDiv.scrollTop = 0; - me._info_text_body.ggText=""; - me._info_text_body.ggTextDiv.innerHTML=me._info_text_body.ggText; - if (me._info_text_body.ggUpdateText) { - me._info_text_body.ggUpdateText=function() { - var hs=""; - if (hs!=this.ggText) { - this.ggText=hs; - this.ggTextDiv.innerHTML=hs; - if (this.ggUpdatePosition) this.ggUpdatePosition(); + me._node_cloner.ggUpdateConditionNodeChange=function () { + var cnode=player.getCurrentNode(); + for(var i=0; i= 1.0) return; + me._category_scroller.ggScrollPosX = (me._category_scroller__horScrollFg.offsetLeft + diffX); + me._category_scroller.ggScrollPosX = Math.max(me._category_scroller.ggScrollPosX, 0); + me._category_scroller.ggScrollPosX = Math.min(me._category_scroller.ggScrollPosX, me._category_scroller__horScrollBg.offsetWidth - me._category_scroller__horScrollFg.offsetWidth); + me._category_scroller__horScrollFg.style.left = me._category_scroller.ggScrollPosX + 'px'; + let percentScrolled = me._category_scroller.ggScrollPosX / (me._category_scroller__horScrollBg.offsetWidth - me._category_scroller__horScrollFg.offsetWidth); + me._category_scroller__content.style.left = -(Math.round((me._category_scroller.ggContentWidth * (1.0 - me._category_scroller.ggHPercentVisible)) * percentScrolled)) + me._category_scroller.ggContentLeftOffset + 'px'; + me._category_scroller.ggScrollPosXPercent = (me._category_scroller__horScrollFg.offsetLeft / me._category_scroller__horScrollBg.offsetWidth); } - el.ggElementNodeId=function() { - return player.getCurrentNode(); + me._category_scroller.ggScrollByXSmooth = function(diffX) { + if(!me._category_scroller.ggHorScrollVisible || diffX == 0 || me._category_scroller.ggHPercentVisible >= 1.0) return; + var scrollPerInterval = diffX / 25; + var scrollCurrX = 0; + var id = setInterval(function() { + scrollCurrX += scrollPerInterval; + me._category_scroller.ggScrollPosX += scrollPerInterval; + if (diffX > 0 && (scrollCurrX >= diffX || me._category_scroller.ggScrollPosX >= me._category_scroller__horScrollBg.offsetWidth - me._category_scroller__horScrollFg.offsetWidth)) { + me._category_scroller.ggScrollPosX = Math.min(me._category_scroller.ggScrollPosX, me._category_scroller__horScrollBg.offsetWidth - me._category_scroller__horScrollFg.offsetWidth); + clearInterval(id); + } + if (diffX < 0 && (scrollCurrX <= diffX || me._category_scroller.ggScrollPosX <= 0)) { + me._category_scroller.ggScrollPosX = Math.max(me._category_scroller.ggScrollPosX, 0); + clearInterval(id); + } + me._category_scroller__horScrollFg.style.left = me._category_scroller.ggScrollPosX + 'px'; + let percentScrolled = me._category_scroller.ggScrollPosX / (me._category_scroller__horScrollBg.offsetWidth - me._category_scroller__horScrollFg.offsetWidth); + me._category_scroller__content.style.left = -(Math.round((me._category_scroller.ggContentWidth * (1.0 - me._category_scroller.ggHPercentVisible)) * percentScrolled)) + me._category_scroller.ggContentLeftOffset + 'px'; + me._category_scroller.ggScrollPosXPercent = (me._category_scroller__horScrollFg.offsetLeft / me._category_scroller__horScrollBg.offsetWidth); + }, 10); + } + me._category_scroller.ggScrollByY = function(diffY) { + if(!me._category_scroller.ggVertScrollVisible || diffY == 0 || me._category_scroller.ggVPercentVisible >= 1.0) return; + me._category_scroller.ggScrollPosY = (me._category_scroller__vertScrollFg.offsetTop + diffY); + me._category_scroller.ggScrollPosY = Math.max(me._category_scroller.ggScrollPosY, 0); + me._category_scroller.ggScrollPosY = Math.min(me._category_scroller.ggScrollPosY, me._category_scroller__vertScrollBg.offsetHeight - me._category_scroller__vertScrollFg.offsetHeight); + me._category_scroller__vertScrollFg.style.top = me._category_scroller.ggScrollPosY + 'px'; + let percentScrolled = me._category_scroller.ggScrollPosY / (me._category_scroller__vertScrollBg.offsetHeight - me._category_scroller__vertScrollFg.offsetHeight); + me._category_scroller__content.style.top = -(Math.round((me._category_scroller.ggContentHeight * (1.0 - me._category_scroller.ggVPercentVisible)) * percentScrolled)) + me._category_scroller.ggContentTopOffset + 'px'; + me._category_scroller.ggScrollPosYPercent = (me._category_scroller__vertScrollFg.offsetTop / me._category_scroller__vertScrollBg.offsetHeight); } - me._instrues_de_uso.logicBlock_position = function() { - var newLogicStatePosition; - if ( - ((player.getViewerSize().width <= 1024)) - ) - { - newLogicStatePosition = 0; - } - else { - newLogicStatePosition = -1; - } - if (me._instrues_de_uso.ggCurrentLogicStatePosition != newLogicStatePosition) { - me._instrues_de_uso.ggCurrentLogicStatePosition = newLogicStatePosition; - me._instrues_de_uso.style[domTransition]='left 0s, bottom 0s'; - if (me._instrues_de_uso.ggCurrentLogicStatePosition == 0) { - this.ggDx = 0; - me._instrues_de_uso.style.bottom='90px'; - me._instrues_de_uso.ggUpdatePosition(true); + me._category_scroller.ggScrollByYSmooth = function(diffY) { + if(!me._category_scroller.ggVertScrollVisible || diffY == 0 || me._category_scroller.ggVPercentVisible >= 1.0) return; + var scrollPerInterval = diffY / 25; + var scrollCurrY = 0; + var id = setInterval(function() { + scrollCurrY += scrollPerInterval; + me._category_scroller.ggScrollPosY += scrollPerInterval; + if (diffY > 0 && (scrollCurrY >= diffY || me._category_scroller.ggScrollPosY >= me._category_scroller__vertScrollBg.offsetHeight - me._category_scroller__vertScrollFg.offsetHeight)) { + me._category_scroller.ggScrollPosY = Math.min(me._category_scroller.ggScrollPosY, me._category_scroller__vertScrollBg.offsetHeight - me._category_scroller__vertScrollFg.offsetHeight); + clearInterval(id); } - else { - me._instrues_de_uso.ggDx=0; - me._instrues_de_uso.style.bottom='29px'; - me._instrues_de_uso.ggUpdatePosition(true); + if (diffY < 0 && (scrollCurrY <= diffY || me._category_scroller.ggScrollPosY <= 0)) { + me._category_scroller.ggScrollPosY = Math.max(me._category_scroller.ggScrollPosY, 0); + clearInterval(id); } - } + me._category_scroller__vertScrollFg.style.top = me._category_scroller.ggScrollPosY + 'px'; + let percentScrolled = me._category_scroller.ggScrollPosY / (me._category_scroller__vertScrollBg.offsetHeight - me._category_scroller__vertScrollFg.offsetHeight); + me._category_scroller__content.style.top = -(Math.round((me._category_scroller.ggContentHeight * (1.0 - me._category_scroller.ggVPercentVisible)) * percentScrolled)) + me._category_scroller.ggContentTopOffset + 'px'; + me._category_scroller.ggScrollPosYPercent = (me._category_scroller__vertScrollFg.offsetTop / me._category_scroller__vertScrollBg.offsetHeight); + }, 10); } - me._instrues_de_uso.logicBlock_visible = function() { - var newLogicStateVisible; - if ( - ((player.getVariableValue('Node1') == true)) - ) - { - newLogicStateVisible = 0; - } - else { - newLogicStateVisible = -1; - } - if (me._instrues_de_uso.ggCurrentLogicStateVisible != newLogicStateVisible) { - me._instrues_de_uso.ggCurrentLogicStateVisible = newLogicStateVisible; - me._instrues_de_uso.style[domTransition]='left 0s, bottom 0s'; - if (me._instrues_de_uso.ggCurrentLogicStateVisible == 0) { - me._instrues_de_uso.style.visibility="hidden"; - me._instrues_de_uso.ggVisible=false; + me._category_scroller.ggScrollIntoView = function(posX, posY, width, height) { + if (me._category_scroller.ggHorScrollVisible) { + if (posX < 0) { + var diffX = Math.floor(posX * me._category_scroller.ggHPercentVisible); + me._category_scroller.ggScrollByXSmooth(diffX); + } else if (posX + width > me._category_scroller.clientWidth - (me._category_scroller.ggVertScrollVisible ? 15 : 0)) { + var diffX = Math.ceil(((posX + width) - (me._category_scroller.clientWidth - (me._category_scroller.ggVertScrollVisible ? 15 : 0))) * me._category_scroller.ggHPercentVisible); + me._category_scroller.ggScrollByXSmooth(diffX); } - else { - me._instrues_de_uso.style.visibility=(Number(me._instrues_de_uso.style.opacity)>0||!me._instrues_de_uso.style.opacity)?'inherit':'hidden'; - me._instrues_de_uso.ggVisible=true; + } + if (me._category_scroller.ggVertScrollVisible) { + if (posY < 0) { + var diffY = Math.floor(posY * me._category_scroller.ggVPercentVisible); + me._category_scroller.ggScrollByYSmooth(diffY); + } else if (posY + height > me._category_scroller.clientHeight - (me._category_scroller.ggHorScrollVisible ? 15 : 0)) { + var diffY = Math.ceil(((posY + height) - (me._category_scroller.clientHeight - (me._category_scroller.ggHorScrollVisible ? 15 : 0))) * me._category_scroller.ggVPercentVisible); + me._category_scroller.ggScrollByYSmooth(diffY); } } } - me._instrues_de_uso.onclick=function (e) { - player.playStopSound("Element01","1"); - player.setVolume("_main",1); - player.stopSound("Audio1"); - player.stopSound("Audio2"); - if (me._popup_video_file.ggApiPlayer) { - if (me._popup_video_file.ggApiPlayerType == 'youtube') { - let youtubeMediaFunction = function() { - me._popup_video_file.ggApiPlayer.pauseVideo(); - me._popup_video_file.ggApiPlayer.seekTo(0); - }; - if (me._popup_video_file.ggApiPlayerReady) { - youtubeMediaFunction(); - } else { - let youtubeApiInterval = setInterval(function() { - if (me._popup_video_file.ggApiPlayerReady) { - clearInterval(youtubeApiInterval); - youtubeMediaFunction(); - } - }, 100); + els.ontouchstart = function(e) { + e = e || window.event; + var t = e.touches; + me._category_scroller.ggDragLastX = t ? t[0].clientX : e.clientX; + me._category_scroller.ggDragLastY = t ? t[0].clientY : e.clientY; + me._category_scroller__content.ontouchend = function() { + let inertiaInterval = setInterval(function() { + me._category_scroller.ggDragInertiaX *= 0.65; + me._category_scroller.ggDragInertiaY *= 0.65; + me._category_scroller.ggScrollByX(me._category_scroller.ggDragInertiaX); + me._category_scroller.ggScrollByY(me._category_scroller.ggDragInertiaY); + if (Math.abs(me._category_scroller.ggDragInertiaX) < 1.0 && Math.abs(me._category_scroller.ggDragInertiaY) < 1.0) { + clearInterval(inertiaInterval); } - } else if (me._popup_video_file.ggApiPlayerType == 'vimeo') { - me._popup_video_file.ggApiPlayer.pause(); - me._popup_video_file.ggApiPlayer.setCurrentTime(0); - } - } else { - player.stopSound("popup_video_file"); + }, 50); + me._category_scroller__content.ontouchend = null; + me._category_scroller__content.ontouchmove = null; + me._category_scroller__content.onpointerup = null; + me._category_scroller__content.onpointermove = null; } + if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { + me._category_scroller__content.onpointerup = me._category_scroller__content.ontouchend; } - me._instrues_de_uso.ggUpdatePosition=function (useTransition) { - if (useTransition==='undefined') { - useTransition = false; - } - if (!useTransition) { - this.style[domTransition]='none'; + me._category_scroller__content.ontouchmove = function(e) { + e = e || window.event; + e.preventDefault(); + var t = e.touches; + var diffX = ((t ? t[0].clientX : e.clientX) - me._category_scroller.ggDragLastX) * me._category_scroller.ggHPercentVisible; + var diffY = ((t ? t[0].clientY : e.clientY) - me._category_scroller.ggDragLastY) * me._category_scroller.ggVPercentVisible; + me._category_scroller.ggDragInertiaX = -diffX; + me._category_scroller.ggDragInertiaY = -diffY; + me._category_scroller.ggDragLastX = t ? t[0].clientX : e.clientX; + me._category_scroller.ggDragLastY = t ? t[0].clientY : e.clientY; + me._category_scroller.ggScrollByX(-diffX); + me._category_scroller.ggScrollByY(-diffY); } - if (this.parentNode) { - var pw=this.parentNode.clientWidth; - var w=this.offsetWidth; - this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; + if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { + me._category_scroller__content.onpointermove = me._category_scroller__content.ontouchmove; } } - el=me._instrues_de_uso_texto=document.createElement('div'); - els=me._instrues_de_uso_texto__text=document.createElement('div'); - el.className='ggskin ggskin_textdiv'; - el.ggTextDiv=els; - el.ggId="INSTRU\xc7\xd5ES DE USO_texto"; - el.ggDx=0; - el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; - el.ggVisible=true; - el.className="ggskin ggskin_text tooltip"; - el.ggType='text'; - hs =''; - hs+='bottom : -2px;'; - hs+='height : 20px;'; - hs+='left : -10000px;'; - hs+='position : absolute;'; - hs+='visibility : inherit;'; - hs+='width : 200px;'; - hs+='pointer-events:auto;'; - el.setAttribute('style',hs); - el.style[domTransform + 'Origin']='50% 50%'; - hs ='position:absolute;'; - hs += 'box-sizing: border-box;'; - hs+='cursor: default;'; - hs+='left: 0px;'; - hs+='bottom: 0px;'; - hs+='width: 202px;'; - hs+='height: 22px;'; - hs+='background: #ffffff;'; - hs+='background: rgba(255,255,255,0);'; - hs+='border: 1px solid #000000;'; - hs+='border: 1px solid rgba(0,0,0,0);'; - hs+=cssPrefix + 'background-clip: padding-box;'; - hs+='background-clip: padding-box;'; - hs+='color: rgba(255,255,255,1);'; - hs+='text-align: center;'; - hs+='white-space: nowrap;'; - hs+='padding: 0px 1px 0px 1px;'; - hs+='overflow: hidden;'; - hs+='overflow-y: auto;'; - els.setAttribute('style',hs); - els.innerHTML="INSTRU\xc7\xd5ES DE USO"; - el.appendChild(els); - me._instrues_de_uso_texto.ggIsActive=function() { - if ((this.parentNode) && (this.parentNode.ggIsActive)) { - return this.parentNode.ggIsActive(); - } - return false; + if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { + els.onpointerdown = els.ontouchstart; } - el.ggElementNodeId=function() { - if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { - return this.parentNode.ggElementNodeId(); + elHorScrollBg = me._category_scroller__horScrollBg = document.createElement('div'); + el.appendChild(elHorScrollBg); + elHorScrollBg.setAttribute('style', 'position: absolute; left: 0px; bottom: 0px; visibility: hidden; width: 178px; height: 15px; background-color: rgba(128,128,128,0.752941); pointer-events: auto;'); + elHorScrollBg.className='ggskin ggskin_scrollarea_hscrollbg'; + elHorScrollFg = me._category_scroller__horScrollFg = document.createElement('div'); + elHorScrollBg.appendChild(elHorScrollFg); + elHorScrollFg.className='ggskin ggskin_scrollarea_hscrollfg'; + elHorScrollFg.setAttribute('style', 'position: absolute; left: 0px; top: 0px; visibility: hidden; width: 178px; height: 15px; background-color: rgba(192,192,192,0.752941); pointer-events: auto;'); + me._category_scroller.ggScrollPosX = 0; + me._category_scroller.ggScrollPosXPercent = 0.0; + elHorScrollFg.onmousedown = function(e) { + if (player.getOS() == 1 && navigator.maxTouchPoints > 0) return; + e = e || window.event; + e.preventDefault(); + e.stopPropagation(); + me._category_scroller.ggDragLastX = e.clientX; + document.onmouseup = function() { + let inertiaInterval = setInterval(function() { + me._category_scroller.ggDragInertiaX *= 0.65; + me._category_scroller.ggScrollByX(me._category_scroller.ggDragInertiaX); + if (Math.abs(me._category_scroller.ggDragInertiaX) < 1.0) { + clearInterval(inertiaInterval); + } + }, 50); + document.onmouseup = null; + document.onmousemove = null; + } + document.onmousemove = function(e) { + e = e || window.event; + e.preventDefault(); + var diffX = e.clientX - me._category_scroller.ggDragLastX; + me._category_scroller.ggDragInertiaX = diffX; + me._category_scroller.ggDragLastX = e.clientX; + me._category_scroller.ggScrollByX(diffX); } - return player.getCurrentNode(); } - me._instrues_de_uso_texto.ggUpdatePosition=function (useTransition) { - if (useTransition==='undefined') { - useTransition = false; + elHorScrollFg.ontouchstart = function(e) { + e = e || window.event; + e.preventDefault(); + e.stopPropagation(); + var t = e.touches; + me._category_scroller.ggDragLastX = t ? t[0].clientX : e.clientX; + document.ontouchend = function() { + let inertiaInterval = setInterval(function() { + me._category_scroller.ggDragInertiaX *= 0.65; + me._category_scroller.ggScrollByX(me._category_scroller.ggDragInertiaX); + if (Math.abs(me._category_scroller.ggDragInertiaX) < 1.0) { + clearInterval(inertiaInterval); + } + }, 50); + document.ontouchend = null; + document.ontouchmove = null; + document.onpointerup = null; + document.onpointermove = null; } - if (!useTransition) { - this.style[domTransition]='none'; + if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { + document.onpointerup = document.ontouchend; } - if (this.parentNode) { - var pw=this.parentNode.clientWidth; - var w=this.offsetWidth + 2; - this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; + document.ontouchmove = function(e) { + e = e || window.event; + e.preventDefault(); + var t = e.touches; + var diffX = (t ? t[0].clientX : e.clientX) - me._category_scroller.ggDragLastX; + me._category_scroller.ggDragInertiaX = diffX; + me._category_scroller.ggDragLastX = t ? t[0].clientX : e.clientX; + me._category_scroller.ggScrollByX(diffX); + } + if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { + document.onpointermove = document.ontouchmove; } } - me._instrues_de_uso.appendChild(me._instrues_de_uso_texto); - me.divSkin.appendChild(me._instrues_de_uso); - el=me._iconespadro=document.createElement('div'); - el.ggId="Icones-Padr\xe3o"; - el.ggDx=0; - el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; - el.ggVisible=false; - el.className="ggskin ggskin_rectangle "; - el.ggType='rectangle'; - hs =''; - hs+='background : #000000;'; - hs+='border : 1px solid #000000;'; - hs+='cursor : default;'; - hs+='height : 45px;'; - hs+='left : -10000px;'; - hs+='opacity : 0.3;'; - hs+='position : absolute;'; - hs+='top : 0px;'; - hs+='visibility : hidden;'; - hs+='width : 100%;'; - hs+='pointer-events:auto;'; - el.setAttribute('style',hs); - el.style[domTransform + 'Origin']='50% 50%'; - me._iconespadro.ggIsActive=function() { - return false; - } - el.ggElementNodeId=function() { - return player.getCurrentNode(); + if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { + elHorScrollFg.onpointerdown = elHorScrollFg.ontouchstart; } - me._iconespadro.logicBlock_visible = function() { - var newLogicStateVisible; - if ( - ((player.getVariableValue('Opcao2') == true)) && - ((player.getVariableValue('Node1') == true)) - ) - { - newLogicStateVisible = 0; + elHorScrollBg.onmousedown = function(e) { + e = e || window.event; + e.preventDefault(); + var diffX = me._category_scroller.ggScrollWidth; + if (e.offsetX < me._category_scroller.ggScrollPosX) { + diffX = diffX * -1; } - else if ( - ((player.getVariableValue('Menu') == true)) && - ((player.getVariableValue('Node1') == true)) - ) - { - newLogicStateVisible = 1; + me._category_scroller.ggScrollByXSmooth(diffX); + } + elHorScrollBg.ontouchstart = function(e) { + e = e || window.event; + e.preventDefault(); + e.stopPropagation(); + var t = e.touches; + var rect = me._category_scroller__horScrollBg.getBoundingClientRect(); + var diffX = me._category_scroller.ggScrollWidth; + if ((t[0].clientX - rect.left) < me._category_scroller.ggScrollPosX) { + diffX = diffX * -1; } - else { - newLogicStateVisible = -1; + me._category_scroller.ggScrollByXSmooth(diffX); + } + el.addEventListener('wheel', function(e) { + e.preventDefault(); + var wheelDelta = Math.sign(e.deltaX); + me._category_scroller.ggScrollByXSmooth(30 * me._category_scroller.ggHPercentVisible * wheelDelta); + }); + elVertScrollBg = me._category_scroller__vertScrollBg = document.createElement('div'); + el.appendChild(elVertScrollBg); + elVertScrollBg.setAttribute('style', 'position: absolute; right: 0px; top: 0px; visibility: hidden; width: 15px; height: 480px; background-color: rgba(128,128,128,0.752941); pointer-events: auto;'); + elVertScrollBg.className='ggskin ggskin_scrollarea_vscrollbg'; + elVertScrollFg = me._category_scroller__vertScrollFg = document.createElement('div'); + elVertScrollBg.appendChild(elVertScrollFg); + elVertScrollFg.setAttribute('style', 'position: absolute; left: 0px; top: 0px; visibility: hidden; width: 15px; height: 480px; background-color: rgba(192,192,192,0.752941); pointer-events: auto;'); + elVertScrollFg.className='ggskin ggskin_scrollarea_vscrollfg'; + me._category_scroller.ggScrollPosY = 0; + me._category_scroller.ggScrollPosYPercent = 0.0; + elVertScrollFg.onmousedown = function(e) { + if (player.getOS() == 1 && navigator.maxTouchPoints > 0) return; + e = e || window.event; + e.preventDefault(); + e.stopPropagation(); + me._category_scroller.ggDragLastY = e.clientY; + document.onmouseup = function() { + let inertiaInterval = setInterval(function() { + me._category_scroller.ggDragInertiaY *= 0.65; + me._category_scroller.ggScrollByY(me._category_scroller.ggDragInertiaY); + if (Math.abs(me._category_scroller.ggDragInertiaY) < 1.0) { + clearInterval(inertiaInterval); + } + }, 50); + document.onmouseup = null; + document.onmousemove = null; } - if (me._iconespadro.ggCurrentLogicStateVisible != newLogicStateVisible) { - me._iconespadro.ggCurrentLogicStateVisible = newLogicStateVisible; - me._iconespadro.style[domTransition]='opacity 0s'; - if (me._iconespadro.ggCurrentLogicStateVisible == 0) { - me._iconespadro.style.visibility=(Number(me._iconespadro.style.opacity)>0||!me._iconespadro.style.opacity)?'inherit':'hidden'; - me._iconespadro.ggVisible=true; - } - else if (me._iconespadro.ggCurrentLogicStateVisible == 1) { - me._iconespadro.style.visibility=(Number(me._iconespadro.style.opacity)>0||!me._iconespadro.style.opacity)?'inherit':'hidden'; - me._iconespadro.ggVisible=true; - } - else { - me._iconespadro.style.visibility="hidden"; - me._iconespadro.ggVisible=false; - } + document.onmousemove = function(e) { + e = e || window.event; + e.preventDefault(); + var diffY = e.clientY - me._category_scroller.ggDragLastY; + me._category_scroller.ggDragInertiaY = diffY; + me._category_scroller.ggDragLastY = e.clientY; + me._category_scroller.ggScrollByY(diffY); } } - me._iconespadro.logicBlock_alpha = function() { - var newLogicStateAlpha; - if ( - ((me.elementMouseOver['iconespadro'] == true)) - ) - { - newLogicStateAlpha = 0; + elVertScrollFg.ontouchstart = function(e) { + e = e || window.event; + e.preventDefault(); + e.stopPropagation(); + var t = e.touches; + me._category_scroller.ggDragLastY = t ? t[0].clientY : e.clientY; + document.ontouchend = function() { + let inertiaInterval = setInterval(function() { + me._category_scroller.ggDragInertiaY *= 0.65; + me._category_scroller.ggScrollByY(me._category_scroller.ggDragInertiaY); + if (Math.abs(me._category_scroller.ggDragInertiaY) < 1.0) { + clearInterval(inertiaInterval); + } + }, 50); + document.ontouchend = null; + document.ontouchmove = null; + document.onpointerup = null; + document.onpointermove = null; } - else { - newLogicStateAlpha = -1; + if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { + document.onpointerup = document.ontouchend; } - if (me._iconespadro.ggCurrentLogicStateAlpha != newLogicStateAlpha) { - me._iconespadro.ggCurrentLogicStateAlpha = newLogicStateAlpha; - me._iconespadro.style[domTransition]='opacity 0s'; - if (me._iconespadro.ggCurrentLogicStateAlpha == 0) { - me._iconespadro.style.visibility=me._iconespadro.ggVisible?'inherit':'hidden'; - me._iconespadro.style.opacity=1; - } - else { - me._iconespadro.style.visibility=me._iconespadro.ggVisible?'inherit':'hidden'; - me._iconespadro.style.opacity=0.3; - } + document.ontouchmove = function(e) { + e = e || window.event; + e.preventDefault(); + var t = e.touches; + var diffY = (t ? t[0].clientY : e.clientY) - me._category_scroller.ggDragLastY; + me._category_scroller.ggDragInertiaY = diffY; + me._category_scroller.ggDragLastY = t ? t[0].clientY : e.clientY; + me._category_scroller.ggScrollByY(diffY); + } + if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { + document.onpointermove = document.ontouchmove; } } - me._iconespadro.onmouseover=function (e) { - me.elementMouseOver['iconespadro']=true; - me._iconespadro.logicBlock_alpha(); - } - me._iconespadro.onmouseout=function (e) { - me.elementMouseOver['iconespadro']=false; - me._iconespadro.logicBlock_alpha(); - } - me._iconespadro.ontouchend=function (e) { - me.elementMouseOver['iconespadro']=false; - me._iconespadro.logicBlock_alpha(); + if (player.getOS() == 1 && navigator.maxTouchPoints > 0) { + elVertScrollFg.onpointerdown = elVertScrollFg.ontouchstart; } - me._iconespadro.ggUpdatePosition=function (useTransition) { - if (useTransition==='undefined') { - useTransition = false; - } - if (!useTransition) { - this.style[domTransition]='none'; + elVertScrollBg.onmousedown = function(e) { + e = e || window.event; + e.preventDefault(); + var diffY = me._category_scroller.ggScrollHeight; + if (e.offsetY < me._category_scroller.ggScrollPosY) { + diffY = diffY * -1; } - if (this.parentNode) { - var pw=this.parentNode.clientWidth; - var w=this.offsetWidth; - this.style.left=(this.ggDx + pw/2 - w/2) + 'px'; + me._category_scroller.ggScrollByYSmooth(diffY); + } + elVertScrollBg.ontouchstart = function(e) { + e = e || window.event; + e.preventDefault(); + e.stopPropagation(); + var t = e.touches; + var rect = me._category_scroller__vertScrollBg.getBoundingClientRect(); + var diffY = me._category_scroller.ggScrollHeight; + if ((t[0].clientY - rect.top) < me._category_scroller.ggScrollPosY) { + diffY = diffY * -1; } + me._category_scroller.ggScrollByYSmooth(diffY); } - el=me._nd_image_contato=document.createElement('div'); - els=me._nd_image_contato__img=document.createElement('img'); - els.className='ggskin ggskin_nd_image_contato'; - hs=basePath + 'images/nd_image_contato.png'; - els.setAttribute('src',hs); - els.ggNormalSrc=hs; - els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); - els.className='ggskin ggskin_image'; - els['ondragstart']=function() { return false; }; - player.checkLoaded.push(els); - el.appendChild(els); - el.ggSubElement = els; - el.ggId="nd_image_contato"; + el.addEventListener('wheel', function(e) { + e.preventDefault(); + var wheelDelta = Math.sign(e.deltaY); + me._category_scroller.ggScrollByYSmooth(30 * me._category_scroller.ggVPercentVisible * wheelDelta); + }); + elCornerBg = me._category_scroller__cornerBg = document.createElement('div'); + el.appendChild(elCornerBg); + elCornerBg.setAttribute('style', 'position: absolute; right: 0px; bottom: 0px; visibility: hidden; width: 15px; height: 15px; background-color: rgba(255,255,255,1);'); + elCornerBg.className='ggskin ggskin_scrollarea_scrollcorner'; + el.ggId="category_scroller"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; - el.className="ggskin ggskin_image "; - el.ggType='image'; + el.className="ggskin ggskin_scrollarea "; + el.ggType='scrollarea'; hs =''; - hs+='height : 37px;'; - hs+='left : 65px;'; + hs+='border : 0px solid #000000;'; + hs+='height : calc(100% - 50px);'; + hs+='left : 0px;'; + hs+='overflow : hidden;'; hs+='position : absolute;'; - hs+='top : 0px;'; + hs+='top : 50px;'; hs+='visibility : inherit;'; - hs+='width : 37px;'; - hs+='pointer-events:auto;'; + hs+='width : 178px;'; + hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; - me._nd_image_contato.ggIsActive=function() { + me._category_scroller.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } @@ -6641,42 +6453,281 @@ function pano2vrSkin(player,base) { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } - return player.getCurrentNode(); - } - me._nd_image_contato.onclick=function (e) { - player.openUrl("https:\/\/api.whatsapp.com\/send?phone=5491150500147&text=Turismo%20Ciudad",""); - } - me._nd_image_contato.ggUpdatePosition=function (useTransition) { + return player.getCurrentNode(); + } + me._category_scroller.logicBlock_alpha = function() { + var newLogicStateAlpha; + if ( + ((player.getVariableValue('node_visible') == true)) || + ((player.getVariableValue('category_visible') == false)) + ) + { + newLogicStateAlpha = 0; + } + else { + newLogicStateAlpha = -1; + } + if (me._category_scroller.ggCurrentLogicStateAlpha != newLogicStateAlpha) { + me._category_scroller.ggCurrentLogicStateAlpha = newLogicStateAlpha; + me._category_scroller.style[domTransition]='opacity 500ms ease 0ms'; + if (me._category_scroller.ggCurrentLogicStateAlpha == 0) { + setTimeout(function() { if (me._category_scroller.style.opacity == 0.0) { me._category_scroller.style.visibility="hidden"; } }, 505); + me._category_scroller.style.opacity=0; + } + else { + me._category_scroller.style.visibility=me._category_scroller.ggVisible?'inherit':'hidden'; + me._category_scroller.style.opacity=1; + } + } + } + me._category_scroller.ggUpdatePosition=function (useTransition) { + { + var horScrollWasVisible = this.ggHorScrollVisible; + var vertScrollWasVisible = this.ggVertScrollVisible; + this.ggContent.style.left = '0px'; + this.ggContent.style.top = '0px'; + this.ggContentLeftOffset = 0; + this.ggContentTopOffset = 0; + this.ggContentWidth = 0; + this.ggContentHeight = 0; + var offsetWidthWithScale = this.getBoundingClientRect().width; + var offsetHeightWithScale = this.getBoundingClientRect().height; + var domRectContent = this.ggContent.getBoundingClientRect(); + var minX = 0; + var minY = 0; + var maxX = 0; + var maxY = 0; + var stack=[]; + stack.push(this.ggContent); + while(stack.length>0) { + var e=stack.pop(); + if (e!=this.ggContent && e.getBoundingClientRect && e.style['display']!='none') { + var domRectChild = e.getBoundingClientRect(); + var diffX = domRectChild.left - domRectContent.left; + minX = Math.min(minX, diffX); + maxX = Math.max(maxX, diffX + domRectChild.width); + var diffY = domRectChild.top - domRectContent.top; + minY = Math.min(minY, diffY); + maxY = Math.max(maxY, diffY + domRectChild.height); + } + if (e.hasChildNodes() && e.style['display']!='none') { + for(var i=0;i Math.ceil(offsetWidthWithScale)) { + me._category_scroller__horScrollBg.style.visibility = 'inherit'; + me._category_scroller__horScrollFg.style.visibility = 'inherit'; + me._category_scroller.ggHorScrollVisible = true; + } else { + me._category_scroller__horScrollBg.style.visibility = 'hidden'; + me._category_scroller__horScrollFg.style.visibility = 'hidden'; + me._category_scroller.ggHorScrollVisible = false; + } + if ((me._category_scroller.ggHorScrollVisible && contentHeight > this.clientHeight - 15) || (!me._category_scroller.ggHorScrollVisible && contentHeight > this.clientHeight)) { + me._category_scroller__vertScrollBg.style.visibility = 'inherit'; + me._category_scroller__vertScrollFg.style.visibility = 'inherit'; + me._category_scroller.ggVertScrollVisible = true; + if (!me._category_scroller.ggHorScrollVisible && (contentWidth > offsetWidthWithScale - me._category_scroller__vertScrollBg.getBoundingClientRect().width)) { + me._category_scroller__horScrollBg.style.visibility = 'inherit'; + me._category_scroller__horScrollFg.style.visibility = 'inherit'; + me._category_scroller.ggHorScrollVisible = true; + } + } else { + me._category_scroller__vertScrollBg.style.visibility = 'hidden'; + me._category_scroller__vertScrollFg.style.visibility = 'hidden'; + me._category_scroller.ggVertScrollVisible = false; + } + if(me._category_scroller.ggHorScrollVisible) { + me._category_scroller.ggAvailableHeight = me._category_scroller.clientHeight - 15; + if (me._category_scroller.ggVertScrollVisible) { + me._category_scroller.ggAvailableWidth = me._category_scroller.clientWidth - 15; + me._category_scroller.ggAvailableWidthWithScale = me._category_scroller.getBoundingClientRect().width - me._category_scroller__horScrollBg.getBoundingClientRect().height; + } else { + me._category_scroller.ggAvailableWidth = me._category_scroller.clientWidth; + me._category_scroller.ggAvailableWidthWithScale = me._category_scroller.getBoundingClientRect().width; + } + me._category_scroller__horScrollBg.style.width = me._category_scroller.ggAvailableWidth + 'px'; + me._category_scroller.ggHPercentVisible = contentWidth != 0 ? me._category_scroller.ggAvailableWidthWithScale / contentWidth : 0.0; + if (me._category_scroller.ggHPercentVisible > 1.0) me._category_scroller.ggHPercentVisible = 1.0; + me._category_scroller.ggScrollWidth = Math.round(me._category_scroller__horScrollBg.offsetWidth * me._category_scroller.ggHPercentVisible); + me._category_scroller__horScrollFg.style.width = me._category_scroller.ggScrollWidth + 'px'; + me._category_scroller.ggScrollPosX = me._category_scroller.ggScrollPosXPercent * me._category_scroller.ggAvailableWidth; + me._category_scroller.ggScrollPosX = Math.min(me._category_scroller.ggScrollPosX, me._category_scroller__horScrollBg.offsetWidth - me._category_scroller__horScrollFg.offsetWidth); + me._category_scroller__horScrollFg.style.left = me._category_scroller.ggScrollPosX + 'px'; + if (me._category_scroller.ggHPercentVisible < 1.0) { + let percentScrolled = me._category_scroller.ggScrollPosX / (me._category_scroller__horScrollBg.offsetWidth - me._category_scroller__horScrollFg.offsetWidth); + me._category_scroller__content.style.left = -(Math.round((me._category_scroller.ggContentWidth * (1.0 - me._category_scroller.ggHPercentVisible)) * percentScrolled)) + this.ggContentLeftOffset + 'px'; + } + } else { + me._category_scroller.ggAvailableHeight = me._category_scroller.clientHeight; + me._category_scroller.ggScrollPosX = 0; + me._category_scroller.ggScrollPosXPercent = 0.0; + me._category_scroller__content.style.left = this.ggContentLeftOffset + 'px'; + } + if(me._category_scroller.ggVertScrollVisible) { + me._category_scroller.ggAvailableWidth = me._category_scroller.clientWidth - 15; + if (me._category_scroller.ggHorScrollVisible) { + me._category_scroller.ggAvailableHeight = me._category_scroller.clientHeight - 15; + me._category_scroller.ggAvailableHeightWithScale = me._category_scroller.getBoundingClientRect().height - me._category_scroller__vertScrollBg.getBoundingClientRect().width; + me._category_scroller__cornerBg.style.visibility = 'inherit'; + } else { + me._category_scroller.ggAvailableHeight = me._category_scroller.clientHeight; + me._category_scroller.ggAvailableHeightWithScale = me._category_scroller.getBoundingClientRect().height; + me._category_scroller__cornerBg.style.visibility = 'hidden'; + } + me._category_scroller__vertScrollBg.style.height = me._category_scroller.ggAvailableHeight + 'px'; + me._category_scroller.ggVPercentVisible = contentHeight != 0 ? me._category_scroller.ggAvailableHeightWithScale / contentHeight : 0.0; + if (me._category_scroller.ggVPercentVisible > 1.0) me._category_scroller.ggVPercentVisible = 1.0; + me._category_scroller.ggScrollHeight = Math.round(me._category_scroller__vertScrollBg.offsetHeight * me._category_scroller.ggVPercentVisible); + me._category_scroller__vertScrollFg.style.height = me._category_scroller.ggScrollHeight + 'px'; + me._category_scroller.ggScrollPosY = me._category_scroller.ggScrollPosYPercent * me._category_scroller.ggAvailableHeight; + me._category_scroller.ggScrollPosY = Math.min(me._category_scroller.ggScrollPosY, me._category_scroller__vertScrollBg.offsetHeight - me._category_scroller__vertScrollFg.offsetHeight); + me._category_scroller__vertScrollFg.style.top = me._category_scroller.ggScrollPosY + 'px'; + if (me._category_scroller.ggVPercentVisible < 1.0) { + let percentScrolled = me._category_scroller.ggScrollPosY / (me._category_scroller__vertScrollBg.offsetHeight - me._category_scroller__vertScrollFg.offsetHeight); + me._category_scroller__content.style.top = -(Math.round((me._category_scroller.ggContentHeight * (1.0 - me._category_scroller.ggVPercentVisible)) * percentScrolled)) + me._category_scroller.ggContentTopOffset + 'px'; + } + } else { + me._category_scroller.ggAvailableWidth = me._category_scroller.clientWidth; + me._category_scroller.ggScrollPosY = 0; + me._category_scroller.ggScrollPosYPercent = 0.0; + me._category_scroller__content.style.top = this.ggContentTopOffset + 'px'; + me._category_scroller__cornerBg.style.visibility = 'hidden'; + } + if(horScrollWasVisible != me._category_scroller.ggHorScrollVisible || vertScrollWasVisible != me._category_scroller.ggVertScrollVisible) { + me.updateSize(me._category_scroller); + me._category_scroller.ggUpdatePosition(); + } + } + } + el=me._category_cloner=document.createElement('div'); + el.ggNumRepeat = 1; + el.ggNumRows = 0; + el.ggNumCols = 0; + el.ggWidth = 140; + el.ggHeight = 37; + el.ggUpdating = false; + el.ggFilter = []; + el.ggInstances = []; + el.ggUpdate = function(filter) { + if(me._category_cloner.ggUpdating == true) return; + me._category_cloner.ggUpdating = true; + var el=me._category_cloner; + var curNumCols = 0; + curNumCols = me._category_cloner.ggNumRepeat; + if (curNumCols < 1) curNumCols = 1; + if (typeof filter=='object') { + el.ggFilter = filter; + } else { + filter = el.ggFilter; + }; + if (me.ggTag) filter.push(me.ggTag); + filter=filter.sort(); + if ((el.ggNumCols == curNumCols) && (el.ggInstances.length > 0) && (filter.length === el.ggCurrentFilter.length) && (filter.every(function(value, index) { return value === el.ggCurrentFilter[index] }) )) { + me._category_cloner.ggUpdating = false; + return; + } else { + el.ggNumRows = 1; + el.ggNumCols = curNumCols; + } + el.ggCurrentFilter = filter; + el.ggInstances = []; + if (el.hasChildNodes() == true) { + while (el.firstChild) { + el.removeChild(el.firstChild); + } + } + var tourNodes = player.getNodeIds(); + var row = 0; + var column = 0; + var currentIndex = 0; + var firstNode; + for (var i=0; i < el.ggTagTable.length; i++) { + var cItem = el.ggTagTable[i]; + firstNode = ''; + cItem.nodecount = 0; + for (var j=0; j < tourNodes.length; j++) { + var nodeData = player.getNodeUserdata(tourNodes[j]); + if ((nodeData['tags'].indexOf(cItem.tag) != -1) || (cItem.tag=='')) { + var passed = true; + if (filter.length > 0) { + for (var k=0; k < filter.length; k++) { + if (nodeData['tags'].indexOf(filter[k]) == -1) passed = false; + } + } + if (passed) { + cItem.nodecount++; + if (firstNode == '') firstNode = tourNodes[j]; + } + } + } + cItem.firstnode=firstNode; + if (cItem.nodecount == 0) continue; + var nodeId = {}; + nodeId['tag'] = cItem.tag; + nodeId['title'] = cItem.title; + nodeId['nodecount'] = cItem.nodecount; + nodeId['firstnode'] = cItem.firstnode; + var parameter={}; + parameter.top=(row * me._category_cloner.ggHeight) + 'px'; + parameter.left=(column * me._category_cloner.ggWidth) + 'px'; + parameter.width=me._category_cloner.ggWidth + 'px'; + parameter.height=me._category_cloner.ggHeight + 'px'; + parameter.index=currentIndex; + var inst = new SkinCloner_category_cloner_Class(nodeId, me, el, parameter); + currentIndex++; + el.ggInstances.push(inst); + el.appendChild(inst.__div); + inst.__div.ggObj=inst; + skin.updateSize(inst.__div); + column++; + if (column >= el.ggNumCols) { + column = 0; + row++; + el.ggNumRows++; + } + } + me._category_cloner.ggUpdating = false; + player.triggerEvent('clonerchanged'); + if (me._category_cloner.parentNode.classList.contains('ggskin_subelement') && me._category_cloner.parentNode.parentNode.classList.contains('ggskin_scrollarea')) me._category_cloner.parentNode.parentNode.ggUpdatePosition(); } - me._iconespadro.appendChild(me._nd_image_contato); - el=me._nd_image_mapa=document.createElement('div'); - els=me._nd_image_mapa__img=document.createElement('img'); - els.className='ggskin ggskin_nd_image_mapa'; - hs=basePath + 'images/nd_image_mapa.png'; - els.setAttribute('src',hs); - els.ggNormalSrc=hs; - els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); - els.className='ggskin ggskin_image'; - els['ondragstart']=function() { return false; }; - player.checkLoaded.push(els); - el.appendChild(els); - el.ggSubElement = els; - el.ggId="nd_image_mapa"; + el.ggFilter = []; + el.ggTagTable = [ + {tag:"",title:"All"}, + ]; + el.ggId="category_cloner"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; el.ggVisible=true; - el.className="ggskin ggskin_image "; - el.ggType='image'; + el.className="ggskin ggskin_cloner "; + el.ggType='cloner'; hs =''; - hs+='height : 40px;'; + hs+='height : 37px;'; hs+='left : 10px;'; + hs+='overflow : visible;'; hs+='position : absolute;'; hs+='top : 0px;'; hs+='visibility : inherit;'; - hs+='width : 45px;'; - hs+='pointer-events:auto;'; + hs+='width : 140px;'; + hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style[domTransform + 'Origin']='50% 50%'; - me._nd_image_mapa.ggIsActive=function() { + me._category_cloner.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } @@ -6688,103 +6739,150 @@ function pano2vrSkin(player,base) { } return player.getCurrentNode(); } - me._nd_image_mapa.onclick=function (e) { - player.openUrl("https:\/\/www.google.com\/maps\/place\/Parque+de+los+Ni%C3%B1os\/@-34.5292308,-58.4585581,15z\/data=!4m2!3m1!1s0x0:0xb0570982b87e7524?sa=X&ved=2ahUKEwi529u4u46AAxWFgpUCHfOVCGoQ_BJ6BAhUEAA&ved=2ahUKEwi529u4u46AAxWFgpUCHfOVCGoQ_BJ6BAhlEAg",""); + me._category_cloner.ggUpdateConditionNodeChange=function () { + var cnode=player.getCurrentNode(); + for(var i=0; i0||!me._menu_open.style.opacity)?'inherit':'hidden'; + me._menu_open.ggVisible=true; + } + else { + me._menu_open.style.visibility="hidden"; + me._menu_open.ggVisible=false; + } + } } - me._iconespadro.appendChild(me._nd_image_sitie); - el=me._nd_image_instagram=document.createElement('div'); - els=me._nd_image_instagram__img=document.createElement('img'); - els.className='ggskin ggskin_nd_image_instagram'; - hs=basePath + 'images/nd_image_instagram.png'; - els.setAttribute('src',hs); - els.ggNormalSrc=hs; - els.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'); - els.className='ggskin ggskin_image'; - els['ondragstart']=function() { return false; }; - player.checkLoaded.push(els); - el.appendChild(els); - el.ggSubElement = els; - el.ggId="nd_image_instagram"; - el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; - el.ggVisible=true; - el.className="ggskin ggskin_image "; - el.ggType='image'; - hs =''; - hs+='height : 38px;'; - hs+='left : 180px;'; - hs+='position : absolute;'; - hs+='top : 2px;'; - hs+='visibility : inherit;'; - hs+='width : 38px;'; - hs+='pointer-events:auto;'; - el.setAttribute('style',hs); - el.style[domTransform + 'Origin']='50% 50%'; - me._nd_image_instagram.ggIsActive=function() { - if ((this.parentNode) && (this.parentNode.ggIsActive)) { - return this.parentNode.ggIsActive(); + me._menu_open.logicBlock_alpha = function() { + var newLogicStateAlpha; + if ( + ((me.elementMouseOver['menu_open'] == true)) + ) + { + newLogicStateAlpha = 0; + } + else if ( + ((player.getVariableValue('category_visible') == false)) + ) + { + newLogicStateAlpha = 1; + } + else { + newLogicStateAlpha = -1; + } + if (me._menu_open.ggCurrentLogicStateAlpha != newLogicStateAlpha) { + me._menu_open.ggCurrentLogicStateAlpha = newLogicStateAlpha; + me._menu_open.style[domTransition]='opacity 500ms ease 0ms'; + if (me._menu_open.ggCurrentLogicStateAlpha == 0) { + me._menu_open.style.visibility=me._menu_open.ggVisible?'inherit':'hidden'; + me._menu_open.style.opacity=1; + } + else if (me._menu_open.ggCurrentLogicStateAlpha == 1) { + me._menu_open.style.visibility=me._menu_open.ggVisible?'inherit':'hidden'; + me._menu_open.style.opacity=0.6; + } + else { + me._menu_open.style.visibility=me._menu_open.ggVisible?'inherit':'hidden'; + me._menu_open.style.opacity=1; + } } - return false; } - el.ggElementNodeId=function() { - if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { - return this.parentNode.ggElementNodeId(); + me._menu_open.onclick=function (e) { + if ( + ( + ((player.getVariableValue('node_visible') == false)) + ) + ) { + player.setVariableValue('category_visible', !player.getVariableValue('category_visible')); } - return player.getCurrentNode(); + player.setVariableValue('node_visible', false); } - me._nd_image_instagram.onclick=function (e) { - player.openUrl("https:\/\/www.instagram.com\/p\/Ci-2nAqrt4A\/",""); + me._menu_open.onmouseover=function (e) { + me.elementMouseOver['menu_open']=true; + me._menu_open.logicBlock_alpha(); } - me._nd_image_instagram.ggUpdatePosition=function (useTransition) { + me._menu_open.onmouseout=function (e) { + me.elementMouseOver['menu_open']=false; + me._menu_open.logicBlock_alpha(); } - me._iconespadro.appendChild(me._nd_image_instagram); - me.divSkin.appendChild(me._iconespadro); + me._menu_open.ontouchend=function (e) { + me.elementMouseOver['menu_open']=false; + me._menu_open.logicBlock_alpha(); + } + me._menu_open.ggUpdatePosition=function (useTransition) { + } + me.divSkin.appendChild(me._menu_open); el=me._button_mute=document.createElement('div'); el.ggId="button_mute"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; @@ -11081,6 +11179,7 @@ function pano2vrSkin(player,base) { me._opo_3.logicBlock_scaling(); me._opo_2.logicBlock_scaling(); me._opo_1.logicBlock_scaling(); + me._icones.logicBlock_position(); me._informationbsico.logicBlock_scaling(); me._informationpadro.logicBlock_scaling(); me._informationpremium.logicBlock_scaling(); @@ -11102,18 +11201,11 @@ function pano2vrSkin(player,base) { me._informationbsico.logicBlock_visible(); me._informationpadro.logicBlock_visible(); me._informationpremium.logicBlock_visible(); - me._video_popup_close_file.logicBlock_visible(); me._video_screentint_file.logicBlock_visible(); me._video_popup_file.logicBlock_visible(); me._popup_video_file.logicBlock_visible(); me._video_popup_controls_file.logicBlock_visible(); - me._menu_background.logicBlock_visible(); - me._menu_background.logicBlock_alpha(); - me._node_scroller.logicBlock_alpha(); - me._category_scroller.logicBlock_alpha(); - me._menu_open.logicBlock_position(); - me._menu_open.logicBlock_visible(); - me._menu_open.logicBlock_alpha(); + me._video_popup_close_file.logicBlock_visible(); me._screentint_image.logicBlock_visible(); me._image_popup.logicBlock_visible(); me._popup_image.logicBlock_visible(); @@ -11124,22 +11216,32 @@ function pano2vrSkin(player,base) { me._information.logicBlock_visible(); me._instrues_de_uso.logicBlock_visible(); me._iconespadro.logicBlock_visible(); + me._nd_image_contato.logicBlock_position(); + me._nd_image_mapa.logicBlock_position(); + me._nd_image_sitie.logicBlock_position(); + me._nd_image_instagram.logicBlock_position(); + me._menu_background.logicBlock_visible(); + me._menu_background.logicBlock_alpha(); + me._node_scroller.logicBlock_alpha(); + me._category_scroller.logicBlock_alpha(); + me._menu_open.logicBlock_visible(); + me._menu_open.logicBlock_alpha(); me._unmute.logicBlock_visible(); me._mute.logicBlock_visible(); - player.addListener('sizechanged', function(args) { me._image_2.logicBlock_size();me._opo_3.logicBlock_scaling();me._opo_2.logicBlock_scaling();me._opo_1.logicBlock_scaling();me._informationbsico.logicBlock_scaling();me._informationpadro.logicBlock_scaling();me._informationpremium.logicBlock_scaling();me._instrues_de_uso.logicBlock_position(); }); + player.addListener('sizechanged', function(args) { me._image_2.logicBlock_size();me._opo_3.logicBlock_scaling();me._opo_2.logicBlock_scaling();me._opo_1.logicBlock_scaling();me._icones.logicBlock_position();me._informationbsico.logicBlock_scaling();me._informationpadro.logicBlock_scaling();me._informationpremium.logicBlock_scaling();me._instrues_de_uso.logicBlock_position(); }); player.addListener('fullscreenenter', function(args) { me._button_image_normalscreen.logicBlock_visible();me._button_image_fullscreen.logicBlock_visible();me._tt_fullscreen.logicBlock_text(); }); player.addListener('fullscreenexit', function(args) { me._button_image_normalscreen.logicBlock_visible();me._button_image_fullscreen.logicBlock_visible();me._tt_fullscreen.logicBlock_text(); }); - player.addListener('changenode', function(args) { me._rectangle_1.logicBlock_visible();me._screentint_info0.logicBlock_visible();me._portal.logicBlock_visible();me._image_2.logicBlock_visible();me._opo_3.logicBlock_visible();me._opo_3.logicBlock_alpha();me._opo_2.logicBlock_visible();me._opo_2.logicBlock_alpha();me._opo_1.logicBlock_visible();me._opo_1.logicBlock_alpha();me._icones.logicBlock_visible();me._informationbsico.logicBlock_visible();me._informationpadro.logicBlock_visible();me._informationpremium.logicBlock_visible();me._video_popup_close_file.logicBlock_visible();me._video_screentint_file.logicBlock_visible();me._video_popup_file.logicBlock_visible();me._popup_video_file.logicBlock_visible();me._video_popup_controls_file.logicBlock_visible();me._menu_background.logicBlock_visible();me._menu_background.logicBlock_alpha();me._node_scroller.logicBlock_alpha();me._category_scroller.logicBlock_alpha();me._menu_open.logicBlock_position();me._menu_open.logicBlock_visible();me._menu_open.logicBlock_alpha();me._screentint_image.logicBlock_visible();me._image_popup.logicBlock_visible();me._popup_image.logicBlock_visible();me._image_popup_close.logicBlock_visible();me._inicio.logicBlock_visible();me._inicioflecha0.logicBlock_visible();me._screentint_info.logicBlock_visible();me._information.logicBlock_visible();me._instrues_de_uso.logicBlock_visible();me._iconespadro.logicBlock_visible();me._unmute.logicBlock_visible();me._mute.logicBlock_visible();me._button_image_normalscreen.logicBlock_visible();me._button_image_fullscreen.logicBlock_visible(); }); + player.addListener('changenode', function(args) { me._rectangle_1.logicBlock_visible();me._screentint_info0.logicBlock_visible();me._portal.logicBlock_visible();me._image_2.logicBlock_visible();me._opo_3.logicBlock_visible();me._opo_3.logicBlock_alpha();me._opo_2.logicBlock_visible();me._opo_2.logicBlock_alpha();me._opo_1.logicBlock_visible();me._opo_1.logicBlock_alpha();me._icones.logicBlock_visible();me._informationbsico.logicBlock_visible();me._informationpadro.logicBlock_visible();me._informationpremium.logicBlock_visible();me._video_screentint_file.logicBlock_visible();me._video_popup_file.logicBlock_visible();me._popup_video_file.logicBlock_visible();me._video_popup_controls_file.logicBlock_visible();me._video_popup_close_file.logicBlock_visible();me._screentint_image.logicBlock_visible();me._image_popup.logicBlock_visible();me._popup_image.logicBlock_visible();me._image_popup_close.logicBlock_visible();me._inicio.logicBlock_visible();me._inicioflecha0.logicBlock_visible();me._screentint_info.logicBlock_visible();me._information.logicBlock_visible();me._instrues_de_uso.logicBlock_visible();me._iconespadro.logicBlock_visible();me._nd_image_contato.logicBlock_position();me._nd_image_mapa.logicBlock_position();me._nd_image_sitie.logicBlock_position();me._nd_image_instagram.logicBlock_position();me._menu_background.logicBlock_visible();me._menu_background.logicBlock_alpha();me._node_scroller.logicBlock_alpha();me._category_scroller.logicBlock_alpha();me._menu_open.logicBlock_visible();me._menu_open.logicBlock_alpha();me._unmute.logicBlock_visible();me._mute.logicBlock_visible();me._button_image_normalscreen.logicBlock_visible();me._button_image_fullscreen.logicBlock_visible(); }); player.addListener('varchanged_BASICO', function(args) { me._screentint_info0.logicBlock_visible();me._image_2.logicBlock_visible();me._informationbsico.logicBlock_visible(); }); player.addListener('varchanged_PADRAO', function(args) { me._screentint_info0.logicBlock_visible();me._image_2.logicBlock_visible();me._informationpadro.logicBlock_visible(); }); player.addListener('varchanged_PREMIUM', function(args) { me._screentint_info0.logicBlock_visible();me._image_2.logicBlock_visible();me._informationpremium.logicBlock_visible(); }); - player.addListener('varchanged_vis_video_file', function(args) { me._video_popup_close_file.logicBlock_visible();me._video_screentint_file.logicBlock_visible();me._video_popup_file.logicBlock_visible();me._popup_video_file.logicBlock_visible();me._video_popup_controls_file.logicBlock_visible(); }); player.addListener('varchanged_Opcao2', function(args) { me._iconespadro.logicBlock_visible(); }); - player.addListener('varchanged_Menu', function(args) { me._menu_background.logicBlock_visible();me._menu_open.logicBlock_visible();me._iconespadro.logicBlock_visible(); }); - player.addListener('varchanged_category_visible', function(args) { me._menu_background.logicBlock_alpha();me._node_scroller.logicBlock_alpha();me._category_scroller.logicBlock_alpha();me._menu_open.logicBlock_position();me._menu_open.logicBlock_alpha(); }); - player.addListener('varchanged_Node1', function(args) { me._rectangle_1.logicBlock_visible();me._portal.logicBlock_visible();me._image_2.logicBlock_visible();me._opo_3.logicBlock_visible();me._opo_2.logicBlock_visible();me._opo_1.logicBlock_visible();me._icones.logicBlock_visible();me._menu_background.logicBlock_visible();me._menu_open.logicBlock_visible();me._inicio.logicBlock_visible();me._inicioflecha0.logicBlock_visible();me._instrues_de_uso.logicBlock_visible();me._iconespadro.logicBlock_visible();me._unmute.logicBlock_visible();me._mute.logicBlock_visible();me._button_image_normalscreen.logicBlock_visible();me._button_image_fullscreen.logicBlock_visible(); }); + player.addListener('varchanged_Menu', function(args) { me._iconespadro.logicBlock_visible();me._nd_image_contato.logicBlock_position();me._nd_image_mapa.logicBlock_position();me._nd_image_sitie.logicBlock_position();me._nd_image_instagram.logicBlock_position();me._menu_background.logicBlock_visible();me._menu_open.logicBlock_visible(); }); + player.addListener('varchanged_vis_video_file', function(args) { me._video_screentint_file.logicBlock_visible();me._video_popup_file.logicBlock_visible();me._popup_video_file.logicBlock_visible();me._video_popup_controls_file.logicBlock_visible();me._video_popup_close_file.logicBlock_visible(); }); player.addListener('varchanged_vis_image_popup', function(args) { me._screentint_image.logicBlock_visible();me._image_popup.logicBlock_visible();me._popup_image.logicBlock_visible();me._image_popup_close.logicBlock_visible(); }); player.addListener('varchanged_vis_info_popup_1', function(args) { me._screentint_info.logicBlock_visible();me._information.logicBlock_visible(); }); + player.addListener('varchanged_Node1', function(args) { me._rectangle_1.logicBlock_visible();me._portal.logicBlock_visible();me._image_2.logicBlock_visible();me._opo_3.logicBlock_visible();me._opo_2.logicBlock_visible();me._opo_1.logicBlock_visible();me._icones.logicBlock_visible();me._inicio.logicBlock_visible();me._inicioflecha0.logicBlock_visible();me._instrues_de_uso.logicBlock_visible();me._iconespadro.logicBlock_visible();me._menu_background.logicBlock_visible();me._menu_open.logicBlock_visible();me._unmute.logicBlock_visible();me._mute.logicBlock_visible();me._button_image_normalscreen.logicBlock_visible();me._button_image_fullscreen.logicBlock_visible(); }); + player.addListener('varchanged_category_visible', function(args) { me._menu_background.logicBlock_alpha();me._node_scroller.logicBlock_alpha();me._category_scroller.logicBlock_alpha();me._menu_open.logicBlock_alpha(); }); player.addListener('varchanged_Alpha1', function(args) { me._opo_3.logicBlock_alpha();me._opo_2.logicBlock_alpha(); }); player.addListener('varchanged_Alpha2', function(args) { me._opo_3.logicBlock_alpha();me._opo_1.logicBlock_alpha(); }); player.addListener('varchanged_Alpha3', function(args) { me._opo_2.logicBlock_alpha();me._opo_1.logicBlock_alpha(); });