// Garden Gnome Software - Skin // Pano2VR 7.0.4/19982 // Filename: MAIN_360ty.ggsk // Generated 2023-06-20T18:23:09 function pano2vrSkin(player,base) { player.addVariable('vis_info_popup', 2, false, { ignoreInState: 0 }); player.addVariable('vis_userdata', 2, false, { ignoreInState: 0 }); player.addVariable('vis_image_popup', 2, false, { ignoreInState: 0 }); player.addVariable('vis_video_popup_file', 2, false, { ignoreInState: 0 }); player.addVariable('vis_video_popup_url', 2, false, { ignoreInState: 0 }); player.addVariable('vis_video_popup_vimeo', 2, false, { ignoreInState: 0 }); player.addVariable('vis_video_popup_youtube', 2, false, { ignoreInState: 0 }); player.addVariable('vis_website', 2, false, { ignoreInState: 0 }); player.addVariable('vis_timer', 2, false, { ignoreInState: 0 }); player.addVariable('opt_url', 2, false, { ignoreInState: 0 }); player.addVariable('vis_website_1', 2, false, { ignoreInState: 0 }); player.addVariable('apr6', 2, false, { ignoreInState: 0 }); player.addVariable('apr7', 2, false, { ignoreInState: 0 }); player.addVariable('apr8', 2, false, { ignoreInState: 0 }); player.addVariable('apr9', 2, false, { ignoreInState: 0 }); player.addVariable('apr10', 2, false, { ignoreInState: 0 }); player.addVariable('apr11', 2, false, { ignoreInState: 0 }); player.addVariable('apr12', 2, false, { ignoreInState: 0 }); player.addVariable('apr13', 2, false, { ignoreInState: 0 }); player.addVariable('blinken_starten', 2, false, { ignoreInState: 0 }); player.addVariable('ht_ani', 2, true, { ignoreInState: 0 }); player.addVariable('UA_ID', 0, "", { ignoreInState: 0 }); player.addVariable('UA_category', 0, "virtual tour", { ignoreInState: 0 }); player.addVariable('vis_map', 2, false, { ignoreInState: 0 }); player.addVariable('vis_map_close_desktop', 2, true, { ignoreInState: 0 }); player.addVariable('vis_map_close_mobile', 2, true, { ignoreInState: 0 }); player.addVariable('UA_ID_1', 0, "", { ignoreInState: 0 }); player.addVariable('UA_category_1', 0, "virtual tour", { ignoreInState: 0 }); player.addVariable('hotspotFarbe', 0, "#ae8b57", { ignoreInState: 0 }); player.addVariable('hotspotFarbe_alpha_prozent', 1, 20, { ignoreInState: 0 }); player.addVariable('smallPanel', 2, false, { ignoreInState: 0 }); player.addVariable('panelFarbe', 0, "#ae8b57", { ignoreInState: 0 }); player.addVariable('panelText', 0, "ZUM PRODUKT", { ignoreInState: 0 }); player.addVariable('wingame', 2, false, { ignoreInState: 0 }); player.addVariable('wingame_found_hotspots', 0, "", { ignoreInState: 0 }); player.addVariable('cloudflare_video_id', 0, "", { ignoreInState: 0 }); player.addVariable('cloudflare_video_title', 0, "Video", { ignoreInState: 0 }); player.addVariable('text_color', 0, "#FFFFFF", { ignoreInState: 0 }); player.addVariable('navbar_headline', 0, "", { ignoreInState: 0 }); player.addVariable('buchungslink', 0, "", { ignoreInState: 0 }); player.addVariable('website', 0, "", { ignoreInState: 0 }); player.addVariable('wetterLink', 0, "", { ignoreInState: 0 }); player.addVariable('nav_headers', 0, "", { ignoreInState: 0 }); player.addVariable('vis_video_youtube', 2, false, { ignoreInState: 0 }); player.addVariable('patch_group_open', 2, false, { ignoreInState: 0 }); player.addVariable('patch_group_label_active', 0, "\xd6ffnen", { ignoreInState: 0 }); player.addVariable('patch_group_label_inactive', 0, "Schlie\xdfen", { ignoreInState: 0 }); player.addVariable('labelImage_link', 0, "", { ignoreInState: 0 , customProperty: { variableType: 0, propertyType: 1, defaultValue: "" } }); player.addVariable('autorotateNodeChange', 2, true, { ignoreInState: 0 }); player.addVariable('autoExpanded', 2, false, { ignoreInState: 0 }); var me=this; var skin=this; var flag=false; var hotspotTemplates={}; var skinKeyPressed = 0; this.player=player; player.setApiVersion(7); this.player.skinObj=this; this.divSkin=player.divSkin; this.ggUserdata=player.userdata; this.lastSize={ w: -1,h: -1 }; var basePath=""; var cssPrefix=""; // auto detect base path if (base=='?') { var scripts = document.getElementsByTagName('script'); for(var i=0;i=0) { var p=src.lastIndexOf('/'); if (p>=0) { basePath=src.substr(0,p+1); } } } } else if (base) { basePath=base; } this.elementMouseDown={}; this.elementMouseOver={}; var i; var hs,el,els,elo,ela,elHorScrollFg,elHorScrollBg,elVertScrollFg,elVertScrollBg,elCornerBg; var prefixes='Webkit,Moz,O,ms,Ms'.split(','); for(var i=0;i0) { var e=stack.pop(); if (e.ggUpdatePosition) { e.ggUpdatePosition(); } if (e.hasChildNodes()) { for(var i=0;i0) { var e=stack.pop(); if (regex) { if (pat.test(e.ggId)) r.push(e); } else { if (e.ggId==id) r.push(e); } if (e.hasChildNodes()) { for(var i=0;i0) { var e=stack.pop(); if (e.ggUpdateText) { e.ggUpdateText(); } if (e.ggUpdateAria) { e.ggUpdateAria(); } if (e.hasChildNodes()) { for(var i=0;i<\/iframe>", params); if (hs!=this.ggText) { this.ggText=hs; this.ggTextDiv.innerHTML=hs; if (this.ggUpdatePosition) this.ggUpdatePosition(); } } me._text_2.ggUpdateText(); el.appendChild(els); me._text_2.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._text_2.ggUpdatePosition=function (useTransition) { } me._cloudflare_container.appendChild(me._text_2); el=me._cloudflare_video=document.createElement('div'); me._cloudflare_video.seekbars = []; me._cloudflare_video.ggInitMedia = function(media) { var notifySeekbars = function() { for (var i = 0; i < me._cloudflare_video.seekbars.length; i++) { var seekbar = me.findElements(me._cloudflare_video.seekbars[i]); if (seekbar.length > 0) seekbar[0].ggConnectToMediaEl(); } } while (me._cloudflare_video.hasChildNodes()) { me._cloudflare_video.removeChild(me._cloudflare_video.lastChild); } if (me._cloudflare_video__vid) { me._cloudflare_video__vid.pause(); } if(media == '') { notifySeekbars(); if (me._cloudflare_video.ggVideoNotLoaded == false && me._cloudflare_video.ggDeactivate && player.isPlaying('cloudflare_video')) { me._cloudflare_video.ggDeactivate(); } me._cloudflare_video.ggVideoNotLoaded = true; var mediaObj = player.getMediaObject('cloudflare_video'); if (mediaObj) { mediaObj.autoplay = false; } return; } me._cloudflare_video.ggVideoNotLoaded = false; me._cloudflare_video__vid=document.createElement('video'); me._cloudflare_video__vid.className='ggskin ggskin_video'; me._cloudflare_video__vid.setAttribute('width', '100%'); me._cloudflare_video__vid.setAttribute('height', '100%'); me._cloudflare_video__vid.setAttribute('controlsList', 'nodownload'); me._cloudflare_video__vid.setAttribute('oncontextmenu', 'return false;'); me._cloudflare_video__vid.setAttribute('autoplay', ''); me._cloudflare_video__vid.setAttribute('controls', ''); me._cloudflare_video__source=document.createElement('source'); me._cloudflare_video__source.setAttribute('src', media); me._cloudflare_video__vid.setAttribute('playsinline', 'playsinline'); me._cloudflare_video__vid.setAttribute('style', ';'); me._cloudflare_video__vid.style.outline = 'none'; me._cloudflare_video__vid.appendChild(me._cloudflare_video__source); me._cloudflare_video.appendChild(me._cloudflare_video__vid); var videoEl = player.registerVideoElement('cloudflare_video', me._cloudflare_video__vid); videoEl.autoplay = true; player.changeVolume('cloudflare_video', 0.0); notifySeekbars(); me._cloudflare_video.ggVideoSource = media; } el.ggId="cloudflare_video"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_video "; el.ggType='video'; hs =''; hs+='height : 100%;'; hs+='left : 0%;'; hs+='position : absolute;'; hs+='top : 6.25%;'; hs+='visibility : hidden;'; hs+='width : 100%;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._cloudflare_video.ggIsActive=function() { if (me._cloudflare_video__vid != null) { return (me._cloudflare_video__vid.paused == false && me._cloudflare_video__vid.ended == false); } else { return false; } } el.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return player.getCurrentNode(); } me._cloudflare_video.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('vis_video_youtube') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._cloudflare_video.ggCurrentLogicStateVisible != newLogicStateVisible) { me._cloudflare_video.ggCurrentLogicStateVisible = newLogicStateVisible; me._cloudflare_video.style.transition=''; if (me._cloudflare_video.ggCurrentLogicStateVisible == 0) { me._cloudflare_video.style.visibility=(Number(me._cloudflare_video.style.opacity)>0||!me._cloudflare_video.style.opacity)?'inherit':'hidden'; if (me._cloudflare_video.ggVideoNotLoaded) { me._cloudflare_video.ggInitMedia(me._cloudflare_video.ggVideoSource); } me._cloudflare_video.ggVisible=true; } else { me._cloudflare_video.style.visibility="hidden"; me._cloudflare_video.ggInitMedia(''); me._cloudflare_video.ggVisible=false; } } } me._cloudflare_video.logicBlock_visible(); me._cloudflare_video.ggUpdatePosition=function (useTransition) { } me._cloudflare_container.appendChild(me._cloudflare_video); el=me._text_4=document.createElement('div'); els=me._text_4__text=document.createElement('div'); el.className='ggskin ggskin_textdiv'; el.ggTextDiv=els; el.ggId="Text 4"; el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_text "; el.ggType='text'; hs =''; hs+='background : rgba(255,255,255,0.588235);'; hs+='border : 1px solid #000000;'; hs+='color : #000000;'; hs+='cursor : default;'; hs+='height : 48px;'; hs+='left : calc(50% - ((100% + 2px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : 0px;'; hs+='visibility : inherit;'; hs+='width : 100%;'; hs+='pointer-events:auto;'; hs+='text-align:\"center\";height:\"auto\";'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; hs =''; hs += 'box-sizing: border-box;'; hs+='cursor: default;'; hs+='width: 100%;'; hs+='height: 100%;'; hs+='text-align: center;'; hs+='white-space: pre;'; hs+='padding: 0px 1px 0px 1px;'; hs+='overflow: hidden;'; hs+='overflow-y: auto;'; els.setAttribute('style',hs); me._text_4.ggUpdateText=function() { var params = []; params.push(player._(String(player.getVariableValue('cloudflare_video_title', me.hotspot ? me.hotspot.id : (player.hotspot ? player.hotspot.id : ''))))); var hs = player._("

%1<\/h1>", params); if (hs!=this.ggText) { this.ggText=hs; this.ggTextDiv.innerHTML=hs; if (this.ggUpdatePosition) this.ggUpdatePosition(); } } me._text_4.ggUpdateText(); player.addListener('timer', function() { me._text_4.ggUpdateText(); }); el.appendChild(els); me._text_4.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._text_4.ggUpdatePosition=function (useTransition) { } el=me._close_video_cf=document.createElement('div'); els=me._close_video_cf__img=document.createElement('img'); els.className='ggskin ggskin_svg'; hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJz8+CjxzdmcgY2xhc3M9IiIgdmVyc2lvbj0iMS4xIiB4PSIwIiB2aWV3Qm94PSIwIDAgNTExLjc2IDUxMS43NiIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB5PSIwIiB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTEyIDUxMiIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbG5zOnN2Z2pzPSJodHRwOi8vc3ZnanMuY29tL3N2Z2pzIj4KIDxyZWN0IHNoYXBlPSJzcXVhcmUiIHRyYW5zZm9ybT0ibWF0cml4KDAuMz'+ 'MsMCwwLDAuMzMsMTcxLjQzOTYwMzI3MTQ4NDM3LDE3MS40Mzk2MDMyNzE0ODQzNykiIGZpbGw9IiNmZmZmZmYiIHdpZHRoPSI1MTEuNzYiIGhlaWdodD0iNTExLjc2Ii8+CiA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgwLjcsMCwwLDAuNyw3Ni43NjQwNzQ3MDcwMzEyNiw3Ni43NjM4MTE0OTI5MTk5MykiPgogIDxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgIDxnPgogICAgPHBhdGggZD0iTTQzNi44OTYsNzQuODY5Yy05OS44NC05OS44MTktMjYyLjIwOC05OS44MTktMzYyLjA0OCwwYy05OS43OTcsOTkuODE5LTk5Ljc5NywyNjIuMjI5LDAsMzYyLjA0OCAgICBjNDkuOTIs'+ 'NDkuODk5LDExNS40NzcsNzQuODM3LDE4MS4wMzUsNzQuODM3czEzMS4wOTMtMjQuOTM5LDE4MS4wMTMtNzQuODM3QzUzNi43MTUsMzM3LjA5OSw1MzYuNzE1LDE3NC42ODgsNDM2Ljg5Niw3NC44Njl6ICAgICBNMzYxLjQ2MSwzMzEuMzE3YzguMzQxLDguMzQxLDguMzQxLDIxLjgyNCwwLDMwLjE2NWMtNC4xNiw0LjE2LTkuNjIxLDYuMjUxLTE1LjA4Myw2LjI1MWMtNS40NjEsMC0xMC45MjMtMi4wOTEtMTUuMDgzLTYuMjUxICAgIGwtNzUuNDEzLTc1LjQzNWwtNzUuMzkyLDc1LjQxM2MtNC4xODEsNC4xNi05LjY0Myw2LjI1MS0xNS4wODMsNi4yNTFjLTUuNDYxLDAtMTAuOTIzLTIuMDkxLTE1Lj'+ 'A4My02LjI1MSAgICBjLTguMzQxLTguMzQxLTguMzQxLTIxLjg0NSwwLTMwLjE2NWw3NS4zOTItNzUuNDEzbC03NS40MTMtNzUuNDEzYy04LjM0MS04LjM0MS04LjM0MS0yMS44NDUsMC0zMC4xNjUgICAgYzguMzItOC4zNDEsMjEuODI0LTguMzQxLDMwLjE2NSwwbDc1LjQxMyw3NS40MTNsNzUuNDEzLTc1LjQxM2M4LjM0MS04LjM0MSwyMS44MjQtOC4zNDEsMzAuMTY1LDAgICAgYzguMzQxLDguMzIsOC4zNDEsMjEuODI0LDAsMzAuMTY1bC03NS40MTMsNzUuNDEzTDM2MS40NjEsMzMxLjMxN3oiIGZpbGw9IiNlNjQyMTUiIGRhdGEtb3JpZ2luYWw9IiMwMDAwMDAiIHN0eWxlPSIiIGNsYXNzPSIi'+ 'Lz4KICAgPC9nPgogIDwvZz4KICA8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciLz4KICA8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciLz4KICA8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciLz4KICA8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciLz4KICA8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciLz4KICA8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciLz4KICA8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciLz4KICA8ZyB4bWxucz0iaHR0cDovL3d3dy53My'+ '5vcmcvMjAwMC9zdmciLz4KICA8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciLz4KICA8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciLz4KICA8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciLz4KICA8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciLz4KICA8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciLz4KICA8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciLz4KICA8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciLz4KIDwvZz4KPC9zdmc+Cg=='; me._close_video_cf__img.setAttribute('src',hs); hs =''; hs += 'position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;color:\"#f40000\";'; els.setAttribute('style', hs); els['ondragstart']=function() { return false; }; el.appendChild(els); el.ggSubElement = els; el.ggId="Close Video_cf"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_svg "; el.ggType='svg'; hs =''; hs+='cursor : pointer;'; hs+='height : 48px;'; hs+='position : absolute;'; hs+='right : -25px;'; hs+='top : -25px;'; hs+='visibility : inherit;'; hs+='width : 48px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._close_video_cf.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._close_video_cf.onclick=function (e) { me._cloudflare_container.style.transition='none'; me._cloudflare_container.style.visibility='hidden'; me._cloudflare_container.ggVisible=false; player.setVariableValue('cloudflare_video_id', ""); } me._close_video_cf.ggUpdatePosition=function (useTransition) { } me._text_4.appendChild(me._close_video_cf); me._cloudflare_container.appendChild(me._text_4); me.divSkin.appendChild(me._cloudflare_container); el=me._blinken=document.createElement('div'); el.ggTimestamp=skin.ggCurrentTime; el.ggLastIsActive=true; el.ggTimeout=1000; el.ggId="blinken"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_timer "; el.ggType='timer'; hs =''; hs+='height : 20px;'; hs+='left : 54px;'; hs+='position : absolute;'; hs+='top : 37px;'; hs+='visibility : inherit;'; hs+='width : 100px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._blinken.ggIsActive=function() { return (me._blinken.ggTimestamp==0 ? false : (Math.floor((skin.ggCurrentTime - me._blinken.ggTimestamp) / me._blinken.ggTimeout) % 2 == 0)); } el.ggElementNodeId=function() { return player.getCurrentNode(); } me._blinken.ggActivate=function () { player.setVariableValue('ht_ani', !player.getVariableValue('ht_ani')); } me._blinken.ggUpdatePosition=function (useTransition) { } me.divSkin.appendChild(me._blinken); el=me._blinken_starten=document.createElement('div'); el.ggTimestamp=skin.ggCurrentTime; el.ggLastIsActive=true; el.ggTimeout=3000; el.ggId="blinken_starten"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_timer "; el.ggType='timer'; hs =''; hs+='height : 20px;'; hs+='left : 432px;'; hs+='position : absolute;'; hs+='top : 141px;'; hs+='visibility : inherit;'; hs+='width : 100px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._blinken_starten.ggIsActive=function() { return (me._blinken_starten.ggTimestamp==0 ? false : (Math.floor((skin.ggCurrentTime - me._blinken_starten.ggTimestamp) / me._blinken_starten.ggTimeout) % 2 == 0)); } el.ggElementNodeId=function() { return player.getCurrentNode(); } me._blinken_starten.ggActivate=function () { player.setVariableValue('blinken_starten', true); } me._blinken_starten.ggUpdatePosition=function (useTransition) { } me.divSkin.appendChild(me._blinken_starten); el=me._youtube_container=document.createElement('div'); el.ggId="YouTube Container"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_container "; el.ggType='container'; hs =''; hs+='height : 100%;'; hs+='left : calc(50% - ((100% + 0px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((100% + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 100%;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._youtube_container.ggIsActive=function() { return false; } el.ggElementNodeId=function() { return player.getCurrentNode(); } me._youtube_container.ggUpdatePosition=function (useTransition) { } el=me._video_popup_youtube=document.createElement('div'); el.ggId="video_popup_youtube"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_container "; el.ggType='container'; hs =''; hs+='height : 80%;'; hs+='left : 10%;'; hs+='position : absolute;'; hs+='top : 10%;'; hs+='visibility : hidden;'; hs+='width : 80%;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._video_popup_youtube.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._video_popup_youtube.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('vis_video_youtube') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._video_popup_youtube.ggCurrentLogicStateVisible != newLogicStateVisible) { me._video_popup_youtube.ggCurrentLogicStateVisible = newLogicStateVisible; me._video_popup_youtube.style.transition=''; if (me._video_popup_youtube.ggCurrentLogicStateVisible == 0) { me._video_popup_youtube.style.visibility=(Number(me._video_popup_youtube.style.opacity)>0||!me._video_popup_youtube.style.opacity)?'inherit':'hidden'; me._video_popup_youtube.ggVisible=true; } else { me._video_popup_youtube.style.visibility="hidden"; me._video_popup_youtube.ggVisible=false; } } } me._video_popup_youtube.logicBlock_visible(); me._video_popup_youtube.ggUpdatePosition=function (useTransition) { } el=me._loading_video_youtube=document.createElement('div'); els=me._loading_video_youtube__img=document.createElement('img'); els.className='ggskin ggskin_svg'; hs='data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IndoaXRlIiB2aWV3Qm94PSIwIDAgMzIgMzIiIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCI+CiA8Y2lyY2xlIGN4PSIxNiIgcj0iMCIgY3k9IjMiPgogIDxhbmltYXRlIHZhbHVlcz0iMDszOzA7MCIga2V5U3BsaW5lcz0iMC4yIDAuMiAwLjQgMC44OzAuMiAwLjIgMC40IDAuODswLjIgMC4yIDAuNCAwLjgiIGF0dHJpYnV0ZU5hbWU9InIiIGR1cj0iMXMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBjYWxjTW9kZT0ic3BsaW5lIiBiZWdpbj0iMCIvPgogPC9jaXJjbGU+CiA8Y2lyY2xlIHRyYW5zZm9ybT0icm90YXRlKD'+ 'Q1IDE2IDE2KSIgY3g9IjE2IiByPSIwIiBjeT0iMyI+CiAgPGFuaW1hdGUgdmFsdWVzPSIwOzM7MDswIiBrZXlTcGxpbmVzPSIwLjIgMC4yIDAuNCAwLjg7MC4yIDAuMiAwLjQgMC44OzAuMiAwLjIgMC40IDAuOCIgYXR0cmlidXRlTmFtZT0iciIgZHVyPSIxcyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGNhbGNNb2RlPSJzcGxpbmUiIGJlZ2luPSIwLjEyNXMiLz4KIDwvY2lyY2xlPgogPGNpcmNsZSB0cmFuc2Zvcm09InJvdGF0ZSg5MCAxNiAxNikiIGN4PSIxNiIgcj0iMCIgY3k9IjMiPgogIDxhbmltYXRlIHZhbHVlcz0iMDszOzA7MCIga2V5U3BsaW5lcz0iMC4yIDAuMiAwLjQgMC44OzAu'+ 'MiAwLjIgMC40IDAuODswLjIgMC4yIDAuNCAwLjgiIGF0dHJpYnV0ZU5hbWU9InIiIGR1cj0iMXMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBjYWxjTW9kZT0ic3BsaW5lIiBiZWdpbj0iMC4yNXMiLz4KIDwvY2lyY2xlPgogPGNpcmNsZSB0cmFuc2Zvcm09InJvdGF0ZSgxMzUgMTYgMTYpIiBjeD0iMTYiIHI9IjAiIGN5PSIzIj4KICA8YW5pbWF0ZSB2YWx1ZXM9IjA7MzswOzAiIGtleVNwbGluZXM9IjAuMiAwLjIgMC40IDAuODswLjIgMC4yIDAuNCAwLjg7MC4yIDAuMiAwLjQgMC44IiBhdHRyaWJ1dGVOYW1lPSJyIiBkdXI9IjFzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgY2FsY01vZG'+ 'U9InNwbGluZSIgYmVnaW49IjAuMzc1cyIvPgogPC9jaXJjbGU+CiA8Y2lyY2xlIHRyYW5zZm9ybT0icm90YXRlKDE4MCAxNiAxNikiIGN4PSIxNiIgcj0iMCIgY3k9IjMiPgogIDxhbmltYXRlIHZhbHVlcz0iMDszOzA7MCIga2V5U3BsaW5lcz0iMC4yIDAuMiAwLjQgMC44OzAuMiAwLjIgMC40IDAuODswLjIgMC4yIDAuNCAwLjgiIGF0dHJpYnV0ZU5hbWU9InIiIGR1cj0iMXMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBjYWxjTW9kZT0ic3BsaW5lIiBiZWdpbj0iMC41cyIvPgogPC9jaXJjbGU+CiA8Y2lyY2xlIHRyYW5zZm9ybT0icm90YXRlKDIyNSAxNiAxNikiIGN4PSIxNiIgcj0iMCIg'+ 'Y3k9IjMiPgogIDxhbmltYXRlIHZhbHVlcz0iMDszOzA7MCIga2V5U3BsaW5lcz0iMC4yIDAuMiAwLjQgMC44OzAuMiAwLjIgMC40IDAuODswLjIgMC4yIDAuNCAwLjgiIGF0dHJpYnV0ZU5hbWU9InIiIGR1cj0iMXMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBjYWxjTW9kZT0ic3BsaW5lIiBiZWdpbj0iMC42MjVzIi8+CiA8L2NpcmNsZT4KIDxjaXJjbGUgdHJhbnNmb3JtPSJyb3RhdGUoMjcwIDE2IDE2KSIgY3g9IjE2IiByPSIwIiBjeT0iMyI+CiAgPGFuaW1hdGUgdmFsdWVzPSIwOzM7MDswIiBrZXlTcGxpbmVzPSIwLjIgMC4yIDAuNCAwLjg7MC4yIDAuMiAwLjQgMC44OzAuMiAwLjIgMC'+ '40IDAuOCIgYXR0cmlidXRlTmFtZT0iciIgZHVyPSIxcyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGNhbGNNb2RlPSJzcGxpbmUiIGJlZ2luPSIwLjc1cyIvPgogPC9jaXJjbGU+CiA8Y2lyY2xlIHRyYW5zZm9ybT0icm90YXRlKDMxNSAxNiAxNikiIGN4PSIxNiIgcj0iMCIgY3k9IjMiPgogIDxhbmltYXRlIHZhbHVlcz0iMDszOzA7MCIga2V5U3BsaW5lcz0iMC4yIDAuMiAwLjQgMC44OzAuMiAwLjIgMC40IDAuODswLjIgMC4yIDAuNCAwLjgiIGF0dHJpYnV0ZU5hbWU9InIiIGR1cj0iMXMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBjYWxjTW9kZT0ic3BsaW5lIiBiZWdpbj0iMC44NzVz'+ 'Ii8+CiA8L2NpcmNsZT4KIDxjaXJjbGUgdHJhbnNmb3JtPSJyb3RhdGUoMTgwIDE2IDE2KSIgY3g9IjE2IiByPSIwIiBjeT0iMyI+CiAgPGFuaW1hdGUgdmFsdWVzPSIwOzM7MDswIiBrZXlTcGxpbmVzPSIwLjIgMC4yIDAuNCAwLjg7MC4yIDAuMiAwLjQgMC44OzAuMiAwLjIgMC40IDAuOCIgYXR0cmlidXRlTmFtZT0iciIgZHVyPSIxcyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGNhbGNNb2RlPSJzcGxpbmUiIGJlZ2luPSIwLjVzIi8+CiA8L2NpcmNsZT4KPC9zdmc+Cg=='; me._loading_video_youtube__img.setAttribute('src',hs); hs =''; hs += 'position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'; els.setAttribute('style', hs); els['ondragstart']=function() { return false; }; el.appendChild(els); el.ggSubElement = els; el.ggId="loading_video_youtube"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_svg "; el.ggType='svg'; hs =''; hs+='height : 40px;'; hs+='left : calc(50% - ((40px + 0px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((40px + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 40px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._loading_video_youtube.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._loading_video_youtube.ggUpdatePosition=function (useTransition) { } me._video_popup_youtube.appendChild(me._loading_video_youtube); el=me._popup_video_youtube=document.createElement('div'); me._popup_video_youtube.seekbars = []; me._popup_video_youtube.ggYoutubeApiReady = function() { skin.ggYoutubeApiLoaded = true;} me._popup_video_youtube.ggInitMedia = function(media) { var notifySeekbars = function() { for (var i = 0; i < me._popup_video_youtube.seekbars.length; i++) { var seekbar = me.findElements(me._popup_video_youtube.seekbars[i]); if (seekbar.length > 0) seekbar[0].ggConnectToMediaEl(); } } while (me._popup_video_youtube.hasChildNodes()) { me._popup_video_youtube.removeChild(me._popup_video_youtube.lastChild); } if(media == '') { notifySeekbars(); if (me._popup_video_youtube.ggVideoNotLoaded == false && me._popup_video_youtube.ggDeactivate && player.isPlaying('popup_video_youtube')) { me._popup_video_youtube.ggDeactivate(); } me._popup_video_youtube.ggVideoNotLoaded = true; return; } me._popup_video_youtube.ggVideoNotLoaded = false; me._popup_video_youtube__vid=document.createElement('iframe'); me._popup_video_youtube__vid.className='ggskin ggskin_video'; var ggYoutubeMedia = media; var ggTimeParam = ''; if (ggYoutubeMedia.indexOf('&') != -1) { ggTimeParam = 'start' + media.slice(ggYoutubeMedia.indexOf('&') + 2) + '&'; ggYoutubeMedia = ggYoutubeMedia.slice(0, ggYoutubeMedia.indexOf('&')); } var ggVideoParams = '?' + ggTimeParam + 'autoplay=1&controls=1&loop=0&enablejsapi=0&rel=0'; var ggVideoUrl = 'https://www.youtube.com/embed/' + ggYoutubeMedia + ggVideoParams; me._popup_video_youtube__vid.setAttribute('src', ggVideoUrl); me._popup_video_youtube__vid.setAttribute('width', '100%'); me._popup_video_youtube__vid.setAttribute('height', '100%'); me._popup_video_youtube__vid.setAttribute('allow', 'autoplay'); me._popup_video_youtube__vid.setAttribute('allowfullscreen', 'true'); me._popup_video_youtube__vid.setAttribute('style', 'border:none; ; ;'); me._popup_video_youtube.appendChild(me._popup_video_youtube__vid); me._popup_video_youtube.ggVideoSource = media; if (skin.ggYoutubeApiLoaded && skin.ggYoutubeApiLoaded == true) {me._popup_video_youtube.ggYoutubeApiReady();} } el.ggId="popup_video_youtube"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_video "; el.ggType='video'; hs =''; 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.transformOrigin='50% 50%'; me._popup_video_youtube.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._popup_video_youtube.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('vis_video_youtube') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._popup_video_youtube.ggCurrentLogicStateVisible != newLogicStateVisible) { me._popup_video_youtube.ggCurrentLogicStateVisible = newLogicStateVisible; me._popup_video_youtube.style.transition=''; if (me._popup_video_youtube.ggCurrentLogicStateVisible == 0) { me._popup_video_youtube.style.visibility=(Number(me._popup_video_youtube.style.opacity)>0||!me._popup_video_youtube.style.opacity)?'inherit':'hidden'; if (me._popup_video_youtube.ggVideoNotLoaded) { me._popup_video_youtube.ggInitMedia(me._popup_video_youtube.ggVideoSource); } me._popup_video_youtube.ggVisible=true; } else { me._popup_video_youtube.style.visibility="hidden"; me._popup_video_youtube.ggInitMedia(''); me._popup_video_youtube.ggVisible=false; } } } me._popup_video_youtube.logicBlock_visible(); me._popup_video_youtube.ggUpdatePosition=function (useTransition) { } me._video_popup_youtube.appendChild(me._popup_video_youtube); el=me._video_popup_close_youtube=document.createElement('div'); els=me._video_popup_close_youtube__img=document.createElement('img'); els.className='ggskin ggskin_svg'; hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgJy0vL1czQy8vRFREIFNWRyAxLjEvL0VOJyAnaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkJz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE1LjAuMiwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHg9IjBweCIgdmlld0JveD0iMCAwIDMyIDMyIiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcm'+ 'cvMjAwMC9zdmciIHk9IjBweCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMzIgMzIiIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KIDxnIG9wYWNpdHk9IjAuNCI+CiAgPHBhdGggZD0iTTIxLjEzMiwxOS40MzlMMTcuNjkyLDE2bDMuNDQtMy40NGMwLjQ2OC0wLjQ2NywwLjQ2OC0xLjIyNSwwLTEuNjkzICAgYy0wLjQ2Ny0wLjQ2Ny0xLjIyNS0wLjQ2Ny0xLjY5MSwwLjAwMUwxNiwxNC4zMDhsLTMuNDQxLTMuNDQxYy0wLjQ2Ny0wLjQ2Ny0xLjIyNC0wLjQ2Ny0xLjY5MSwwLjAwMSAgIGMtMC40NjcsMC40Njct'+ 'MC40NjcsMS4yMjQsMCwxLjY5TDE0LjMwOSwxNmwtMy40NCwzLjQ0Yy0wLjQ2NywwLjQ2Ny0wLjQ2NywxLjIyNiwwLDEuNjkyYzAuNDY3LDAuNDY3LDEuMjI2LDAuNDY3LDEuNjkyLDAgICBsMy40NC0zLjQ0bDMuNDM5LDMuNDM5YzAuNDY4LDAuNDY4LDEuMjI1LDAuNDY4LDEuNjkxLDAuMDAxQzIxLjU5OSwyMC42NjQsMjEuNiwxOS45MDcsMjEuMTMyLDE5LjQzOXogTTI0LjgzOSw3LjE2MSAgIGMtNC44ODItNC44ODItMTIuNzk2LTQuODgyLTE3LjY3OCwwYy00Ljg4MSw0Ljg4MS00Ljg4MSwxMi43OTUsMCwxNy42NzhjNC44ODEsNC44OCwxMi43OTYsNC44OCwxNy42NzgsMCAgIEMyOS43MiwxOS'+ '45NTYsMjkuNzIsMTIuMDQyLDI0LjgzOSw3LjE2MXogTTE2LDI2LjEwNmMtMi41ODktMC4wMDEtNS4xNy0wLjk4NS03LjE0Ni0yLjk2MVM1Ljg5NSwxOC41OSw1Ljg5NCwxNiAgIGMwLTIuNTkxLDAuOTg0LTUuMTcsMi45Ni03LjE0N0MxMC44Myw2Ljg3OCwxMy40MDksNS44OTQsMTYsNS44OTRjMi41OTEsMC4wMDEsNS4xNywwLjk4NCw3LjE0NywyLjk1OSAgIGMxLjk3NiwxLjk3NywyLjk1Nyw0LjU1NiwyLjk2LDcuMTQ3Yy0wLjAwMSwyLjU5MS0wLjk4NSw1LjE2OS0yLjk2LDcuMTQ4QzIxLjE2OSwyNS4xMjIsMTguNTkxLDI2LjEwNiwxNiwyNi4xMDZ6IiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ry'+ 'b2tlPSIjM0MzQzNDIi8+CiA8L2c+CiA8Zz4KICA8cGF0aCBkPSJNMjEuMTMyLDE5LjQzOUwxNy42OTIsMTZsMy40NC0zLjQ0YzAuNDY4LTAuNDY3LDAuNDY4LTEuMjI1LDAtMS42OTMgICBjLTAuNDY3LTAuNDY3LTEuMjI1LTAuNDY3LTEuNjkxLDAuMDAxTDE2LDE0LjMwOGwtMy40NDEtMy40NDFjLTAuNDY3LTAuNDY3LTEuMjI0LTAuNDY3LTEuNjkxLDAuMDAxICAgYy0wLjQ2NywwLjQ2Ny0wLjQ2NywxLjIyNCwwLDEuNjlMMTQuMzA5LDE2bC0zLjQ0LDMuNDRjLTAuNDY3LDAuNDY3LTAuNDY3LDEuMjI2LDAsMS42OTJjMC40NjcsMC40NjcsMS4yMjYsMC40NjcsMS42OTIsMCAgIGwzLjQ0LTMuND'+ 'RsMy40MzksMy40MzljMC40NjgsMC40NjgsMS4yMjUsMC40NjgsMS42OTEsMC4wMDFDMjEuNTk5LDIwLjY2NCwyMS42LDE5LjkwNywyMS4xMzIsMTkuNDM5eiBNMjQuODM5LDcuMTYxICAgYy00Ljg4Mi00Ljg4Mi0xMi43OTYtNC44ODItMTcuNjc4LDBjLTQuODgxLDQuODgxLTQuODgxLDEyLjc5NSwwLDE3LjY3OGM0Ljg4MSw0Ljg4LDEyLjc5Niw0Ljg4LDE3LjY3OCwwICAgQzI5LjcyLDE5Ljk1NiwyOS43MiwxMi4wNDIsMjQuODM5LDcuMTYxeiBNMTYsMjYuMTA2Yy0yLjU4OS0wLjAwMS01LjE3LTAuOTg1LTcuMTQ2LTIuOTYxUzUuODk1LDE4LjU5LDUuODk0LDE2ICAgYzAtMi41OTEsMC45ODQt'+ 'NS4xNywyLjk2LTcuMTQ3QzEwLjgzLDYuODc4LDEzLjQwOSw1Ljg5NCwxNiw1Ljg5NGMyLjU5MSwwLjAwMSw1LjE3LDAuOTg0LDcuMTQ3LDIuOTU5ICAgYzEuOTc2LDEuOTc3LDIuOTU3LDQuNTU2LDIuOTYsNy4xNDdjLTAuMDAxLDIuNTkxLTAuOTg1LDUuMTY5LTIuOTYsNy4xNDhDMjEuMTY5LDI1LjEyMiwxOC41OTEsMjYuMTA2LDE2LDI2LjEwNnoiIGZpbGw9IiNGRkZGRkYiIHN0cm9rZS13aWR0aD0iMC4yIiBzdHJva2U9IiMwMDAwMDAiLz4KIDwvZz4KPC9zdmc+Cg=='; me._video_popup_close_youtube__img.setAttribute('src',hs); hs =''; hs += 'position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'; els.setAttribute('style', hs); els['ondragstart']=function() { return false; }; el.appendChild(els); el.ggSubElement = els; elo=me._video_popup_close_youtube__imgo=document.createElement('img'); elo.className='ggskin ggskin_svg'; hs='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgJy0vL1czQy8vRFREIFNWRyAxLjEvL0VOJyAnaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkJz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE1LjAuMiwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHg9IjBweCIgdmlld0JveD0iMCAwIDMyIDMyIiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcm'+ 'cvMjAwMC9zdmciIHk9IjBweCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMzIgMzIiIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE2LDE2KSBzY2FsZSgxLjEpIHRyYW5zbGF0ZSgtMTYsLTE2KSIgb3BhY2l0eT0iMC40Ij4KICA8cGF0aCBkPSJNMjEuMTMyLDE5LjQzOUwxNy42OTMsMTZsMy40MzktMy40NGMwLjQ2OC0wLjQ2NywwLjQ2OC0xLjIyNiwwLjAwMS0xLjY5MyAgIGMtMC40NjctMC40NjctMS4yMjUtMC40NjctMS42OTIsMC4wMDFsLTMuNDQsMy40NGwt'+ 'My40NDEtMy40NDFjLTAuNDY4LTAuNDY4LTEuMjI1LTAuNDY3LTEuNjkzLDAgICBjLTAuNDY3LDAuNDY3LTAuNDY3LDEuMjI1LDAsMS42OTJMMTQuMzA5LDE2bC0zLjQ0LDMuNDRjLTAuNDY3LDAuNDY2LTAuNDY3LDEuMjI0LDAsMS42OTFjMC40NjcsMC40NjcsMS4yMjYsMC40NjcsMS42OTIsMC4wMDEgICBsMy40NC0zLjQ0bDMuNDQsMy40MzljMC40NjgsMC40NjgsMS4yMjQsMC40NjcsMS42OTEsMEMyMS41OTgsMjAuNjY0LDIxLjYsMTkuOTA3LDIxLjEzMiwxOS40Mzl6IE0yNC44MzksNy4xNjEgICBjLTQuODgyLTQuODgyLTEyLjc5Ni00Ljg4Mi0xNy42NzgsMGMtNC44ODEsNC44ODEtNC44OD'+ 'EsMTIuNzk2LDAsMTcuNjc4YzQuODgyLDQuODgxLDEyLjc5Niw0Ljg4MSwxNy42NzgsMCAgIEMyOS43MiwxOS45NTcsMjkuNzIxLDEyLjA0MywyNC44MzksNy4xNjF6IE0xNiwyNi4xMDZjLTIuNTksMC01LjE3MS0wLjk4NC03LjE0Ni0yLjk1OUM2Ljg3OCwyMS4xNyw1Ljg5NSwxOC41OTEsNS44OTQsMTYgICBjMC0yLjU5MSwwLjk4My01LjE3LDIuOTU5LTcuMTQ3YzEuOTc3LTEuOTc2LDQuNTU2LTIuOTU5LDcuMTQ4LTIuOTZjMi41OTEsMC4wMDEsNS4xNywwLjk4NCw3LjE0NywyLjk1OSAgIGMxLjk3NSwxLjk3NywyLjk1Nyw0LjU1NiwyLjk1OSw3LjE0N2MtMC4wMDEsMi41OTItMC45ODQsNS4x'+ 'Ny0yLjk2LDcuMTQ4QzIxLjE3LDI1LjEyMywxOC41OTEsMjYuMTA3LDE2LDI2LjEwNnoiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9IiMzQzNDM0MiLz4KIDwvZz4KIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE2LDE2KSBzY2FsZSgxLjEpIHRyYW5zbGF0ZSgtMTYsLTE2KSI+CiAgPHBhdGggZD0iTTIxLjEzMiwxOS40MzlMMTcuNjkzLDE2bDMuNDM5LTMuNDQgICBjMC40NjgtMC40NjcsMC40NjgtMS4yMjYsMC4wMDEtMS42OTNjLTAuNDY3LTAuNDY3LTEuMjI1LTAuNDY3LTEuNjkyLDAuMDAxbC0zLjQ0LDMuNDRsLTMuNDQxLTMuNDQxICAgYy0wLjQ2OC0wLjQ2OC0xLjIyNS0wLjQ2Ny0xLj'+ 'Y5MywwYy0wLjQ2NywwLjQ2Ny0wLjQ2NywxLjIyNSwwLDEuNjkyTDE0LjMwOSwxNmwtMy40NCwzLjQ0Yy0wLjQ2NywwLjQ2Ni0wLjQ2NywxLjIyNCwwLDEuNjkxICAgYzAuNDY3LDAuNDY3LDEuMjI2LDAuNDY3LDEuNjkyLDAuMDAxbDMuNDQtMy40NGwzLjQ0LDMuNDM5YzAuNDY4LDAuNDY4LDEuMjI0LDAuNDY3LDEuNjkxLDAgICBDMjEuNTk4LDIwLjY2NCwyMS42LDE5LjkwNywyMS4xMzIsMTkuNDM5eiBNMjQuODM5LDcuMTYxYy00Ljg4Mi00Ljg4Mi0xMi43OTYtNC44ODItMTcuNjc4LDBjLTQuODgxLDQuODgxLTQuODgxLDEyLjc5NiwwLDE3LjY3OCAgIGM0Ljg4Miw0Ljg4MSwxMi43OTYsNC44'+ 'ODEsMTcuNjc4LDBDMjkuNzIsMTkuOTU3LDI5LjcyMSwxMi4wNDMsMjQuODM5LDcuMTYxeiBNMTYsMjYuMTA2Yy0yLjU5LDAtNS4xNzEtMC45ODQtNy4xNDYtMi45NTkgICBDNi44NzgsMjEuMTcsNS44OTUsMTguNTkxLDUuODk0LDE2YzAtMi41OTEsMC45ODMtNS4xNywyLjk1OS03LjE0N2MxLjk3Ny0xLjk3Niw0LjU1Ni0yLjk1OSw3LjE0OC0yLjk2ICAgYzIuNTkxLDAuMDAxLDUuMTcsMC45ODQsNy4xNDcsMi45NTljMS45NzUsMS45NzcsMi45NTcsNC41NTYsMi45NTksNy4xNDdjLTAuMDAxLDIuNTkyLTAuOTg0LDUuMTctMi45Niw3LjE0OCAgIEMyMS4xNywyNS4xMjMsMTguNTkxLDI2LjEwNy'+ 'wxNiwyNi4xMDZ6IiBmaWxsPSIjRkZGRkZGIiBzdHJva2Utd2lkdGg9IjAuMiIgc3Ryb2tlPSIjMDAwMDAwIi8+CiA8L2c+Cjwvc3ZnPgo='; me._video_popup_close_youtube__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.ggSubElementOver = elo; el.ggId="video_popup_close_youtube"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_svg "; el.ggType='svg'; hs =''; hs+='cursor : pointer;'; hs+='height : 32px;'; hs+='position : absolute;'; hs+='right : -32px;'; hs+='top : -32px;'; hs+='visibility : hidden;'; hs+='width : 32px;'; hs+='pointer-events:auto;'; hs+='color:#f4000;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._video_popup_close_youtube.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._video_popup_close_youtube.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('vis_video_youtube') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._video_popup_close_youtube.ggCurrentLogicStateVisible != newLogicStateVisible) { me._video_popup_close_youtube.ggCurrentLogicStateVisible = newLogicStateVisible; me._video_popup_close_youtube.style.transition=''; if (me._video_popup_close_youtube.ggCurrentLogicStateVisible == 0) { me._video_popup_close_youtube.style.visibility=(Number(me._video_popup_close_youtube.style.opacity)>0||!me._video_popup_close_youtube.style.opacity)?'inherit':'hidden'; me._video_popup_close_youtube.ggVisible=true; } else { me._video_popup_close_youtube.style.visibility="hidden"; me._video_popup_close_youtube.ggVisible=false; } } } me._video_popup_close_youtube.logicBlock_visible(); me._video_popup_close_youtube.onclick=function (e) { player.setVariableValue('vis_video_youtube', false); } me._video_popup_close_youtube.onmouseover=function (e) { me._video_popup_close_youtube__img.style.visibility='hidden'; me._video_popup_close_youtube__imgo.style.visibility='inherit'; me.elementMouseOver['video_popup_close_youtube']=true; } me._video_popup_close_youtube.onmouseout=function (e) { me._video_popup_close_youtube__img.style.visibility='inherit'; me._video_popup_close_youtube__imgo.style.visibility='hidden'; me.elementMouseOver['video_popup_close_youtube']=false; } me._video_popup_close_youtube.ggCurrentLogicStateVisible = -1; me._video_popup_close_youtube.ggUpdateConditionTimer=function () { if (me.elementMouseOver['video_popup_close_youtube']) { me._video_popup_close_youtube__img.style.visibility='hidden'; me._video_popup_close_youtube__imgo.style.visibility='inherit'; me.elementMouseOver['video_popup_close_youtube']=true; } } me._video_popup_close_youtube.ggUpdatePosition=function (useTransition) { } me._video_popup_youtube.appendChild(me._video_popup_close_youtube); me._youtube_container.appendChild(me._video_popup_youtube); me.divSkin.appendChild(me._youtube_container); me._cloudflare_video.logicBlock_visible(); me._cloudflare_video.ggVideoSource = 'https://iframe.videodelivery.net/$(*cloudflare_video_id)'; me._cloudflare_video.ggVideoNotLoaded = true; me._video_popup_youtube.logicBlock_visible(); me._popup_video_youtube.logicBlock_visible(); me._popup_video_youtube.ggVideoSource = ''; me._popup_video_youtube.ggVideoNotLoaded = true; me._video_popup_close_youtube.logicBlock_visible(); player.addListener('activehotspotchanged', function(event) { if (hotspotTemplates.hasOwnProperty('Infopoint')) { for(var i = 0; i < hotspotTemplates['Infopoint'].length; i++) { hotspotTemplates['Infopoint'][i].ggEvent_activehotspotchanged(); } } if (hotspotTemplates.hasOwnProperty('Link')) { for(var i = 0; i < hotspotTemplates['Link'].length; i++) { hotspotTemplates['Link'][i].ggEvent_activehotspotchanged(); } } if (hotspotTemplates.hasOwnProperty('ht_url')) { for(var i = 0; i < hotspotTemplates['ht_url'].length; i++) { hotspotTemplates['ht_url'][i].ggEvent_activehotspotchanged(); } } if (hotspotTemplates.hasOwnProperty('ht_video_youtube')) { for(var i = 0; i < hotspotTemplates['ht_video_youtube'].length; i++) { hotspotTemplates['ht_video_youtube'][i].ggEvent_activehotspotchanged(); } } if (hotspotTemplates.hasOwnProperty('patch')) { for(var i = 0; i < hotspotTemplates['patch'].length; i++) { hotspotTemplates['patch'][i].ggEvent_activehotspotchanged(); } } if (hotspotTemplates.hasOwnProperty('label_image_hs')) { for(var i = 0; i < hotspotTemplates['label_image_hs'].length; i++) { hotspotTemplates['label_image_hs'][i].ggEvent_activehotspotchanged(); } } if (hotspotTemplates.hasOwnProperty('label_image_hs_open')) { for(var i = 0; i < hotspotTemplates['label_image_hs_open'].length; i++) { hotspotTemplates['label_image_hs_open'][i].ggEvent_activehotspotchanged(); } } if (hotspotTemplates.hasOwnProperty('patch_group')) { for(var i = 0; i < hotspotTemplates['patch_group'].length; i++) { hotspotTemplates['patch_group'][i].ggEvent_activehotspotchanged(); } } }); player.addListener('changenode', function(event) { if (hotspotTemplates.hasOwnProperty('Panel')) { for(var i = 0; i < hotspotTemplates['Panel'].length; i++) { hotspotTemplates['Panel'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('Hotspot L')) { for(var i = 0; i < hotspotTemplates['Hotspot L'].length; i++) { hotspotTemplates['Hotspot L'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('Hotspot S')) { for(var i = 0; i < hotspotTemplates['Hotspot S'].length; i++) { hotspotTemplates['Hotspot S'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('Drone Extern')) { for(var i = 0; i < hotspotTemplates['Drone Extern'].length; i++) { hotspotTemplates['Drone Extern'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('Drone M')) { for(var i = 0; i < hotspotTemplates['Drone M'].length; i++) { hotspotTemplates['Drone M'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('Drone S')) { for(var i = 0; i < hotspotTemplates['Drone S'].length; i++) { hotspotTemplates['Drone S'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('Extern Hotspot L')) { for(var i = 0; i < hotspotTemplates['Extern Hotspot L'].length; i++) { hotspotTemplates['Extern Hotspot L'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('Extern Hotspot ')) { for(var i = 0; i < hotspotTemplates['Extern Hotspot '].length; i++) { hotspotTemplates['Extern Hotspot '][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('Button')) { for(var i = 0; i < hotspotTemplates['Button'].length; i++) { hotspotTemplates['Button'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('Infopoint')) { for(var i = 0; i < hotspotTemplates['Infopoint'].length; i++) { hotspotTemplates['Infopoint'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('Link')) { for(var i = 0; i < hotspotTemplates['Link'].length; i++) { hotspotTemplates['Link'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('ht_url')) { for(var i = 0; i < hotspotTemplates['ht_url'].length; i++) { hotspotTemplates['ht_url'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('Hotspot M')) { for(var i = 0; i < hotspotTemplates['Hotspot M'].length; i++) { hotspotTemplates['Hotspot M'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('Hotspot Info Button')) { for(var i = 0; i < hotspotTemplates['Hotspot Info Button'].length; i++) { hotspotTemplates['Hotspot Info Button'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('ht_video_youtube')) { for(var i = 0; i < hotspotTemplates['ht_video_youtube'].length; i++) { hotspotTemplates['ht_video_youtube'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('Cloudflare Video')) { for(var i = 0; i < hotspotTemplates['Cloudflare Video'].length; i++) { hotspotTemplates['Cloudflare Video'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('infoLabel_small')) { for(var i = 0; i < hotspotTemplates['infoLabel_small'].length; i++) { hotspotTemplates['infoLabel_small'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('infoLabel')) { for(var i = 0; i < hotspotTemplates['infoLabel'].length; i++) { hotspotTemplates['infoLabel'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('ht_node')) { for(var i = 0; i < hotspotTemplates['ht_node'].length; i++) { hotspotTemplates['ht_node'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('patch')) { for(var i = 0; i < hotspotTemplates['patch'].length; i++) { hotspotTemplates['patch'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('patch_group_switcher')) { for(var i = 0; i < hotspotTemplates['patch_group_switcher'].length; i++) { hotspotTemplates['patch_group_switcher'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('label_hs')) { for(var i = 0; i < hotspotTemplates['label_hs'].length; i++) { hotspotTemplates['label_hs'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('label_image_hs')) { for(var i = 0; i < hotspotTemplates['label_image_hs'].length; i++) { hotspotTemplates['label_image_hs'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('label_image_hs_open')) { for(var i = 0; i < hotspotTemplates['label_image_hs_open'].length; i++) { hotspotTemplates['label_image_hs_open'][i].ggEvent_changenode(); } } if (hotspotTemplates.hasOwnProperty('patch_group')) { for(var i = 0; i < hotspotTemplates['patch_group'].length; i++) { hotspotTemplates['patch_group'][i].ggEvent_changenode(); } } player.getPointHotspotIds().forEach((hs) =>{ let hotspot = player.getHotspot(hs); if(hotspot.skinid === "Cloudflare Video"){ hotspot.div.addEventListener("click",()=>{ player.setVariableValue("cloudflare_video_id",hotspot.description) player.setVariableValue("cloudflare_video_title",hotspot.title) }) hotspot.div.addEventListener("touchend",()=>{ player.setVariableValue("cloudflare_video_id",hotspot.description) player.setVariableValue("cloudflare_video_title",hotspot.title) }) } }) me._cloudflare_video.logicBlock_visible(); player.setVariableValue('blinken_starten', false); me._video_popup_youtube.logicBlock_visible(); me._popup_video_youtube.logicBlock_visible(); me._video_popup_close_youtube.logicBlock_visible(); }); player.addListener('configloaded', function(event) { if (hotspotTemplates.hasOwnProperty('Panel')) { for(var i = 0; i < hotspotTemplates['Panel'].length; i++) { hotspotTemplates['Panel'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('Hotspot L')) { for(var i = 0; i < hotspotTemplates['Hotspot L'].length; i++) { hotspotTemplates['Hotspot L'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('Hotspot S')) { for(var i = 0; i < hotspotTemplates['Hotspot S'].length; i++) { hotspotTemplates['Hotspot S'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('Drone Extern')) { for(var i = 0; i < hotspotTemplates['Drone Extern'].length; i++) { hotspotTemplates['Drone Extern'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('Drone M')) { for(var i = 0; i < hotspotTemplates['Drone M'].length; i++) { hotspotTemplates['Drone M'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('Drone S')) { for(var i = 0; i < hotspotTemplates['Drone S'].length; i++) { hotspotTemplates['Drone S'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('Extern Hotspot L')) { for(var i = 0; i < hotspotTemplates['Extern Hotspot L'].length; i++) { hotspotTemplates['Extern Hotspot L'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('Extern Hotspot ')) { for(var i = 0; i < hotspotTemplates['Extern Hotspot '].length; i++) { hotspotTemplates['Extern Hotspot '][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('Infopoint')) { for(var i = 0; i < hotspotTemplates['Infopoint'].length; i++) { hotspotTemplates['Infopoint'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('Link')) { for(var i = 0; i < hotspotTemplates['Link'].length; i++) { hotspotTemplates['Link'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('ht_url')) { for(var i = 0; i < hotspotTemplates['ht_url'].length; i++) { hotspotTemplates['ht_url'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('Hotspot M')) { for(var i = 0; i < hotspotTemplates['Hotspot M'].length; i++) { hotspotTemplates['Hotspot M'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('Hotspot Info Button')) { for(var i = 0; i < hotspotTemplates['Hotspot Info Button'].length; i++) { hotspotTemplates['Hotspot Info Button'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('ht_video_youtube')) { for(var i = 0; i < hotspotTemplates['ht_video_youtube'].length; i++) { hotspotTemplates['ht_video_youtube'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('Cloudflare Video')) { for(var i = 0; i < hotspotTemplates['Cloudflare Video'].length; i++) { hotspotTemplates['Cloudflare Video'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('infoLabel_small')) { for(var i = 0; i < hotspotTemplates['infoLabel_small'].length; i++) { hotspotTemplates['infoLabel_small'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('infoLabel')) { for(var i = 0; i < hotspotTemplates['infoLabel'].length; i++) { hotspotTemplates['infoLabel'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('ht_node')) { for(var i = 0; i < hotspotTemplates['ht_node'].length; i++) { hotspotTemplates['ht_node'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('patch')) { for(var i = 0; i < hotspotTemplates['patch'].length; i++) { hotspotTemplates['patch'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('patch_group_switcher')) { for(var i = 0; i < hotspotTemplates['patch_group_switcher'].length; i++) { hotspotTemplates['patch_group_switcher'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('label_hs')) { for(var i = 0; i < hotspotTemplates['label_hs'].length; i++) { hotspotTemplates['label_hs'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('label_image_hs')) { for(var i = 0; i < hotspotTemplates['label_image_hs'].length; i++) { hotspotTemplates['label_image_hs'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('label_image_hs_open')) { for(var i = 0; i < hotspotTemplates['label_image_hs_open'].length; i++) { hotspotTemplates['label_image_hs_open'][i].ggEvent_configloaded(); } } if (hotspotTemplates.hasOwnProperty('patch_group')) { for(var i = 0; i < hotspotTemplates['patch_group'].length; i++) { hotspotTemplates['patch_group'][i].ggEvent_configloaded(); } } function convertHex(hexCode,opacity){ if(Boolean(hexCode)){ var hex = hexCode.replace('#',''); if (hex.length === 3) { hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2]; } var r = parseInt(hex.substring(0,2), 16), g = parseInt(hex.substring(2,4), 16), b = parseInt(hex.substring(4,6), 16); return 'rgba('+r+','+g+','+b+','+opacity/100+')'; }else{ return 'rgba(174, 139, 87, 0.2)'; } } function parseHotspotColors(parentDiv){ let hotspots = parentDiv.querySelectorAll(".HS_Farbe"); let hs_color = convertHex(player.getVariableValue("hotspotFarbe"),player.getVariableValue("hotspotFarbe_alpha_prozent")); let border_color_index = hs_color.lastIndexOf(","); let border_color = hs_color.substring(0,border_color_index) + ",1)"; hotspots.forEach(function(hotspot){ hotspot.style.background = hs_color; hotspot.style.borderColor = border_color; hotspot.style.borderStyle = "solid"; hotspot.style.borderSize = "2px"; }) } function parseHotspotBackgroundColor(parentDiv){ let hotspots = parentDiv.querySelectorAll(".hs-farbe-background"); let hs_color = convertHex(player.getVariableValue("hotspotFarbe"),player.getVariableValue("hotspotFarbe_alpha_prozent")); let hs_color_alphaIndex = hs_color.lastIndexOf(","); let hs_color_noAlpha = hs_color.substring(0,hs_color_alphaIndex)+ ")"; hotspots.forEach(function(hotspot){ hotspot.style.background = hs_color_noAlpha; }) } function parseChildHotspotColors(parentDiv){ let hotspots = parentDiv.querySelectorAll(".hs-child-farbe-background"); let hs_color = convertHex(player.getVariableValue("hotspotFarbe"),player.getVariableValue("hotspotFarbe_alpha_prozent")); let hs_color_alphaIndex = hs_color.lastIndexOf(","); let hs_color_noAlpha = hs_color.substring(0,hs_color_alphaIndex)+ ")"; hotspots.forEach(function(hs){ let child = hs.querySelector("div"); if(child){ child.style.backgroundColor = hs_color_noAlpha } }) } function parseTextColors(parentDiv){ let hotspots = parentDiv.querySelectorAll(".text-color"); let text_color = player.getVariableValue("text_color"); hotspots.forEach(function(hotspot){ if(hotspot.children.length !== 0){ for (let child in hotspot.children){ if(!isNaN(parseInt(child))){ hotspot.children[child].style.color = text_color; hotspot.children[child].style.borderColor = text_color; } } }else{ hotspot.style.color = text_color; hotspot.style.borderColor = text_color; } }) } var parentDiv = player.$ || player.divSkin.parentElement; if(Boolean(player.getVariableValue("hotspotFarbe"))){ parseHotspotColors(parentDiv); parseChildHotspotColors(parentDiv); parseHotspotBackgroundColor(parentDiv); player.addListener("changenode",function(){ parseHotspotColors(parentDiv); parseChildHotspotColors(parentDiv); parseHotspotBackgroundColor(parentDiv); }); player.addListener("varchanged_hotspotFarbe",function(){ parseHotspotColors(parentDiv); parseChildHotspotColors(parentDiv); parseHotspotBackgroundColor(parentDiv); }) } if(Boolean(player.getVariableValue("text_color"))){ parseTextColors(parentDiv); player.addListener("changenode",function(){parseTextColors(parentDiv)}) player.addListener("varchanged_text_color",function(){parseTextColors(parentDiv)}) } player.getPointHotspotIds().forEach((hs) =>{ let hotspot = player.getHotspot(hs); if(hotspot.skinid === "Cloudflare Video"){ hotspot.div.addEventListener("click",()=>{ player.setVariableValue("cloudflare_video_id",hotspot.description) player.setVariableValue("cloudflare_video_title",hotspot.title) }) hotspot.div.addEventListener("touchend",()=>{ player.setVariableValue("cloudflare_video_id",hotspot.description) player.setVariableValue("cloudflare_video_title",hotspot.title) }) } }) me._cloudflare_video.logicBlock_visible(); me._video_popup_youtube.logicBlock_visible(); me._popup_video_youtube.logicBlock_visible(); me._video_popup_close_youtube.logicBlock_visible(); }); player.addListener('hastouch', function(event) { if (hotspotTemplates.hasOwnProperty('Panel')) { for(var i = 0; i < hotspotTemplates['Panel'].length; i++) { hotspotTemplates['Panel'][i].ggEvent_hastouch(); } } if (hotspotTemplates.hasOwnProperty('ht_video_youtube')) { for(var i = 0; i < hotspotTemplates['ht_video_youtube'].length; i++) { hotspotTemplates['ht_video_youtube'][i].ggEvent_hastouch(); } } }); player.addListener('imagesready', function(event) { if (hotspotTemplates.hasOwnProperty('Panel')) { for(var i = 0; i < hotspotTemplates['Panel'].length; i++) { hotspotTemplates['Panel'][i].ggEvent_imagesready(); } } }); player.addListener('sizechanged', function(event) { if (hotspotTemplates.hasOwnProperty('Panel')) { for(var i = 0; i < hotspotTemplates['Panel'].length; i++) { hotspotTemplates['Panel'][i].ggEvent_sizechanged(); } } }); player.addListener('varchanged_autoExpanded', function(event) { if (hotspotTemplates.hasOwnProperty('Hotspot L')) { for(var i = 0; i < hotspotTemplates['Hotspot L'].length; i++) { hotspotTemplates['Hotspot L'][i].ggEvent_varchanged_autoExpanded(); } } if (hotspotTemplates.hasOwnProperty('Hotspot S')) { for(var i = 0; i < hotspotTemplates['Hotspot S'].length; i++) { hotspotTemplates['Hotspot S'][i].ggEvent_varchanged_autoExpanded(); } } if (hotspotTemplates.hasOwnProperty('Drone Extern')) { for(var i = 0; i < hotspotTemplates['Drone Extern'].length; i++) { hotspotTemplates['Drone Extern'][i].ggEvent_varchanged_autoExpanded(); } } if (hotspotTemplates.hasOwnProperty('Drone M')) { for(var i = 0; i < hotspotTemplates['Drone M'].length; i++) { hotspotTemplates['Drone M'][i].ggEvent_varchanged_autoExpanded(); } } if (hotspotTemplates.hasOwnProperty('Drone S')) { for(var i = 0; i < hotspotTemplates['Drone S'].length; i++) { hotspotTemplates['Drone S'][i].ggEvent_varchanged_autoExpanded(); } } if (hotspotTemplates.hasOwnProperty('Extern Hotspot L')) { for(var i = 0; i < hotspotTemplates['Extern Hotspot L'].length; i++) { hotspotTemplates['Extern Hotspot L'][i].ggEvent_varchanged_autoExpanded(); } } if (hotspotTemplates.hasOwnProperty('Extern Hotspot ')) { for(var i = 0; i < hotspotTemplates['Extern Hotspot '].length; i++) { hotspotTemplates['Extern Hotspot '][i].ggEvent_varchanged_autoExpanded(); } } if (hotspotTemplates.hasOwnProperty('Hotspot M')) { for(var i = 0; i < hotspotTemplates['Hotspot M'].length; i++) { hotspotTemplates['Hotspot M'][i].ggEvent_varchanged_autoExpanded(); } } if (hotspotTemplates.hasOwnProperty('Hotspot Info Button')) { for(var i = 0; i < hotspotTemplates['Hotspot Info Button'].length; i++) { hotspotTemplates['Hotspot Info Button'][i].ggEvent_varchanged_autoExpanded(); } } if (hotspotTemplates.hasOwnProperty('ht_video_youtube')) { for(var i = 0; i < hotspotTemplates['ht_video_youtube'].length; i++) { hotspotTemplates['ht_video_youtube'][i].ggEvent_varchanged_autoExpanded(); } } if (hotspotTemplates.hasOwnProperty('infoLabel_small')) { for(var i = 0; i < hotspotTemplates['infoLabel_small'].length; i++) { hotspotTemplates['infoLabel_small'][i].ggEvent_varchanged_autoExpanded(); } } if (hotspotTemplates.hasOwnProperty('infoLabel')) { for(var i = 0; i < hotspotTemplates['infoLabel'].length; i++) { hotspotTemplates['infoLabel'][i].ggEvent_varchanged_autoExpanded(); } } if (hotspotTemplates.hasOwnProperty('ht_node')) { for(var i = 0; i < hotspotTemplates['ht_node'].length; i++) { hotspotTemplates['ht_node'][i].ggEvent_varchanged_autoExpanded(); } } if (hotspotTemplates.hasOwnProperty('label_hs')) { for(var i = 0; i < hotspotTemplates['label_hs'].length; i++) { hotspotTemplates['label_hs'][i].ggEvent_varchanged_autoExpanded(); } } if (hotspotTemplates.hasOwnProperty('label_image_hs')) { for(var i = 0; i < hotspotTemplates['label_image_hs'].length; i++) { hotspotTemplates['label_image_hs'][i].ggEvent_varchanged_autoExpanded(); } } if (hotspotTemplates.hasOwnProperty('label_image_hs_open')) { for(var i = 0; i < hotspotTemplates['label_image_hs_open'].length; i++) { hotspotTemplates['label_image_hs_open'][i].ggEvent_varchanged_autoExpanded(); } } }); player.addListener('varchanged_blinken_starten', function(event) { if (hotspotTemplates.hasOwnProperty('Panel')) { for(var i = 0; i < hotspotTemplates['Panel'].length; i++) { hotspotTemplates['Panel'][i].ggEvent_varchanged_blinken_starten(); } } if (hotspotTemplates.hasOwnProperty('Hotspot L')) { for(var i = 0; i < hotspotTemplates['Hotspot L'].length; i++) { hotspotTemplates['Hotspot L'][i].ggEvent_varchanged_blinken_starten(); } } if (hotspotTemplates.hasOwnProperty('Hotspot S')) { for(var i = 0; i < hotspotTemplates['Hotspot S'].length; i++) { hotspotTemplates['Hotspot S'][i].ggEvent_varchanged_blinken_starten(); } } if (hotspotTemplates.hasOwnProperty('Drone Extern')) { for(var i = 0; i < hotspotTemplates['Drone Extern'].length; i++) { hotspotTemplates['Drone Extern'][i].ggEvent_varchanged_blinken_starten(); } } if (hotspotTemplates.hasOwnProperty('Drone M')) { for(var i = 0; i < hotspotTemplates['Drone M'].length; i++) { hotspotTemplates['Drone M'][i].ggEvent_varchanged_blinken_starten(); } } if (hotspotTemplates.hasOwnProperty('Drone S')) { for(var i = 0; i < hotspotTemplates['Drone S'].length; i++) { hotspotTemplates['Drone S'][i].ggEvent_varchanged_blinken_starten(); } } if (hotspotTemplates.hasOwnProperty('Extern Hotspot L')) { for(var i = 0; i < hotspotTemplates['Extern Hotspot L'].length; i++) { hotspotTemplates['Extern Hotspot L'][i].ggEvent_varchanged_blinken_starten(); } } if (hotspotTemplates.hasOwnProperty('Extern Hotspot ')) { for(var i = 0; i < hotspotTemplates['Extern Hotspot '].length; i++) { hotspotTemplates['Extern Hotspot '][i].ggEvent_varchanged_blinken_starten(); } } if (hotspotTemplates.hasOwnProperty('Hotspot M')) { for(var i = 0; i < hotspotTemplates['Hotspot M'].length; i++) { hotspotTemplates['Hotspot M'][i].ggEvent_varchanged_blinken_starten(); } } if (hotspotTemplates.hasOwnProperty('Hotspot Info Button')) { for(var i = 0; i < hotspotTemplates['Hotspot Info Button'].length; i++) { hotspotTemplates['Hotspot Info Button'][i].ggEvent_varchanged_blinken_starten(); } } if (hotspotTemplates.hasOwnProperty('ht_video_youtube')) { for(var i = 0; i < hotspotTemplates['ht_video_youtube'].length; i++) { hotspotTemplates['ht_video_youtube'][i].ggEvent_varchanged_blinken_starten(); } } if (hotspotTemplates.hasOwnProperty('Cloudflare Video')) { for(var i = 0; i < hotspotTemplates['Cloudflare Video'].length; i++) { hotspotTemplates['Cloudflare Video'][i].ggEvent_varchanged_blinken_starten(); } } if (hotspotTemplates.hasOwnProperty('infoLabel_small')) { for(var i = 0; i < hotspotTemplates['infoLabel_small'].length; i++) { hotspotTemplates['infoLabel_small'][i].ggEvent_varchanged_blinken_starten(); } } if (hotspotTemplates.hasOwnProperty('infoLabel')) { for(var i = 0; i < hotspotTemplates['infoLabel'].length; i++) { hotspotTemplates['infoLabel'][i].ggEvent_varchanged_blinken_starten(); } } if (hotspotTemplates.hasOwnProperty('ht_node')) { for(var i = 0; i < hotspotTemplates['ht_node'].length; i++) { hotspotTemplates['ht_node'][i].ggEvent_varchanged_blinken_starten(); } } if (hotspotTemplates.hasOwnProperty('label_hs')) { for(var i = 0; i < hotspotTemplates['label_hs'].length; i++) { hotspotTemplates['label_hs'][i].ggEvent_varchanged_blinken_starten(); } } if (hotspotTemplates.hasOwnProperty('label_image_hs')) { for(var i = 0; i < hotspotTemplates['label_image_hs'].length; i++) { hotspotTemplates['label_image_hs'][i].ggEvent_varchanged_blinken_starten(); } } if (hotspotTemplates.hasOwnProperty('label_image_hs_open')) { for(var i = 0; i < hotspotTemplates['label_image_hs_open'].length; i++) { hotspotTemplates['label_image_hs_open'][i].ggEvent_varchanged_blinken_starten(); } } }); player.addListener('varchanged_ht_ani', function(event) { if (hotspotTemplates.hasOwnProperty('Panel')) { for(var i = 0; i < hotspotTemplates['Panel'].length; i++) { hotspotTemplates['Panel'][i].ggEvent_varchanged_ht_ani(); } } if (hotspotTemplates.hasOwnProperty('Hotspot L')) { for(var i = 0; i < hotspotTemplates['Hotspot L'].length; i++) { hotspotTemplates['Hotspot L'][i].ggEvent_varchanged_ht_ani(); } } if (hotspotTemplates.hasOwnProperty('Hotspot S')) { for(var i = 0; i < hotspotTemplates['Hotspot S'].length; i++) { hotspotTemplates['Hotspot S'][i].ggEvent_varchanged_ht_ani(); } } if (hotspotTemplates.hasOwnProperty('Drone Extern')) { for(var i = 0; i < hotspotTemplates['Drone Extern'].length; i++) { hotspotTemplates['Drone Extern'][i].ggEvent_varchanged_ht_ani(); } } if (hotspotTemplates.hasOwnProperty('Drone M')) { for(var i = 0; i < hotspotTemplates['Drone M'].length; i++) { hotspotTemplates['Drone M'][i].ggEvent_varchanged_ht_ani(); } } if (hotspotTemplates.hasOwnProperty('Drone S')) { for(var i = 0; i < hotspotTemplates['Drone S'].length; i++) { hotspotTemplates['Drone S'][i].ggEvent_varchanged_ht_ani(); } } if (hotspotTemplates.hasOwnProperty('Extern Hotspot L')) { for(var i = 0; i < hotspotTemplates['Extern Hotspot L'].length; i++) { hotspotTemplates['Extern Hotspot L'][i].ggEvent_varchanged_ht_ani(); } } if (hotspotTemplates.hasOwnProperty('Extern Hotspot ')) { for(var i = 0; i < hotspotTemplates['Extern Hotspot '].length; i++) { hotspotTemplates['Extern Hotspot '][i].ggEvent_varchanged_ht_ani(); } } if (hotspotTemplates.hasOwnProperty('Hotspot M')) { for(var i = 0; i < hotspotTemplates['Hotspot M'].length; i++) { hotspotTemplates['Hotspot M'][i].ggEvent_varchanged_ht_ani(); } } if (hotspotTemplates.hasOwnProperty('Hotspot Info Button')) { for(var i = 0; i < hotspotTemplates['Hotspot Info Button'].length; i++) { hotspotTemplates['Hotspot Info Button'][i].ggEvent_varchanged_ht_ani(); } } if (hotspotTemplates.hasOwnProperty('ht_video_youtube')) { for(var i = 0; i < hotspotTemplates['ht_video_youtube'].length; i++) { hotspotTemplates['ht_video_youtube'][i].ggEvent_varchanged_ht_ani(); } } if (hotspotTemplates.hasOwnProperty('Cloudflare Video')) { for(var i = 0; i < hotspotTemplates['Cloudflare Video'].length; i++) { hotspotTemplates['Cloudflare Video'][i].ggEvent_varchanged_ht_ani(); } } if (hotspotTemplates.hasOwnProperty('infoLabel_small')) { for(var i = 0; i < hotspotTemplates['infoLabel_small'].length; i++) { hotspotTemplates['infoLabel_small'][i].ggEvent_varchanged_ht_ani(); } } if (hotspotTemplates.hasOwnProperty('infoLabel')) { for(var i = 0; i < hotspotTemplates['infoLabel'].length; i++) { hotspotTemplates['infoLabel'][i].ggEvent_varchanged_ht_ani(); } } if (hotspotTemplates.hasOwnProperty('ht_node')) { for(var i = 0; i < hotspotTemplates['ht_node'].length; i++) { hotspotTemplates['ht_node'][i].ggEvent_varchanged_ht_ani(); } } if (hotspotTemplates.hasOwnProperty('label_hs')) { for(var i = 0; i < hotspotTemplates['label_hs'].length; i++) { hotspotTemplates['label_hs'][i].ggEvent_varchanged_ht_ani(); } } if (hotspotTemplates.hasOwnProperty('label_image_hs')) { for(var i = 0; i < hotspotTemplates['label_image_hs'].length; i++) { hotspotTemplates['label_image_hs'][i].ggEvent_varchanged_ht_ani(); } } if (hotspotTemplates.hasOwnProperty('label_image_hs_open')) { for(var i = 0; i < hotspotTemplates['label_image_hs_open'].length; i++) { hotspotTemplates['label_image_hs_open'][i].ggEvent_varchanged_ht_ani(); } } }); player.addListener('varchanged_labelImage_link', function(event) { if (hotspotTemplates.hasOwnProperty('label_image_hs')) { for(var i = 0; i < hotspotTemplates['label_image_hs'].length; i++) { hotspotTemplates['label_image_hs'][i].ggEvent_varchanged_labelImage_link(); } } if (hotspotTemplates.hasOwnProperty('label_image_hs_open')) { for(var i = 0; i < hotspotTemplates['label_image_hs_open'].length; i++) { hotspotTemplates['label_image_hs_open'][i].ggEvent_varchanged_labelImage_link(); } } }); player.addListener('varchanged_patch_group_open', function(event) { if (hotspotTemplates.hasOwnProperty('patch_group_switcher')) { for(var i = 0; i < hotspotTemplates['patch_group_switcher'].length; i++) { hotspotTemplates['patch_group_switcher'][i].ggEvent_varchanged_patch_group_open(); } } if (hotspotTemplates.hasOwnProperty('patch_group')) { for(var i = 0; i < hotspotTemplates['patch_group'].length; i++) { hotspotTemplates['patch_group'][i].ggEvent_varchanged_patch_group_open(); } } }); player.addListener('varchanged_smallPanel', function(event) { if (hotspotTemplates.hasOwnProperty('Panel')) { for(var i = 0; i < hotspotTemplates['Panel'].length; i++) { hotspotTemplates['Panel'][i].ggEvent_varchanged_smallPanel(); } } }); player.addListener('varchanged_vis_info_popup', function(event) { if (hotspotTemplates.hasOwnProperty('Infopoint')) { for(var i = 0; i < hotspotTemplates['Infopoint'].length; i++) { hotspotTemplates['Infopoint'][i].ggEvent_varchanged_vis_info_popup(); } } }); player.addListener('varchanged_vis_video_youtube', function(event) { me._cloudflare_video.logicBlock_visible(); me._video_popup_youtube.logicBlock_visible(); me._popup_video_youtube.logicBlock_visible(); me._video_popup_close_youtube.logicBlock_visible(); }); player.addListener('viewerinit', function(event) { if (hotspotTemplates.hasOwnProperty('Button')) { for(var i = 0; i < hotspotTemplates['Button'].length; i++) { hotspotTemplates['Button'][i].ggEvent_viewerinit(); } } }); }; function SkinCloner_nodecloner_Class(nodeId, parentScope, ggParent, parameter) { var me=this; var hs=''; me.parentScope=parentScope; me.ggParent=ggParent; me.findElements=skin.findElements; me.ggIndex=parameter.index; me.ggNodeId=nodeId; me.ggTitle=parameter.title; me.ggUserdata=skin.player.getNodeUserdata(me.ggNodeId); me.ggUserdata.nodeid=me.ggNodeId; me.elementMouseDown={}; me.elementMouseOver={}; me.__div=document.createElement('div'); me.__div.setAttribute('style','visibility: inherit; overflow: visible;'); me.__div.style.position='absolute'; me.__div.style.left=parameter.left; me.__div.style.top=parameter.top; me.__div.style.width=''; me.__div.style.height=''; me.__div.style.width=parameter.width; me.__div.style.height=parameter.height; me.__div.ggIsActive = function() { return player.getCurrentNode()==me.ggNodeId; } me.__div.ggElementNodeId=function() { return me.ggNodeId; } el=me._nodetext=document.createElement('div'); els=me._nodetext__text=document.createElement('div'); el.className='ggskin ggskin_textdiv'; el.ggTextDiv=els; el.ggId="NodeText"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_text hs-child-farbe-background text-color"; el.ggType='text'; hs =''; hs+='border : 1px solid #ffffff;'; hs+='border-radius : 4px;'; hs+='color : rgba(255,255,255,1);'; hs+='cursor : pointer;'; hs+='height : 90%;'; hs+='opacity : 0.7;'; hs+='position : absolute;'; hs+='right : 100%;'; hs+='top : 100%;'; hs+='visibility : inherit;'; hs+='width : 100%;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; hs =''; hs += 'box-sizing: border-box;'; hs+='width: 100%;'; hs+='height: 100%;'; hs+='font-size: 12px;'; hs+='font-weight: 300;'; hs+='text-align: center;'; hs+='white-space: pre-line;'; hs+='padding: 1px 2px 1px 2px;'; hs+='overflow: hidden;'; els.setAttribute('style',hs); me._nodetext.ggUpdateText=function() { var params = []; params.push(String(player._(me.ggUserdata.description))); var hs = player._("%1", params); if (hs!=this.ggText) { this.ggText=hs; this.ggTextDiv.innerHTML=hs; if (this.ggUpdatePosition) this.ggUpdatePosition(); } } me._nodetext.ggUpdateText(); player.addListener('changenode', function() { me._nodetext.ggUpdateText(); }); el.appendChild(els); me._nodetext.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 me.ggNodeId; } me._nodetext.onclick=function (e) { player.openNext("{"+me.ggNodeId+"}",player.hotspot.target); } me._nodetext.onmouseover=function (e) { me._nodetext.style.transition='none'; skin._nodetext.style.opacity='1'; skin._nodetext.style.visibility=skin._nodetext.ggVisible?'inherit':'hidden'; me.elementMouseOver['nodetext']=true; } me._nodetext.onmouseout=function (e) { if (e && e.toElement) { var current = e.toElement; while (current = current.parentNode) { if (current == me._nodetext__text) return; } } me._nodetext.style.transition='none'; skin._nodetext.style.opacity='0.7'; skin._nodetext.style.visibility=skin._nodetext.ggVisible?'inherit':'hidden'; me.elementMouseOver['nodetext']=false; } me._nodetext.ggUpdateConditionTimer=function () { if (me.elementMouseOver['nodetext']) { me._nodetext.style.transition='none'; skin._nodetext.style.opacity='1'; skin._nodetext.style.visibility=skin._nodetext.ggVisible?'inherit':'hidden'; me.elementMouseOver['nodetext']=true; } } me._nodetext.ggUpdatePosition=function (useTransition) { } me.__div.appendChild(me._nodetext); }; function SkinCloner_kategorien_bestimmen_Class(item, parentScope, ggParent, parameter) { var me=this; var hs=''; me.parentScope=parentScope; me.ggParent=ggParent; me.findElements=skin.findElements; me.ggIndex=parameter.index; me.ggTag = item['tag']; me.ggTitle = item['title']; me.ggDescription = item['description']; me.ggNodeCount = item['nodecount']; me.ggNodeId=item['firstnode']; let nodeId=item['firstnode']; me.ggUserdata=skin.player.getNodeUserdata(me.ggNodeId); me.ggUserdata.nodeid=me.ggNodeId; me.elementMouseDown={}; me.elementMouseOver={}; me.__div=document.createElement('div'); me.__div.setAttribute('style','visibility: inherit; overflow: visible;'); me.__div.style.position='absolute'; me.__div.style.left=parameter.left; me.__div.style.top=parameter.top; me.__div.style.width='auto'; me.__div.style.height=''; me.__div.style.width=parameter.width; me.__div.style.height=parameter.height; me.__div.ggIsActive = function() { var tags = player.userdata.tags; if (tags.indexOf(me.ggTag) == -1) return false; for(var i=0;i 0) { for (var j=0; j < filter.length; j++) { if (nodeData['tags'].indexOf(filter[j].trim()) == -1) passed = false; } } if (passed) { filteredNodes.push(nodeId); } } return filteredNodes; } el.ggUpdate = function(filter) { if(me._nodecloner.ggUpdating == true) return; me._nodecloner.ggUpdating = true; var el=me._nodecloner; var curNumCols = 0; curNumCols = me._nodecloner.ggNumRepeat; if (curNumCols < 1) curNumCols = 1; if (typeof filter=='object') { el.ggFilter = filter; } else { filter = el.ggFilter; }; if (parentScope.ggTag) filter.push(parentScope.ggTag); filter=filter.concat(parentScope._kategorien_bestimmen.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._nodecloner.ggUpdating = false; return; } else { el.ggNumRows = 1; el.ggNumCols = curNumCols; var centerOffsetHor = 0; var centerOffsetVert = 0; me._nodecloner.ggCloneOffsetChanged = false; } 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 keepCloning = true; tourNodes = me._nodecloner.getFilteredNodes(tourNodes, filter); me._nodecloner.ggNumFilterPassed = tourNodes.length; for (var i = 0; i < tourNodes.length; i++) { var nodeId = tourNodes[i]; var nodeData = player.getNodeUserdata(nodeId); if (!keepCloning || i < me._nodecloner.ggCloneOffset) continue; var parameter={}; parameter.top = centerOffsetVert + (row * me._nodecloner.ggHeight) + 'px'; parameter.left = centerOffsetHor + (column * me._nodecloner.ggWidth) + 'px'; parameter.width='100%'; parameter.height='100%'; parameter.index=currentIndex; parameter.title=nodeData['title']; var inst = new SkinCloner_nodecloner_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._nodecloner.ggNodeCount = me._nodecloner.ggNumFilterPassed; me._nodecloner.ggUpdating = false; player.triggerEvent('clonerchanged'); if (me._nodecloner.parentNode && me._nodecloner.parentNode.classList.contains('ggskin_subelement') && me._nodecloner.parentNode.parentNode.classList.contains('ggskin_scrollarea')) me._nodecloner.parentNode.parentNode.ggUpdatePosition(); } el.ggFilter = []; el.ggId="NodeCloner"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_cloner "; el.ggType='cloner'; hs =''; hs+='cursor : pointer;'; hs+='height : 90%;'; hs+='left : calc(50% - ((90% + 0px) / 2) + 0px);'; hs+='overflow : visible;'; hs+='position : absolute;'; hs+='top : calc(50% - ((90% + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 90%;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._nodecloner.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 me.ggNodeId; } me._nodecloner.ggUpdateConditionNodeChange=function () { var cnode=player.getCurrentNode(); for(var i=0; i0||!me._patch_group_switcher_customimage.style.opacity)?'inherit':'hidden'; me._patch_group_switcher_customimage.ggSubElement.src=me._patch_group_switcher_customimage.ggText; me._patch_group_switcher_customimage.ggVisible=true; } } } me._patch_group_switcher_customimage.logicBlock_visible(); me._patch_group_switcher_customimage.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((player.getVariableValue('patch_group_open') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._patch_group_switcher_customimage.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._patch_group_switcher_customimage.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._patch_group_switcher_customimage.style.transition='opacity 0s'; if (me._patch_group_switcher_customimage.ggCurrentLogicStateAlpha == 0) { me._patch_group_switcher_customimage.style.visibility=me._patch_group_switcher_customimage.ggVisible?'inherit':'hidden'; me._patch_group_switcher_customimage.ggSubElement.src=me._patch_group_switcher_customimage.ggText; me._patch_group_switcher_customimage.style.opacity=1; } else { me._patch_group_switcher_customimage.style.visibility="hidden"; me._patch_group_switcher_customimage.ggSubElement.src=''; me._patch_group_switcher_customimage.style.opacity=0; } } } me._patch_group_switcher_customimage.logicBlock_alpha(); me._patch_group_switcher_customimage.ggUpdatePosition=function (useTransition) { var parentWidth = me._patch_group_switcher_customimage.clientWidth; var parentHeight = me._patch_group_switcher_customimage.clientHeight; var img = me._patch_group_switcher_customimage__img; var aspectRatioDiv = me._patch_group_switcher_customimage.clientWidth / me._patch_group_switcher_customimage.clientHeight; var aspectRatioImg = img.naturalWidth / img.naturalHeight; var currentWidth,currentHeight; if ((hotspot) && (hotspot.customimage)) { currentWidth = hotspot.customimagewidth; currentHeight = hotspot.customimageheight; } if (!me._patch_group_switcher_customimage.ggScrollbars || currentWidth < me._patch_group_switcher_customimage.clientWidth) { img.style.right=''; img.style.left='50%'; img.style.marginLeft='-' + currentWidth/2 + 'px'; } else { img.style.right=''; img.style.left='0px'; img.style.marginLeft='0px'; me._patch_group_switcher_customimage.scrollLeft=currentWidth / 2 - me._patch_group_switcher_customimage.clientWidth / 2; } if (!me._patch_group_switcher_customimage.ggScrollbars || currentHeight < me._patch_group_switcher_customimage.clientHeight) { img.style.bottom=''; img.style.top='50%'; img.style.marginTop='-' + currentHeight/2 + 'px'; } else { img.style.bottom=''; img.style.top='0px'; img.style.marginTop='0px'; me._patch_group_switcher_customimage.scrollTop=currentHeight / 2 - me._patch_group_switcher_customimage.clientHeight / 2; } } me._patch_group.appendChild(me._patch_group_switcher_customimage); if ((hotspot) && (hotspot.customimage)) { me._patch_group_switcher_customimage.style.width=hotspot.customimagewidth + 'px'; me._patch_group_switcher_customimage.style.height=hotspot.customimageheight + 'px'; let d = 0; me._patch_group_switcher_customimage.style.left='calc(50% - ' + (hotspot.customimagewidth)/2 +'px' + ((d<0) ? ' - ' : ' + ') + d + 'px)'; d = 0; me._patch_group_switcher_customimage.style.top='calc(50% - ' + (hotspot.customimageheight)/2 +'px' + ((d<0) ? ' - ' : ' + ') + d + 'px)'; } me._patch_group_switcher_customimage.logicBlock_visible(); me._patch_group_switcher_customimage.logicBlock_alpha(); me.ggEvent_activehotspotchanged=function() { me._patch_group_switcher_customimage.logicBlock_visible(); }; me.ggEvent_changenode=function() { me._patch_group_switcher_customimage.logicBlock_visible(); me._patch_group_switcher_customimage.logicBlock_alpha(); }; me.ggEvent_configloaded=function() { me._patch_group_switcher_customimage.logicBlock_visible(); me._patch_group_switcher_customimage.logicBlock_alpha(); }; me.ggEvent_varchanged_patch_group_open=function() { me._patch_group_switcher_customimage.logicBlock_alpha(); }; me.hotspotTimerEvent=function() { setTimeout(function() { me.hotspotTimerEvent(); }, 10); me._patch_group.ggUpdateConditionTimer(); } me.hotspotTimerEvent(); me.__div = me._patch_group; }; function SkinHotspotClass_button_extern(parentScope,hotspot) { var me=this; var flag=false; var hs=''; me.parentScope=parentScope; me.hotspot=hotspot; var nodeId=String(hotspot.url); nodeId=(nodeId.charAt(0)=='{')?nodeId.substr(1, nodeId.length - 2):''; // } me.ggUserdata=skin.player.getNodeUserdata(nodeId); me.elementMouseDown={}; me.elementMouseOver={}; me.findElements=function(id,regex) { return skin.findElements(id,regex); } el=me._button_extern=document.createElement('div'); el.ggId="Button Extern"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_hotspot "; el.ggType='hotspot'; hs =''; hs+='cursor : pointer;'; hs+='height : 0px;'; hs+='left : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 0px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._button_extern.ggIsActive=function() { return player.getCurrentNode()==this.ggElementNodeId(); } el.ggElementNodeId=function() { if (me.hotspot.url!='' && me.hotspot.url.charAt(0)=='{') { // } return me.hotspot.url.substr(1, me.hotspot.url.length - 2); } else { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } else { return player.getCurrentNode(); } } } me._button_extern.onclick=function (e) { player.openUrl(player._(me.hotspot.url),"_blank"); player.triggerEvent('hsproxyclick', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._button_extern.ondblclick=function (e) { player.triggerEvent('hsproxydblclick', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._button_extern.onmouseover=function (e) { player.setActiveHotspot(me.hotspot); me.elementMouseOver['button_extern']=true; player.triggerEvent('hsproxyover', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._button_extern.onmouseout=function (e) { player.setActiveHotspot(null); me.elementMouseOver['button_extern']=false; player.triggerEvent('hsproxyout', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._button_extern.ggUpdateConditionTimer=function () { if (me.elementMouseOver['button_extern']) { player.setActiveHotspot(me.hotspot); me.elementMouseOver['button_extern']=true; } } me._button_extern.ggUpdatePosition=function (useTransition) { } el=me._buttonrezeption=document.createElement('div'); els=me._buttonrezeption__text=document.createElement('div'); el.className='ggskin ggskin_textdiv'; el.ggTextDiv=els; el.ggId="Button-Rezeption"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'translate(0px, -50%) ' }; el.ggVisible=true; el.className="ggskin ggskin_text hs-child-farbe-background text-color"; el.ggType='text'; hs =''; hs+='color : rgba(255,255,255,1);'; hs+='cursor : pointer;'; hs+='height : auto;'; hs+='left : calc(50% - ((calc(200px + 2px) + 2px) / 2) + 0px);'; hs+='opacity : 0.70002;'; hs+='position : absolute;'; hs+='top : calc(50% - ((0px + 2px) / 2) + 0px);'; hs+='transform : translate(0px, -50%);;'; hs+='visibility : inherit;'; hs+='width : calc(200px + 2px);'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; hs =''; hs += 'box-sizing: border-box;'; hs+='width: 100%;'; hs+='height: auto;'; hs+='border : 1px solid #ffffff;'; hs+='border-radius : 4px;'; hs+='font-size: 12px;'; hs+='font-weight: 300;'; hs+='text-align: center;'; hs+='white-space: pre-line;'; hs+='padding: 1px 2px 1px 2px;'; hs+='overflow: hidden;'; els.setAttribute('style',hs); me._buttonrezeption.ggUpdateText=function() { var params = []; params.push(String(player._(me.hotspot.title))); var hs = player._("%1", params); if (hs!=this.ggText) { this.ggText=hs; this.ggTextDiv.innerHTML=hs; if (this.ggUpdatePosition) this.ggUpdatePosition(); } } me._buttonrezeption.ggUpdateText(); el.appendChild(els); me._buttonrezeption.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 me.ggNodeId; } me._buttonrezeption.onmouseover=function (e) { if (player.transitionsDisabled) { me._buttonrezeption.style.transition='none'; } else { me._buttonrezeption.style.transition='all 500ms ease-out 0ms'; } me._buttonrezeption.style.opacity='1'; me._buttonrezeption.style.visibility=me._buttonrezeption.ggVisible?'inherit':'hidden'; me.elementMouseOver['buttonrezeption']=true; } me._buttonrezeption.onmouseout=function (e) { if (e && e.toElement) { var current = e.toElement; while (current = current.parentNode) { if (current == me._buttonrezeption__text) return; } } if (player.transitionsDisabled) { me._buttonrezeption.style.transition='none'; } else { me._buttonrezeption.style.transition='all 500ms ease-out 0ms'; } me._buttonrezeption.style.opacity='0.7'; me._buttonrezeption.style.visibility=me._buttonrezeption.ggVisible?'inherit':'hidden'; me.elementMouseOver['buttonrezeption']=false; } me._buttonrezeption.ggUpdateConditionTimer=function () { if (me.elementMouseOver['buttonrezeption']) { if (player.transitionsDisabled) { me._buttonrezeption.style.transition='none'; } else { me._buttonrezeption.style.transition='all 500ms ease-out 0ms'; } me._buttonrezeption.style.opacity='1'; me._buttonrezeption.style.visibility=me._buttonrezeption.ggVisible?'inherit':'hidden'; me.elementMouseOver['buttonrezeption']=true; } } me._buttonrezeption.ggUpdatePosition=function (useTransition) { } me._button_extern.appendChild(me._buttonrezeption); me.hotspotTimerEvent=function() { setTimeout(function() { me.hotspotTimerEvent(); }, 10); me._button_extern.ggUpdateConditionTimer(); me._buttonrezeption.ggUpdateConditionTimer(); var hs=''; if (me._buttonrezeption.ggParameter) { hs+=parameterToTransform(me._buttonrezeption.ggParameter) + ' '; } hs+='scale(' + (1.0/Math.tan(player.getFov()/2.0*Math.PI/180.0)*0.6 + 0) + ') '; me._buttonrezeption.style.transform=hs; } me.hotspotTimerEvent(); me.__div = me._button_extern; }; function SkinHotspotClass_label_image_hs_open(parentScope,hotspot) { var me=this; var flag=false; var hs=''; me.parentScope=parentScope; me.hotspot=hotspot; var nodeId=String(hotspot.url); nodeId=(nodeId.charAt(0)=='{')?nodeId.substr(1, nodeId.length - 2):''; // } me.ggUserdata=skin.player.getNodeUserdata(nodeId); me.elementMouseDown={}; me.elementMouseOver={}; me.findElements=function(id,regex) { return skin.findElements(id,regex); } el=me._label_image_hs_open=document.createElement('div'); el.ggId="label_image_hs_open"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_hotspot "; el.ggType='hotspot'; hs =''; hs+='cursor : pointer;'; hs+='height : 0px;'; hs+='left : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 0px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._label_image_hs_open.ggIsActive=function() { return player.getCurrentNode()==this.ggElementNodeId(); } el.ggElementNodeId=function() { if (me.hotspot.url!='' && me.hotspot.url.charAt(0)=='{') { // } return me.hotspot.url.substr(1, me.hotspot.url.length - 2); } else { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } else { return player.getCurrentNode(); } } } me._label_image_hs_open.onclick=function (e) { player.openNext(player._(me.hotspot.url),player._(me.hotspot.target)); player.triggerEvent('hsproxyclick', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._label_image_hs_open.ondblclick=function (e) { player.triggerEvent('hsproxydblclick', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._label_image_hs_open.onmouseover=function (e) { player.setActiveHotspot(me.hotspot); me.elementMouseOver['label_image_hs_open']=true; me._hs_image_i_l.logicBlock_scaling(); me._hs_image_i_l.logicBlock_bordercolor(); me._nodeimage_1_s.logicBlock_scaling(); me._nodeimage_1_s.logicBlock_angle(); me._nodeimage_1_s.logicBlock_alpha(); me._labelimage.logicBlock_scaling(); me._labelimage.logicBlock_angle(); me._labelimage.logicBlock_alpha(); player.triggerEvent('hsproxyover', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._label_image_hs_open.onmouseout=function (e) { player.setActiveHotspot(null); me.elementMouseOver['label_image_hs_open']=false; me._hs_image_i_l.logicBlock_scaling(); me._hs_image_i_l.logicBlock_bordercolor(); me._nodeimage_1_s.logicBlock_scaling(); me._nodeimage_1_s.logicBlock_angle(); me._nodeimage_1_s.logicBlock_alpha(); me._labelimage.logicBlock_scaling(); me._labelimage.logicBlock_angle(); me._labelimage.logicBlock_alpha(); player.triggerEvent('hsproxyout', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._label_image_hs_open.ggUpdateConditionTimer=function () { if (me.elementMouseOver['label_image_hs_open']) { player.setActiveHotspot(me.hotspot); me.elementMouseOver['label_image_hs_open']=true; me._hs_image_i_l.logicBlock_scaling(); me._hs_image_i_l.logicBlock_bordercolor(); me._nodeimage_1_s.logicBlock_scaling(); me._nodeimage_1_s.logicBlock_angle(); me._nodeimage_1_s.logicBlock_alpha(); me._labelimage.logicBlock_scaling(); me._labelimage.logicBlock_angle(); me._labelimage.logicBlock_alpha(); } } me._label_image_hs_open.ggUpdatePosition=function (useTransition) { } el=me._hs_image_animated_2_l=document.createElement('div'); el.ggId="hs_image_animated_2_L"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_rectangle HS_Farbe"; el.ggType='rectangle'; hs =''; hs+='background : rgba(174,139,87,0.196078);'; hs+='border : 2px solid #ae8b57;'; hs+='border-radius : 999px;'; hs+='cursor : pointer;'; hs+='height : 60px;'; hs+='left : calc(50% - ((60px + 4px) / 2) + 0px);'; hs+='opacity : 0;'; hs+='position : absolute;'; hs+='top : calc(50% - ((60px + 4px) / 2) + 0px);'; hs+='visibility : hidden;'; hs+='width : 60px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._hs_image_animated_2_l.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 me.ggNodeId; } me._hs_image_animated_2_l.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._hs_image_animated_2_l.ggCurrentLogicStateScaling != newLogicStateScaling) { me._hs_image_animated_2_l.ggCurrentLogicStateScaling = newLogicStateScaling; me._hs_image_animated_2_l.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_2_l.ggCurrentLogicStateScaling == 0) { me._hs_image_animated_2_l.ggParameter.sx = 0.8; me._hs_image_animated_2_l.ggParameter.sy = 0.8; me._hs_image_animated_2_l.style.transform=parameterToTransform(me._hs_image_animated_2_l.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_2_l);}, 550); } else { me._hs_image_animated_2_l.ggParameter.sx = 1; me._hs_image_animated_2_l.ggParameter.sy = 1; me._hs_image_animated_2_l.style.transform=parameterToTransform(me._hs_image_animated_2_l.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_2_l);}, 550); } } } me._hs_image_animated_2_l.logicBlock_scaling(); me._hs_image_animated_2_l.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('blinken_starten') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._hs_image_animated_2_l.ggCurrentLogicStateVisible != newLogicStateVisible) { me._hs_image_animated_2_l.ggCurrentLogicStateVisible = newLogicStateVisible; me._hs_image_animated_2_l.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_2_l.ggCurrentLogicStateVisible == 0) { me._hs_image_animated_2_l.style.visibility=(Number(me._hs_image_animated_2_l.style.opacity)>0||!me._hs_image_animated_2_l.style.opacity)?'inherit':'hidden'; me._hs_image_animated_2_l.ggVisible=true; } else { me._hs_image_animated_2_l.style.visibility="hidden"; me._hs_image_animated_2_l.ggVisible=false; } } } me._hs_image_animated_2_l.logicBlock_visible(); me._hs_image_animated_2_l.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._hs_image_animated_2_l.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._hs_image_animated_2_l.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._hs_image_animated_2_l.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_2_l.ggCurrentLogicStateAlpha == 0) { me._hs_image_animated_2_l.style.visibility=me._hs_image_animated_2_l.ggVisible?'inherit':'hidden'; me._hs_image_animated_2_l.style.opacity=0.65; } else { setTimeout(function() { if (me._hs_image_animated_2_l.style.opacity == 0.0) { me._hs_image_animated_2_l.style.visibility="hidden"; } }, 505); me._hs_image_animated_2_l.style.opacity=0; } } } me._hs_image_animated_2_l.logicBlock_alpha(); me._hs_image_animated_2_l.ggUpdatePosition=function (useTransition) { } me._label_image_hs_open.appendChild(me._hs_image_animated_2_l); el=me._hs_image_animated_1_l=document.createElement('div'); el.ggId="hs_image_animated_1_L"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:0.5,sy:0.5,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='border : 3px solid #ffffff;'; hs+='border-radius : 999px;'; hs+='cursor : pointer;'; hs+='height : 39px;'; hs+='left : calc(50% - ((39px + 6px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((39px + 6px) / 2) + 0px);'; hs+='visibility : hidden;'; hs+='width : 39px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; el.style.transform=parameterToTransform(el.ggParameter); me._hs_image_animated_1_l.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 me.ggNodeId; } me._hs_image_animated_1_l.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._hs_image_animated_1_l.ggCurrentLogicStateScaling != newLogicStateScaling) { me._hs_image_animated_1_l.ggCurrentLogicStateScaling = newLogicStateScaling; me._hs_image_animated_1_l.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_1_l.ggCurrentLogicStateScaling == 0) { me._hs_image_animated_1_l.ggParameter.sx = 0.8; me._hs_image_animated_1_l.ggParameter.sy = 0.8; me._hs_image_animated_1_l.style.transform=parameterToTransform(me._hs_image_animated_1_l.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_1_l);}, 550); } else { me._hs_image_animated_1_l.ggParameter.sx = 0.5; me._hs_image_animated_1_l.ggParameter.sy = 0.5; me._hs_image_animated_1_l.style.transform=parameterToTransform(me._hs_image_animated_1_l.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_1_l);}, 550); } } } me._hs_image_animated_1_l.logicBlock_scaling(); me._hs_image_animated_1_l.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('blinken_starten') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._hs_image_animated_1_l.ggCurrentLogicStateVisible != newLogicStateVisible) { me._hs_image_animated_1_l.ggCurrentLogicStateVisible = newLogicStateVisible; me._hs_image_animated_1_l.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_1_l.ggCurrentLogicStateVisible == 0) { me._hs_image_animated_1_l.style.visibility=(Number(me._hs_image_animated_1_l.style.opacity)>0||!me._hs_image_animated_1_l.style.opacity)?'inherit':'hidden'; me._hs_image_animated_1_l.ggVisible=true; } else { me._hs_image_animated_1_l.style.visibility="hidden"; me._hs_image_animated_1_l.ggVisible=false; } } } me._hs_image_animated_1_l.logicBlock_visible(); me._hs_image_animated_1_l.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._hs_image_animated_1_l.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._hs_image_animated_1_l.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._hs_image_animated_1_l.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_1_l.ggCurrentLogicStateAlpha == 0) { setTimeout(function() { if (me._hs_image_animated_1_l.style.opacity == 0.0) { me._hs_image_animated_1_l.style.visibility="hidden"; } }, 505); me._hs_image_animated_1_l.style.opacity=0; } else { me._hs_image_animated_1_l.style.visibility=me._hs_image_animated_1_l.ggVisible?'inherit':'hidden'; me._hs_image_animated_1_l.style.opacity=1; } } } me._hs_image_animated_1_l.logicBlock_alpha(); me._hs_image_animated_1_l.ggUpdatePosition=function (useTransition) { } me._label_image_hs_open.appendChild(me._hs_image_animated_1_l); el=me._hs_image_i_l=document.createElement('div'); el.ggId="hs_image_i_L"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:0.5,sy:0.5,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='border : 3px solid #ffffff;'; hs+='border-radius : 999px;'; hs+='cursor : pointer;'; hs+='height : 39px;'; hs+='left : calc(50% - ((39px + 6px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((39px + 6px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 39px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; el.style.transform=parameterToTransform(el.ggParameter); me._hs_image_i_l.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 me.ggNodeId; } me._hs_image_i_l.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((me.elementMouseOver['label_image_hs_open'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._hs_image_i_l.ggCurrentLogicStateScaling != newLogicStateScaling) { me._hs_image_i_l.ggCurrentLogicStateScaling = newLogicStateScaling; me._hs_image_i_l.style.transition='transform 500ms ease 0ms, border-color 500ms ease 0ms'; if (me._hs_image_i_l.ggCurrentLogicStateScaling == 0) { me._hs_image_i_l.ggParameter.sx = 0.8; me._hs_image_i_l.ggParameter.sy = 0.8; me._hs_image_i_l.style.transform=parameterToTransform(me._hs_image_i_l.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_i_l);}, 550); } else { me._hs_image_i_l.ggParameter.sx = 0.5; me._hs_image_i_l.ggParameter.sy = 0.5; me._hs_image_i_l.style.transform=parameterToTransform(me._hs_image_i_l.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_i_l);}, 550); } } } me._hs_image_i_l.logicBlock_scaling(); me._hs_image_i_l.logicBlock_bordercolor = function() { var newLogicStateBorderColor; if ( ((me.elementMouseOver['label_image_hs_open'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateBorderColor = 0; } else { newLogicStateBorderColor = -1; } if (me._hs_image_i_l.ggCurrentLogicStateBorderColor != newLogicStateBorderColor) { me._hs_image_i_l.ggCurrentLogicStateBorderColor = newLogicStateBorderColor; me._hs_image_i_l.style.transition='transform 500ms ease 0ms, border-color 500ms ease 0ms'; if (me._hs_image_i_l.ggCurrentLogicStateBorderColor == 0) { me._hs_image_i_l.style.borderColor="rgba(174,139,87,1)"; } else { me._hs_image_i_l.style.borderColor="rgba(255,255,255,1)"; } } } me._hs_image_i_l.logicBlock_bordercolor(); me._hs_image_i_l.ggUpdatePosition=function (useTransition) { } me._label_image_hs_open.appendChild(me._hs_image_i_l); el=me._nodeimage_1_s=document.createElement('div'); els=me._nodeimage_1_s__img=document.createElement('img'); els.className='ggskin ggskin_nodeimage'; els.setAttribute('src',basePath + "images/nodeimage_1_s_" + nodeId + ".png"); el.ggNodeId=nodeId; hs =''; hs += 'position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'; els.setAttribute('style', hs); els.className='ggskin ggskin_nodeimage'; els['ondragstart']=function() { return false; }; el.appendChild(els); el.ggSubElement = els; el.ggId="NodeImage 1_s"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:-360,sx:0,sy:0,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_nodeimage "; el.ggType='nodeimage'; hs =''; hs+='cursor : pointer;'; hs+='height : 20px;'; hs+='left : calc(50% - ((20px + 0px) / 2) + 0px);'; hs+='opacity : 0;'; hs+='position : absolute;'; hs+='top : calc(50% - ((20px + 0px) / 2) + 0px);'; hs+='visibility : hidden;'; hs+='width : 20px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; el.style.transform=parameterToTransform(el.ggParameter); me._nodeimage_1_s.ggIsActive=function() { return player.getCurrentNode()==this.ggElementNodeId(); } el.ggElementNodeId=function() { return this.ggNodeId; } me._nodeimage_1_s.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((me.elementMouseOver['label_image_hs_open'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._nodeimage_1_s.ggCurrentLogicStateScaling != newLogicStateScaling) { me._nodeimage_1_s.ggCurrentLogicStateScaling = newLogicStateScaling; me._nodeimage_1_s.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._nodeimage_1_s.ggCurrentLogicStateScaling == 0) { me._nodeimage_1_s.ggParameter.sx = 3; me._nodeimage_1_s.ggParameter.sy = 3; me._nodeimage_1_s.style.transform=parameterToTransform(me._nodeimage_1_s.ggParameter); setTimeout(function() {skin.updateSize(me._nodeimage_1_s);}, 1050); } else { me._nodeimage_1_s.ggParameter.sx = 0; me._nodeimage_1_s.ggParameter.sy = 0; me._nodeimage_1_s.style.transform=parameterToTransform(me._nodeimage_1_s.ggParameter); setTimeout(function() {skin.updateSize(me._nodeimage_1_s);}, 1050); } } } me._nodeimage_1_s.logicBlock_scaling(); me._nodeimage_1_s.logicBlock_angle = function() { var newLogicStateAngle; if ( ((me.elementMouseOver['label_image_hs_open'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateAngle = 0; } else { newLogicStateAngle = -1; } if (me._nodeimage_1_s.ggCurrentLogicStateAngle != newLogicStateAngle) { me._nodeimage_1_s.ggCurrentLogicStateAngle = newLogicStateAngle; me._nodeimage_1_s.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._nodeimage_1_s.ggCurrentLogicStateAngle == 0) { me._nodeimage_1_s.ggParameter.a = 360; me._nodeimage_1_s.style.transform=parameterToTransform(me._nodeimage_1_s.ggParameter); } else { me._nodeimage_1_s.ggParameter.a = -360; me._nodeimage_1_s.style.transform=parameterToTransform(me._nodeimage_1_s.ggParameter); } } } me._nodeimage_1_s.logicBlock_angle(); me._nodeimage_1_s.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getHotspotPropValue(player.getCurrentNode(), me.hotspot ? me.hotspot.id : (player.hotspot ? player.hotspot.id : ''), 'labelImage_link') == "")) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._nodeimage_1_s.ggCurrentLogicStateVisible != newLogicStateVisible) { me._nodeimage_1_s.ggCurrentLogicStateVisible = newLogicStateVisible; me._nodeimage_1_s.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._nodeimage_1_s.ggCurrentLogicStateVisible == 0) { me._nodeimage_1_s.style.visibility=(Number(me._nodeimage_1_s.style.opacity)>0||!me._nodeimage_1_s.style.opacity)?'inherit':'hidden'; me._nodeimage_1_s.ggVisible=true; } else { me._nodeimage_1_s.style.visibility="hidden"; me._nodeimage_1_s.ggVisible=false; } } } me._nodeimage_1_s.logicBlock_visible(); me._nodeimage_1_s.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((me.elementMouseOver['label_image_hs_open'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._nodeimage_1_s.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._nodeimage_1_s.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._nodeimage_1_s.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._nodeimage_1_s.ggCurrentLogicStateAlpha == 0) { me._nodeimage_1_s.style.visibility=me._nodeimage_1_s.ggVisible?'inherit':'hidden'; me._nodeimage_1_s.style.opacity=1; } else { setTimeout(function() { if (me._nodeimage_1_s.style.opacity == 0.0) { me._nodeimage_1_s.style.visibility="hidden"; } }, 405); me._nodeimage_1_s.style.opacity=0; } } } me._nodeimage_1_s.logicBlock_alpha(); me._nodeimage_1_s.ggUpdatePosition=function (useTransition) { } me._label_image_hs_open.appendChild(me._nodeimage_1_s); el=me._label=document.createElement('div'); els=me._label__text=document.createElement('div'); el.className='ggskin ggskin_textdiv'; el.ggTextDiv=els; el.ggId="label"; el.ggDx=0; el.ggDy=-50; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'translate(-50%, -50%) ' }; el.ggVisible=true; el.className="ggskin ggskin_text "; el.ggType='text'; hs =''; hs+='color : rgba(255,255,255,1);'; hs+='cursor : pointer;'; hs+='height : auto;'; hs+='left : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((0px + 0px) / 2) - 50px);'; hs+='transform : translate(-50%, -50%);;'; hs+='visibility : inherit;'; hs+='width : auto;'; hs+='pointer-events:none;'; hs+='font-family: \"Encode Sans Condensed\", Roboto'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; hs =''; hs += 'box-sizing: border-box;'; hs+='width: auto;'; hs+='height: auto;'; hs+='pointer-events: none;'; hs+='background : rgba(227,9,23,0.784314);'; hs+='border : 0px solid #000000;'; hs+='border-radius : 4px;'; hs+='font-size: 14px;'; hs+='font-weight: bolder;'; hs+='text-align: center;'; hs+='white-space: pre;'; hs+='padding: 1px 2px 1px 2px;'; hs+='overflow: hidden;'; hs+="padding: .25rem .5rem;"; els.setAttribute('style',hs); me._label.ggUpdateText=function() { var params = []; params.push(String(player._(me.hotspot.description))); var hs = player._("%1", params); if (hs!=this.ggText) { this.ggText=hs; this.ggTextDiv.innerHTML=hs; if (this.ggUpdatePosition) this.ggUpdatePosition(); } } me._label.ggUpdateText(); el.appendChild(els); me._label.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 me.ggNodeId; } me._label.ggUpdatePosition=function (useTransition) { } me._label_image_hs_open.appendChild(me._label); el=me._labelimage=document.createElement('div'); els=me._labelimage__img=document.createElement('img'); els.className='ggskin ggskin_external'; hs =''; hs += 'position: absolute;-webkit-user-drag:none;pointer-events:none;;'; els.setAttribute('style', hs); els.onload=function() {me._labelimage.ggUpdatePosition();} el.appendChild(els); el.ggSubElement = els; hs =''; el.ggAltText=""; el.ggScrollbars=false; el.ggUpdateText = function() { me._labelimage.ggSubElement.setAttribute('alt', player._(me._labelimage.ggAltText)); if (me._labelimage.ggUpdateImageInternal) me._labelimage.ggUpdateImageInternal(); } el.ggUpdateImage = function() { me._labelimage.ggSubElement.style.width = '0px'; me._labelimage.ggSubElement.style.height = '0px'; me._labelimage.ggSubElement.src=''; me._labelimage.ggSubElement.src=me._labelimage.ggText; } el.ggUpdateImageInternal = function() { if (me._labelimage.ggText != player._(""+player.getHotspotPropValue(player.getCurrentNode(), me.hotspot ? me.hotspot.id : (player.hotspot ? player.hotspot.id : ''), 'labelImage_link')+"")) { me._labelimage.ggText = player._(""+player.getHotspotPropValue(player.getCurrentNode(), me.hotspot ? me.hotspot.id : (player.hotspot ? player.hotspot.id : ''), 'labelImage_link')+""); me._labelimage.ggUpdateImage() } } player.addListener('timer', function() { me._labelimage.ggUpdateImageInternal(); }); el.ggText=basePath + ""+player.getHotspotPropValue(player.getCurrentNode(), me.hotspot ? me.hotspot.id : (player.hotspot ? player.hotspot.id : ''), 'labelImage_link')+""; el.ggUpdateImage(); els['ondragstart']=function() { return false; }; player.checkLoaded.push(els); el.ggUpdateText(); el.ggId="LabelImage"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:-360,sx:0,sy:0,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_external "; el.ggType='external'; hs =''; hs+='border : 0px solid #000000;'; hs+='cursor : pointer;'; hs+='height : 20px;'; hs+='left : calc(50% - ((20px + 0px) / 2) + 0px);'; hs+='opacity : 0.01;'; hs+='position : absolute;'; hs+='top : calc(50% - ((20px + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 20px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; el.style.transform=parameterToTransform(el.ggParameter); me._labelimage.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 me.ggNodeId; } me._labelimage.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((me.elementMouseOver['label_image_hs_open'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._labelimage.ggCurrentLogicStateScaling != newLogicStateScaling) { me._labelimage.ggCurrentLogicStateScaling = newLogicStateScaling; me._labelimage.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._labelimage.ggCurrentLogicStateScaling == 0) { me._labelimage.ggParameter.sx = 3; me._labelimage.ggParameter.sy = 3; me._labelimage.style.transform=parameterToTransform(me._labelimage.ggParameter); setTimeout(function() {skin.updateSize(me._labelimage);}, 1050); } else { me._labelimage.ggParameter.sx = 0; me._labelimage.ggParameter.sy = 0; me._labelimage.style.transform=parameterToTransform(me._labelimage.ggParameter); setTimeout(function() {skin.updateSize(me._labelimage);}, 1050); } } } me._labelimage.logicBlock_scaling(); me._labelimage.logicBlock_angle = function() { var newLogicStateAngle; if ( ((me.elementMouseOver['label_image_hs_open'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateAngle = 0; } else { newLogicStateAngle = -1; } if (me._labelimage.ggCurrentLogicStateAngle != newLogicStateAngle) { me._labelimage.ggCurrentLogicStateAngle = newLogicStateAngle; me._labelimage.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._labelimage.ggCurrentLogicStateAngle == 0) { me._labelimage.ggParameter.a = 360; me._labelimage.style.transform=parameterToTransform(me._labelimage.ggParameter); } else { me._labelimage.ggParameter.a = -360; me._labelimage.style.transform=parameterToTransform(me._labelimage.ggParameter); } } } me._labelimage.logicBlock_angle(); me._labelimage.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getHotspotPropValue(player.getCurrentNode(), me.hotspot ? me.hotspot.id : (player.hotspot ? player.hotspot.id : ''), 'labelImage_link') == "")) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._labelimage.ggCurrentLogicStateVisible != newLogicStateVisible) { me._labelimage.ggCurrentLogicStateVisible = newLogicStateVisible; me._labelimage.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._labelimage.ggCurrentLogicStateVisible == 0) { me._labelimage.style.visibility="hidden"; me._labelimage.ggSubElement.src=''; me._labelimage.ggVisible=false; } else { me._labelimage.style.visibility=(Number(me._labelimage.style.opacity)>0||!me._labelimage.style.opacity)?'inherit':'hidden'; me._labelimage.ggSubElement.src=me._labelimage.ggText; me._labelimage.ggVisible=true; } } } me._labelimage.logicBlock_visible(); me._labelimage.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((me.elementMouseOver['label_image_hs_open'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._labelimage.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._labelimage.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._labelimage.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._labelimage.ggCurrentLogicStateAlpha == 0) { me._labelimage.style.visibility=me._labelimage.ggVisible?'inherit':'hidden'; me._labelimage.ggSubElement.src=me._labelimage.ggText; me._labelimage.style.opacity=1; } else { me._labelimage.style.visibility=me._labelimage.ggVisible?'inherit':'hidden'; me._labelimage.ggSubElement.src=me._labelimage.ggText; me._labelimage.style.opacity=0.01; } } } me._labelimage.logicBlock_alpha(); me._labelimage.ggUpdatePosition=function (useTransition) { var parentWidth = me._labelimage.clientWidth; var parentHeight = me._labelimage.clientHeight; var img = me._labelimage__img; var aspectRatioDiv = me._labelimage.clientWidth / me._labelimage.clientHeight; var aspectRatioImg = img.naturalWidth / img.naturalHeight; var currentWidth,currentHeight; currentWidth = parentWidth; currentHeight = parentHeight; img.style.width=parentWidth + 'px'; img.style.height=parentHeight + 'px'; if (!me._labelimage.ggScrollbars || currentWidth < me._labelimage.clientWidth) { img.style.right=''; img.style.left='50%'; img.style.marginLeft='-' + currentWidth/2 + 'px'; } else { img.style.right=''; img.style.left='0px'; img.style.marginLeft='0px'; me._labelimage.scrollLeft=currentWidth / 2 - me._labelimage.clientWidth / 2; } if (!me._labelimage.ggScrollbars || currentHeight < me._labelimage.clientHeight) { img.style.bottom=''; img.style.top='50%'; img.style.marginTop='-' + currentHeight/2 + 'px'; } else { img.style.bottom=''; img.style.top='0px'; img.style.marginTop='0px'; me._labelimage.scrollTop=currentHeight / 2 - me._labelimage.clientHeight / 2; } } me._label_image_hs_open.appendChild(me._labelimage); me._hs_image_animated_2_l.logicBlock_scaling(); me._hs_image_animated_2_l.logicBlock_visible(); me._hs_image_animated_2_l.logicBlock_alpha(); me._hs_image_animated_1_l.logicBlock_scaling(); me._hs_image_animated_1_l.logicBlock_visible(); me._hs_image_animated_1_l.logicBlock_alpha(); me._hs_image_i_l.logicBlock_scaling(); me._hs_image_i_l.logicBlock_bordercolor(); me._nodeimage_1_s.logicBlock_scaling(); me._nodeimage_1_s.logicBlock_angle(); me._nodeimage_1_s.logicBlock_visible(); me._nodeimage_1_s.logicBlock_alpha(); me._labelimage.logicBlock_scaling(); me._labelimage.logicBlock_angle(); me._labelimage.logicBlock_visible(); me._labelimage.logicBlock_alpha(); me.ggEvent_activehotspotchanged=function() { me._nodeimage_1_s.logicBlock_visible(); me._labelimage.logicBlock_visible(); }; me.ggEvent_changenode=function() { me._hs_image_animated_2_l.logicBlock_scaling(); me._hs_image_animated_2_l.logicBlock_visible(); me._hs_image_animated_2_l.logicBlock_alpha(); me._hs_image_animated_1_l.logicBlock_scaling(); me._hs_image_animated_1_l.logicBlock_visible(); me._hs_image_animated_1_l.logicBlock_alpha(); me._hs_image_i_l.logicBlock_scaling(); me._hs_image_i_l.logicBlock_bordercolor(); me._nodeimage_1_s.logicBlock_scaling(); me._nodeimage_1_s.logicBlock_angle(); me._nodeimage_1_s.logicBlock_visible(); me._nodeimage_1_s.logicBlock_alpha(); me._labelimage.logicBlock_scaling(); me._labelimage.logicBlock_angle(); me._labelimage.logicBlock_visible(); me._labelimage.logicBlock_alpha(); }; me.ggEvent_configloaded=function() { me._hs_image_animated_2_l.logicBlock_scaling(); me._hs_image_animated_2_l.logicBlock_visible(); me._hs_image_animated_2_l.logicBlock_alpha(); me._hs_image_animated_1_l.logicBlock_scaling(); me._hs_image_animated_1_l.logicBlock_visible(); me._hs_image_animated_1_l.logicBlock_alpha(); me._hs_image_i_l.logicBlock_scaling(); me._hs_image_i_l.logicBlock_bordercolor(); me._nodeimage_1_s.logicBlock_scaling(); me._nodeimage_1_s.logicBlock_angle(); me._nodeimage_1_s.logicBlock_visible(); me._nodeimage_1_s.logicBlock_alpha(); me._labelimage.logicBlock_scaling(); me._labelimage.logicBlock_angle(); me._labelimage.logicBlock_visible(); me._labelimage.logicBlock_alpha(); }; me.ggEvent_varchanged_autoExpanded=function() { me._hs_image_i_l.logicBlock_scaling(); me._hs_image_i_l.logicBlock_bordercolor(); me._nodeimage_1_s.logicBlock_scaling(); me._nodeimage_1_s.logicBlock_angle(); me._nodeimage_1_s.logicBlock_alpha(); me._labelimage.logicBlock_scaling(); me._labelimage.logicBlock_angle(); me._labelimage.logicBlock_alpha(); }; me.ggEvent_varchanged_blinken_starten=function() { me._hs_image_animated_2_l.logicBlock_visible(); me._hs_image_animated_1_l.logicBlock_visible(); }; me.ggEvent_varchanged_ht_ani=function() { me._hs_image_animated_2_l.logicBlock_scaling(); me._hs_image_animated_2_l.logicBlock_alpha(); me._hs_image_animated_1_l.logicBlock_scaling(); me._hs_image_animated_1_l.logicBlock_alpha(); }; me.ggEvent_varchanged_labelImage_link=function() { me._nodeimage_1_s.logicBlock_visible(); me._labelimage.logicBlock_visible(); }; me.hotspotTimerEvent=function() { setTimeout(function() { me.hotspotTimerEvent(); }, 10); me._label_image_hs_open.ggUpdateConditionTimer(); } me.hotspotTimerEvent(); me.__div = me._label_image_hs_open; }; function SkinHotspotClass_label_image_hs(parentScope,hotspot) { var me=this; var flag=false; var hs=''; me.parentScope=parentScope; me.hotspot=hotspot; var nodeId=String(hotspot.url); nodeId=(nodeId.charAt(0)=='{')?nodeId.substr(1, nodeId.length - 2):''; // } me.ggUserdata=skin.player.getNodeUserdata(nodeId); me.elementMouseDown={}; me.elementMouseOver={}; me.findElements=function(id,regex) { return skin.findElements(id,regex); } el=me._label_image_hs=document.createElement('div'); el.ggId="label_image_hs"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_hotspot "; el.ggType='hotspot'; hs =''; hs+='cursor : pointer;'; hs+='height : 0px;'; hs+='left : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 0px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._label_image_hs.ggIsActive=function() { return player.getCurrentNode()==this.ggElementNodeId(); } el.ggElementNodeId=function() { if (me.hotspot.url!='' && me.hotspot.url.charAt(0)=='{') { // } return me.hotspot.url.substr(1, me.hotspot.url.length - 2); } else { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } else { return player.getCurrentNode(); } } } me._label_image_hs.onclick=function (e) { player.openNext(player._(me.hotspot.url),player._(me.hotspot.target)); player.triggerEvent('hsproxyclick', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._label_image_hs.ondblclick=function (e) { player.triggerEvent('hsproxydblclick', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._label_image_hs.onmouseover=function (e) { player.setActiveHotspot(me.hotspot); me.elementMouseOver['label_image_hs']=true; me._hs_image_i_l0.logicBlock_scaling(); me._hs_image_i_l0.logicBlock_bordercolor(); me._nodeimage_1_s0.logicBlock_scaling(); me._nodeimage_1_s0.logicBlock_angle(); me._nodeimage_1_s0.logicBlock_alpha(); me._label0.logicBlock_alpha(); me._labelimage0.logicBlock_scaling(); me._labelimage0.logicBlock_angle(); me._labelimage0.logicBlock_alpha(); player.triggerEvent('hsproxyover', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._label_image_hs.onmouseout=function (e) { player.setActiveHotspot(null); me.elementMouseOver['label_image_hs']=false; me._hs_image_i_l0.logicBlock_scaling(); me._hs_image_i_l0.logicBlock_bordercolor(); me._nodeimage_1_s0.logicBlock_scaling(); me._nodeimage_1_s0.logicBlock_angle(); me._nodeimage_1_s0.logicBlock_alpha(); me._label0.logicBlock_alpha(); me._labelimage0.logicBlock_scaling(); me._labelimage0.logicBlock_angle(); me._labelimage0.logicBlock_alpha(); player.triggerEvent('hsproxyout', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._label_image_hs.ggUpdateConditionTimer=function () { if (me.elementMouseOver['label_image_hs']) { player.setActiveHotspot(me.hotspot); me.elementMouseOver['label_image_hs']=true; me._hs_image_i_l0.logicBlock_scaling(); me._hs_image_i_l0.logicBlock_bordercolor(); me._nodeimage_1_s0.logicBlock_scaling(); me._nodeimage_1_s0.logicBlock_angle(); me._nodeimage_1_s0.logicBlock_alpha(); me._label0.logicBlock_alpha(); me._labelimage0.logicBlock_scaling(); me._labelimage0.logicBlock_angle(); me._labelimage0.logicBlock_alpha(); } } me._label_image_hs.ggUpdatePosition=function (useTransition) { } el=me._hs_image_animated_2_l0=document.createElement('div'); el.ggId="hs_image_animated_2_L"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_rectangle HS_Farbe"; el.ggType='rectangle'; hs =''; hs+='background : rgba(174,139,87,0.196078);'; hs+='border : 2px solid #ae8b57;'; hs+='border-radius : 999px;'; hs+='cursor : pointer;'; hs+='height : 60px;'; hs+='left : calc(50% - ((60px + 4px) / 2) + 0px);'; hs+='opacity : 0;'; hs+='position : absolute;'; hs+='top : calc(50% - ((60px + 4px) / 2) + 0px);'; hs+='visibility : hidden;'; hs+='width : 60px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._hs_image_animated_2_l0.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 me.ggNodeId; } me._hs_image_animated_2_l0.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._hs_image_animated_2_l0.ggCurrentLogicStateScaling != newLogicStateScaling) { me._hs_image_animated_2_l0.ggCurrentLogicStateScaling = newLogicStateScaling; me._hs_image_animated_2_l0.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_2_l0.ggCurrentLogicStateScaling == 0) { me._hs_image_animated_2_l0.ggParameter.sx = 0.8; me._hs_image_animated_2_l0.ggParameter.sy = 0.8; me._hs_image_animated_2_l0.style.transform=parameterToTransform(me._hs_image_animated_2_l0.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_2_l0);}, 550); } else { me._hs_image_animated_2_l0.ggParameter.sx = 1; me._hs_image_animated_2_l0.ggParameter.sy = 1; me._hs_image_animated_2_l0.style.transform=parameterToTransform(me._hs_image_animated_2_l0.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_2_l0);}, 550); } } } me._hs_image_animated_2_l0.logicBlock_scaling(); me._hs_image_animated_2_l0.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('blinken_starten') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._hs_image_animated_2_l0.ggCurrentLogicStateVisible != newLogicStateVisible) { me._hs_image_animated_2_l0.ggCurrentLogicStateVisible = newLogicStateVisible; me._hs_image_animated_2_l0.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_2_l0.ggCurrentLogicStateVisible == 0) { me._hs_image_animated_2_l0.style.visibility=(Number(me._hs_image_animated_2_l0.style.opacity)>0||!me._hs_image_animated_2_l0.style.opacity)?'inherit':'hidden'; me._hs_image_animated_2_l0.ggVisible=true; } else { me._hs_image_animated_2_l0.style.visibility="hidden"; me._hs_image_animated_2_l0.ggVisible=false; } } } me._hs_image_animated_2_l0.logicBlock_visible(); me._hs_image_animated_2_l0.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._hs_image_animated_2_l0.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._hs_image_animated_2_l0.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._hs_image_animated_2_l0.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_2_l0.ggCurrentLogicStateAlpha == 0) { me._hs_image_animated_2_l0.style.visibility=me._hs_image_animated_2_l0.ggVisible?'inherit':'hidden'; me._hs_image_animated_2_l0.style.opacity=0.65; } else { setTimeout(function() { if (me._hs_image_animated_2_l0.style.opacity == 0.0) { me._hs_image_animated_2_l0.style.visibility="hidden"; } }, 505); me._hs_image_animated_2_l0.style.opacity=0; } } } me._hs_image_animated_2_l0.logicBlock_alpha(); me._hs_image_animated_2_l0.ggUpdatePosition=function (useTransition) { } me._label_image_hs.appendChild(me._hs_image_animated_2_l0); el=me._hs_image_animated_1_l0=document.createElement('div'); el.ggId="hs_image_animated_1_L"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:0.5,sy:0.5,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='border : 3px solid #ffffff;'; hs+='border-radius : 999px;'; hs+='cursor : pointer;'; hs+='height : 39px;'; hs+='left : calc(50% - ((39px + 6px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((39px + 6px) / 2) + 0px);'; hs+='visibility : hidden;'; hs+='width : 39px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; el.style.transform=parameterToTransform(el.ggParameter); me._hs_image_animated_1_l0.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 me.ggNodeId; } me._hs_image_animated_1_l0.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._hs_image_animated_1_l0.ggCurrentLogicStateScaling != newLogicStateScaling) { me._hs_image_animated_1_l0.ggCurrentLogicStateScaling = newLogicStateScaling; me._hs_image_animated_1_l0.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_1_l0.ggCurrentLogicStateScaling == 0) { me._hs_image_animated_1_l0.ggParameter.sx = 0.8; me._hs_image_animated_1_l0.ggParameter.sy = 0.8; me._hs_image_animated_1_l0.style.transform=parameterToTransform(me._hs_image_animated_1_l0.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_1_l0);}, 550); } else { me._hs_image_animated_1_l0.ggParameter.sx = 0.5; me._hs_image_animated_1_l0.ggParameter.sy = 0.5; me._hs_image_animated_1_l0.style.transform=parameterToTransform(me._hs_image_animated_1_l0.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_1_l0);}, 550); } } } me._hs_image_animated_1_l0.logicBlock_scaling(); me._hs_image_animated_1_l0.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('blinken_starten') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._hs_image_animated_1_l0.ggCurrentLogicStateVisible != newLogicStateVisible) { me._hs_image_animated_1_l0.ggCurrentLogicStateVisible = newLogicStateVisible; me._hs_image_animated_1_l0.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_1_l0.ggCurrentLogicStateVisible == 0) { me._hs_image_animated_1_l0.style.visibility=(Number(me._hs_image_animated_1_l0.style.opacity)>0||!me._hs_image_animated_1_l0.style.opacity)?'inherit':'hidden'; me._hs_image_animated_1_l0.ggVisible=true; } else { me._hs_image_animated_1_l0.style.visibility="hidden"; me._hs_image_animated_1_l0.ggVisible=false; } } } me._hs_image_animated_1_l0.logicBlock_visible(); me._hs_image_animated_1_l0.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._hs_image_animated_1_l0.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._hs_image_animated_1_l0.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._hs_image_animated_1_l0.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_1_l0.ggCurrentLogicStateAlpha == 0) { setTimeout(function() { if (me._hs_image_animated_1_l0.style.opacity == 0.0) { me._hs_image_animated_1_l0.style.visibility="hidden"; } }, 505); me._hs_image_animated_1_l0.style.opacity=0; } else { me._hs_image_animated_1_l0.style.visibility=me._hs_image_animated_1_l0.ggVisible?'inherit':'hidden'; me._hs_image_animated_1_l0.style.opacity=1; } } } me._hs_image_animated_1_l0.logicBlock_alpha(); me._hs_image_animated_1_l0.ggUpdatePosition=function (useTransition) { } me._label_image_hs.appendChild(me._hs_image_animated_1_l0); el=me._hs_image_i_l0=document.createElement('div'); el.ggId="hs_image_i_L"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:0.5,sy:0.5,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='border : 3px solid #ffffff;'; hs+='border-radius : 999px;'; hs+='cursor : pointer;'; hs+='height : 39px;'; hs+='left : calc(50% - ((39px + 6px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((39px + 6px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 39px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; el.style.transform=parameterToTransform(el.ggParameter); me._hs_image_i_l0.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 me.ggNodeId; } me._hs_image_i_l0.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((me.elementMouseOver['label_image_hs'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._hs_image_i_l0.ggCurrentLogicStateScaling != newLogicStateScaling) { me._hs_image_i_l0.ggCurrentLogicStateScaling = newLogicStateScaling; me._hs_image_i_l0.style.transition='transform 500ms ease 0ms, border-color 500ms ease 0ms'; if (me._hs_image_i_l0.ggCurrentLogicStateScaling == 0) { me._hs_image_i_l0.ggParameter.sx = 0.8; me._hs_image_i_l0.ggParameter.sy = 0.8; me._hs_image_i_l0.style.transform=parameterToTransform(me._hs_image_i_l0.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_i_l0);}, 550); } else { me._hs_image_i_l0.ggParameter.sx = 0.5; me._hs_image_i_l0.ggParameter.sy = 0.5; me._hs_image_i_l0.style.transform=parameterToTransform(me._hs_image_i_l0.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_i_l0);}, 550); } } } me._hs_image_i_l0.logicBlock_scaling(); me._hs_image_i_l0.logicBlock_bordercolor = function() { var newLogicStateBorderColor; if ( ((me.elementMouseOver['label_image_hs'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateBorderColor = 0; } else { newLogicStateBorderColor = -1; } if (me._hs_image_i_l0.ggCurrentLogicStateBorderColor != newLogicStateBorderColor) { me._hs_image_i_l0.ggCurrentLogicStateBorderColor = newLogicStateBorderColor; me._hs_image_i_l0.style.transition='transform 500ms ease 0ms, border-color 500ms ease 0ms'; if (me._hs_image_i_l0.ggCurrentLogicStateBorderColor == 0) { me._hs_image_i_l0.style.borderColor="rgba(174,139,87,1)"; } else { me._hs_image_i_l0.style.borderColor="rgba(255,255,255,1)"; } } } me._hs_image_i_l0.logicBlock_bordercolor(); me._hs_image_i_l0.ggUpdatePosition=function (useTransition) { } me._label_image_hs.appendChild(me._hs_image_i_l0); el=me._nodeimage_1_s0=document.createElement('div'); els=me._nodeimage_1_s0__img=document.createElement('img'); els.className='ggskin ggskin_nodeimage'; els.setAttribute('src',basePath + "images/nodeimage_1_s_" + nodeId + ".png"); el.ggNodeId=nodeId; hs =''; hs += 'position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'; els.setAttribute('style', hs); els.className='ggskin ggskin_nodeimage'; els['ondragstart']=function() { return false; }; el.appendChild(els); el.ggSubElement = els; el.ggId="NodeImage 1_s"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:-360,sx:0,sy:0,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_nodeimage "; el.ggType='nodeimage'; hs =''; hs+='cursor : pointer;'; hs+='height : 20px;'; hs+='left : calc(50% - ((20px + 0px) / 2) + 0px);'; hs+='opacity : 0;'; hs+='position : absolute;'; hs+='top : calc(50% - ((20px + 0px) / 2) + 0px);'; hs+='visibility : hidden;'; hs+='width : 20px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; el.style.transform=parameterToTransform(el.ggParameter); me._nodeimage_1_s0.ggIsActive=function() { return player.getCurrentNode()==this.ggElementNodeId(); } el.ggElementNodeId=function() { return this.ggNodeId; } me._nodeimage_1_s0.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((me.elementMouseOver['label_image_hs'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._nodeimage_1_s0.ggCurrentLogicStateScaling != newLogicStateScaling) { me._nodeimage_1_s0.ggCurrentLogicStateScaling = newLogicStateScaling; me._nodeimage_1_s0.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._nodeimage_1_s0.ggCurrentLogicStateScaling == 0) { me._nodeimage_1_s0.ggParameter.sx = 3; me._nodeimage_1_s0.ggParameter.sy = 3; me._nodeimage_1_s0.style.transform=parameterToTransform(me._nodeimage_1_s0.ggParameter); setTimeout(function() {skin.updateSize(me._nodeimage_1_s0);}, 1050); } else { me._nodeimage_1_s0.ggParameter.sx = 0; me._nodeimage_1_s0.ggParameter.sy = 0; me._nodeimage_1_s0.style.transform=parameterToTransform(me._nodeimage_1_s0.ggParameter); setTimeout(function() {skin.updateSize(me._nodeimage_1_s0);}, 1050); } } } me._nodeimage_1_s0.logicBlock_scaling(); me._nodeimage_1_s0.logicBlock_angle = function() { var newLogicStateAngle; if ( ((me.elementMouseOver['label_image_hs'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateAngle = 0; } else { newLogicStateAngle = -1; } if (me._nodeimage_1_s0.ggCurrentLogicStateAngle != newLogicStateAngle) { me._nodeimage_1_s0.ggCurrentLogicStateAngle = newLogicStateAngle; me._nodeimage_1_s0.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._nodeimage_1_s0.ggCurrentLogicStateAngle == 0) { me._nodeimage_1_s0.ggParameter.a = 360; me._nodeimage_1_s0.style.transform=parameterToTransform(me._nodeimage_1_s0.ggParameter); } else { me._nodeimage_1_s0.ggParameter.a = -360; me._nodeimage_1_s0.style.transform=parameterToTransform(me._nodeimage_1_s0.ggParameter); } } } me._nodeimage_1_s0.logicBlock_angle(); me._nodeimage_1_s0.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getHotspotPropValue(player.getCurrentNode(), me.hotspot ? me.hotspot.id : (player.hotspot ? player.hotspot.id : ''), 'labelImage_link') == "")) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._nodeimage_1_s0.ggCurrentLogicStateVisible != newLogicStateVisible) { me._nodeimage_1_s0.ggCurrentLogicStateVisible = newLogicStateVisible; me._nodeimage_1_s0.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._nodeimage_1_s0.ggCurrentLogicStateVisible == 0) { me._nodeimage_1_s0.style.visibility=(Number(me._nodeimage_1_s0.style.opacity)>0||!me._nodeimage_1_s0.style.opacity)?'inherit':'hidden'; me._nodeimage_1_s0.ggVisible=true; } else { me._nodeimage_1_s0.style.visibility="hidden"; me._nodeimage_1_s0.ggVisible=false; } } } me._nodeimage_1_s0.logicBlock_visible(); me._nodeimage_1_s0.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((me.elementMouseOver['label_image_hs'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._nodeimage_1_s0.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._nodeimage_1_s0.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._nodeimage_1_s0.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._nodeimage_1_s0.ggCurrentLogicStateAlpha == 0) { me._nodeimage_1_s0.style.visibility=me._nodeimage_1_s0.ggVisible?'inherit':'hidden'; me._nodeimage_1_s0.style.opacity=1; } else { setTimeout(function() { if (me._nodeimage_1_s0.style.opacity == 0.0) { me._nodeimage_1_s0.style.visibility="hidden"; } }, 405); me._nodeimage_1_s0.style.opacity=0; } } } me._nodeimage_1_s0.logicBlock_alpha(); me._nodeimage_1_s0.ggUpdatePosition=function (useTransition) { } me._label_image_hs.appendChild(me._nodeimage_1_s0); el=me._label0=document.createElement('div'); els=me._label0__text=document.createElement('div'); el.className='ggskin ggskin_textdiv'; el.ggTextDiv=els; el.ggId="label"; el.ggDx=0; el.ggDy=-50; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'translate(-50%, -50%) ' }; el.ggVisible=true; el.className="ggskin ggskin_text "; el.ggType='text'; hs =''; hs+='color : #000000;'; hs+='cursor : pointer;'; hs+='height : auto;'; hs+='left : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='opacity : 0.001;'; hs+='position : absolute;'; hs+='top : calc(50% - ((0px + 0px) / 2) - 50px);'; hs+='transform : translate(-50%, -50%);;'; hs+='visibility : inherit;'; hs+='width : auto;'; hs+='pointer-events:none;'; hs+='font-family: Raleway, Roboto'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; hs =''; hs += 'box-sizing: border-box;'; hs+='width: auto;'; hs+='height: auto;'; hs+='pointer-events: none;'; hs+='background : #ffffff;'; hs+='border : 0px solid #000000;'; hs+='border-radius : 4px;'; hs+='font-size: 14px;'; hs+='font-weight: bolder;'; hs+='text-align: center;'; hs+='white-space: pre;'; hs+='padding: 1px 2px 1px 2px;'; hs+='overflow: hidden;'; hs+="padding: .25rem .5rem;"; els.setAttribute('style',hs); me._label0.ggUpdateText=function() { var params = []; params.push(String(player._(me.hotspot.description))); var hs = player._("%1", params); if (hs!=this.ggText) { this.ggText=hs; this.ggTextDiv.innerHTML=hs; if (this.ggUpdatePosition) this.ggUpdatePosition(); } } me._label0.ggUpdateText(); el.appendChild(els); me._label0.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 me.ggNodeId; } me._label0.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((me.elementMouseOver['label_image_hs'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._label0.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._label0.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._label0.style.transition='opacity 300ms ease 0ms'; if (me._label0.ggCurrentLogicStateAlpha == 0) { me._label0.style.visibility=me._label0.ggVisible?'inherit':'hidden'; me._label0.style.opacity=0.85; } else { me._label0.style.visibility=me._label0.ggVisible?'inherit':'hidden'; me._label0.style.opacity=0.001; } } } me._label0.logicBlock_alpha(); me._label0.ggUpdatePosition=function (useTransition) { } me._label_image_hs.appendChild(me._label0); el=me._labelimage0=document.createElement('div'); els=me._labelimage0__img=document.createElement('img'); els.className='ggskin ggskin_external'; hs =''; hs += 'position: absolute;-webkit-user-drag:none;pointer-events:none;;'; els.setAttribute('style', hs); els.onload=function() {me._labelimage0.ggUpdatePosition();} el.appendChild(els); el.ggSubElement = els; hs =''; el.ggAltText=""; el.ggScrollbars=false; el.ggUpdateText = function() { me._labelimage0.ggSubElement.setAttribute('alt', player._(me._labelimage0.ggAltText)); if (me._labelimage0.ggUpdateImageInternal) me._labelimage0.ggUpdateImageInternal(); } el.ggUpdateImage = function() { me._labelimage0.ggSubElement.style.width = '0px'; me._labelimage0.ggSubElement.style.height = '0px'; me._labelimage0.ggSubElement.src=''; me._labelimage0.ggSubElement.src=me._labelimage0.ggText; } el.ggUpdateImageInternal = function() { if (me._labelimage0.ggText != player._(""+player.getHotspotPropValue(player.getCurrentNode(), me.hotspot ? me.hotspot.id : (player.hotspot ? player.hotspot.id : ''), 'labelImage_link')+"")) { me._labelimage0.ggText = player._(""+player.getHotspotPropValue(player.getCurrentNode(), me.hotspot ? me.hotspot.id : (player.hotspot ? player.hotspot.id : ''), 'labelImage_link')+""); me._labelimage0.ggUpdateImage() } } player.addListener('timer', function() { me._labelimage0.ggUpdateImageInternal(); }); el.ggText=basePath + ""+player.getHotspotPropValue(player.getCurrentNode(), me.hotspot ? me.hotspot.id : (player.hotspot ? player.hotspot.id : ''), 'labelImage_link')+""; el.ggUpdateImage(); els['ondragstart']=function() { return false; }; player.checkLoaded.push(els); el.ggUpdateText(); el.ggId="LabelImage"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:-360,sx:0,sy:0,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_external "; el.ggType='external'; hs =''; hs+='border : 0px solid #000000;'; hs+='cursor : pointer;'; hs+='height : 20px;'; hs+='left : calc(50% - ((20px + 0px) / 2) + 0px);'; hs+='opacity : 0.01;'; hs+='position : absolute;'; hs+='top : calc(50% - ((20px + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 20px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; el.style.transform=parameterToTransform(el.ggParameter); me._labelimage0.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 me.ggNodeId; } me._labelimage0.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((me.elementMouseOver['label_image_hs'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._labelimage0.ggCurrentLogicStateScaling != newLogicStateScaling) { me._labelimage0.ggCurrentLogicStateScaling = newLogicStateScaling; me._labelimage0.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._labelimage0.ggCurrentLogicStateScaling == 0) { me._labelimage0.ggParameter.sx = 3; me._labelimage0.ggParameter.sy = 3; me._labelimage0.style.transform=parameterToTransform(me._labelimage0.ggParameter); setTimeout(function() {skin.updateSize(me._labelimage0);}, 1050); } else { me._labelimage0.ggParameter.sx = 0; me._labelimage0.ggParameter.sy = 0; me._labelimage0.style.transform=parameterToTransform(me._labelimage0.ggParameter); setTimeout(function() {skin.updateSize(me._labelimage0);}, 1050); } } } me._labelimage0.logicBlock_scaling(); me._labelimage0.logicBlock_angle = function() { var newLogicStateAngle; if ( ((me.elementMouseOver['label_image_hs'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateAngle = 0; } else { newLogicStateAngle = -1; } if (me._labelimage0.ggCurrentLogicStateAngle != newLogicStateAngle) { me._labelimage0.ggCurrentLogicStateAngle = newLogicStateAngle; me._labelimage0.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._labelimage0.ggCurrentLogicStateAngle == 0) { me._labelimage0.ggParameter.a = 360; me._labelimage0.style.transform=parameterToTransform(me._labelimage0.ggParameter); } else { me._labelimage0.ggParameter.a = -360; me._labelimage0.style.transform=parameterToTransform(me._labelimage0.ggParameter); } } } me._labelimage0.logicBlock_angle(); me._labelimage0.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getHotspotPropValue(player.getCurrentNode(), me.hotspot ? me.hotspot.id : (player.hotspot ? player.hotspot.id : ''), 'labelImage_link') == "")) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._labelimage0.ggCurrentLogicStateVisible != newLogicStateVisible) { me._labelimage0.ggCurrentLogicStateVisible = newLogicStateVisible; me._labelimage0.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._labelimage0.ggCurrentLogicStateVisible == 0) { me._labelimage0.style.visibility="hidden"; me._labelimage0.ggSubElement.src=''; me._labelimage0.ggVisible=false; } else { me._labelimage0.style.visibility=(Number(me._labelimage0.style.opacity)>0||!me._labelimage0.style.opacity)?'inherit':'hidden'; me._labelimage0.ggSubElement.src=me._labelimage0.ggText; me._labelimage0.ggVisible=true; } } } me._labelimage0.logicBlock_visible(); me._labelimage0.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((me.elementMouseOver['label_image_hs'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._labelimage0.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._labelimage0.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._labelimage0.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._labelimage0.ggCurrentLogicStateAlpha == 0) { me._labelimage0.style.visibility=me._labelimage0.ggVisible?'inherit':'hidden'; me._labelimage0.ggSubElement.src=me._labelimage0.ggText; me._labelimage0.style.opacity=1; } else { me._labelimage0.style.visibility=me._labelimage0.ggVisible?'inherit':'hidden'; me._labelimage0.ggSubElement.src=me._labelimage0.ggText; me._labelimage0.style.opacity=0.01; } } } me._labelimage0.logicBlock_alpha(); me._labelimage0.ggUpdatePosition=function (useTransition) { var parentWidth = me._labelimage0.clientWidth; var parentHeight = me._labelimage0.clientHeight; var img = me._labelimage0__img; var aspectRatioDiv = me._labelimage0.clientWidth / me._labelimage0.clientHeight; var aspectRatioImg = img.naturalWidth / img.naturalHeight; var currentWidth,currentHeight; currentWidth = parentWidth; currentHeight = parentHeight; img.style.width=parentWidth + 'px'; img.style.height=parentHeight + 'px'; if (!me._labelimage0.ggScrollbars || currentWidth < me._labelimage0.clientWidth) { img.style.right=''; img.style.left='50%'; img.style.marginLeft='-' + currentWidth/2 + 'px'; } else { img.style.right=''; img.style.left='0px'; img.style.marginLeft='0px'; me._labelimage0.scrollLeft=currentWidth / 2 - me._labelimage0.clientWidth / 2; } if (!me._labelimage0.ggScrollbars || currentHeight < me._labelimage0.clientHeight) { img.style.bottom=''; img.style.top='50%'; img.style.marginTop='-' + currentHeight/2 + 'px'; } else { img.style.bottom=''; img.style.top='0px'; img.style.marginTop='0px'; me._labelimage0.scrollTop=currentHeight / 2 - me._labelimage0.clientHeight / 2; } } me._label_image_hs.appendChild(me._labelimage0); me._hs_image_animated_2_l0.logicBlock_scaling(); me._hs_image_animated_2_l0.logicBlock_visible(); me._hs_image_animated_2_l0.logicBlock_alpha(); me._hs_image_animated_1_l0.logicBlock_scaling(); me._hs_image_animated_1_l0.logicBlock_visible(); me._hs_image_animated_1_l0.logicBlock_alpha(); me._hs_image_i_l0.logicBlock_scaling(); me._hs_image_i_l0.logicBlock_bordercolor(); me._nodeimage_1_s0.logicBlock_scaling(); me._nodeimage_1_s0.logicBlock_angle(); me._nodeimage_1_s0.logicBlock_visible(); me._nodeimage_1_s0.logicBlock_alpha(); me._label0.logicBlock_alpha(); me._labelimage0.logicBlock_scaling(); me._labelimage0.logicBlock_angle(); me._labelimage0.logicBlock_visible(); me._labelimage0.logicBlock_alpha(); me.ggEvent_activehotspotchanged=function() { me._nodeimage_1_s0.logicBlock_visible(); me._labelimage0.logicBlock_visible(); }; me.ggEvent_changenode=function() { me._hs_image_animated_2_l0.logicBlock_scaling(); me._hs_image_animated_2_l0.logicBlock_visible(); me._hs_image_animated_2_l0.logicBlock_alpha(); me._hs_image_animated_1_l0.logicBlock_scaling(); me._hs_image_animated_1_l0.logicBlock_visible(); me._hs_image_animated_1_l0.logicBlock_alpha(); me._hs_image_i_l0.logicBlock_scaling(); me._hs_image_i_l0.logicBlock_bordercolor(); me._nodeimage_1_s0.logicBlock_scaling(); me._nodeimage_1_s0.logicBlock_angle(); me._nodeimage_1_s0.logicBlock_visible(); me._nodeimage_1_s0.logicBlock_alpha(); me._label0.logicBlock_alpha(); me._labelimage0.logicBlock_scaling(); me._labelimage0.logicBlock_angle(); me._labelimage0.logicBlock_visible(); me._labelimage0.logicBlock_alpha(); }; me.ggEvent_configloaded=function() { me._hs_image_animated_2_l0.logicBlock_scaling(); me._hs_image_animated_2_l0.logicBlock_visible(); me._hs_image_animated_2_l0.logicBlock_alpha(); me._hs_image_animated_1_l0.logicBlock_scaling(); me._hs_image_animated_1_l0.logicBlock_visible(); me._hs_image_animated_1_l0.logicBlock_alpha(); me._hs_image_i_l0.logicBlock_scaling(); me._hs_image_i_l0.logicBlock_bordercolor(); me._nodeimage_1_s0.logicBlock_scaling(); me._nodeimage_1_s0.logicBlock_angle(); me._nodeimage_1_s0.logicBlock_visible(); me._nodeimage_1_s0.logicBlock_alpha(); me._label0.logicBlock_alpha(); me._labelimage0.logicBlock_scaling(); me._labelimage0.logicBlock_angle(); me._labelimage0.logicBlock_visible(); me._labelimage0.logicBlock_alpha(); }; me.ggEvent_varchanged_autoExpanded=function() { me._hs_image_i_l0.logicBlock_scaling(); me._hs_image_i_l0.logicBlock_bordercolor(); me._nodeimage_1_s0.logicBlock_scaling(); me._nodeimage_1_s0.logicBlock_angle(); me._nodeimage_1_s0.logicBlock_alpha(); me._label0.logicBlock_alpha(); me._labelimage0.logicBlock_scaling(); me._labelimage0.logicBlock_angle(); me._labelimage0.logicBlock_alpha(); }; me.ggEvent_varchanged_blinken_starten=function() { me._hs_image_animated_2_l0.logicBlock_visible(); me._hs_image_animated_1_l0.logicBlock_visible(); }; me.ggEvent_varchanged_ht_ani=function() { me._hs_image_animated_2_l0.logicBlock_scaling(); me._hs_image_animated_2_l0.logicBlock_alpha(); me._hs_image_animated_1_l0.logicBlock_scaling(); me._hs_image_animated_1_l0.logicBlock_alpha(); }; me.ggEvent_varchanged_labelImage_link=function() { me._nodeimage_1_s0.logicBlock_visible(); me._labelimage0.logicBlock_visible(); }; me.hotspotTimerEvent=function() { setTimeout(function() { me.hotspotTimerEvent(); }, 10); me._label_image_hs.ggUpdateConditionTimer(); } me.hotspotTimerEvent(); me.__div = me._label_image_hs; }; function SkinHotspotClass_label_hs(parentScope,hotspot) { var me=this; var flag=false; var hs=''; me.parentScope=parentScope; me.hotspot=hotspot; var nodeId=String(hotspot.url); nodeId=(nodeId.charAt(0)=='{')?nodeId.substr(1, nodeId.length - 2):''; // } me.ggUserdata=skin.player.getNodeUserdata(nodeId); me.elementMouseDown={}; me.elementMouseOver={}; me.findElements=function(id,regex) { return skin.findElements(id,regex); } el=me._label_hs=document.createElement('div'); el.ggId="label_hs"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_hotspot "; el.ggType='hotspot'; hs =''; hs+='cursor : pointer;'; hs+='height : 0px;'; hs+='left : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 0px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._label_hs.ggIsActive=function() { return player.getCurrentNode()==this.ggElementNodeId(); } el.ggElementNodeId=function() { if (me.hotspot.url!='' && me.hotspot.url.charAt(0)=='{') { // } return me.hotspot.url.substr(1, me.hotspot.url.length - 2); } else { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } else { return player.getCurrentNode(); } } } me._label_hs.onclick=function (e) { player.openNext(player._(me.hotspot.url),player._(me.hotspot.target)); player.triggerEvent('hsproxyclick', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._label_hs.ondblclick=function (e) { player.triggerEvent('hsproxydblclick', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._label_hs.onmouseover=function (e) { player.setActiveHotspot(me.hotspot); me.elementMouseOver['label_hs']=true; me._hs_image_i_l1.logicBlock_scaling(); me._hs_image_i_l1.logicBlock_bordercolor(); me._nodeimage_1_l.logicBlock_scaling(); me._nodeimage_1_l.logicBlock_angle(); me._nodeimage_1_l.logicBlock_alpha(); me._label1.logicBlock_alpha(); player.triggerEvent('hsproxyover', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._label_hs.onmouseout=function (e) { player.setActiveHotspot(null); me.elementMouseOver['label_hs']=false; me._hs_image_i_l1.logicBlock_scaling(); me._hs_image_i_l1.logicBlock_bordercolor(); me._nodeimage_1_l.logicBlock_scaling(); me._nodeimage_1_l.logicBlock_angle(); me._nodeimage_1_l.logicBlock_alpha(); me._label1.logicBlock_alpha(); player.triggerEvent('hsproxyout', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._label_hs.ggUpdateConditionTimer=function () { if (me.elementMouseOver['label_hs']) { player.setActiveHotspot(me.hotspot); me.elementMouseOver['label_hs']=true; me._hs_image_i_l1.logicBlock_scaling(); me._hs_image_i_l1.logicBlock_bordercolor(); me._nodeimage_1_l.logicBlock_scaling(); me._nodeimage_1_l.logicBlock_angle(); me._nodeimage_1_l.logicBlock_alpha(); me._label1.logicBlock_alpha(); } } me._label_hs.ggUpdatePosition=function (useTransition) { } el=me._hs_image_animated_2_l1=document.createElement('div'); el.ggId="hs_image_animated_2_L"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_rectangle HS_Farbe"; el.ggType='rectangle'; hs =''; hs+='background : rgba(174,139,87,0.196078);'; hs+='border : 2px solid #ae8b57;'; hs+='border-radius : 999px;'; hs+='cursor : pointer;'; hs+='height : 60px;'; hs+='left : calc(50% - ((60px + 4px) / 2) + 0px);'; hs+='opacity : 0;'; hs+='position : absolute;'; hs+='top : calc(50% - ((60px + 4px) / 2) + 0px);'; hs+='visibility : hidden;'; hs+='width : 60px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._hs_image_animated_2_l1.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 me.ggNodeId; } me._hs_image_animated_2_l1.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((player.getVariableValue('ht_ani') == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._hs_image_animated_2_l1.ggCurrentLogicStateScaling != newLogicStateScaling) { me._hs_image_animated_2_l1.ggCurrentLogicStateScaling = newLogicStateScaling; me._hs_image_animated_2_l1.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_2_l1.ggCurrentLogicStateScaling == 0) { me._hs_image_animated_2_l1.ggParameter.sx = 0.8; me._hs_image_animated_2_l1.ggParameter.sy = 0.8; me._hs_image_animated_2_l1.style.transform=parameterToTransform(me._hs_image_animated_2_l1.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_2_l1);}, 550); } else { me._hs_image_animated_2_l1.ggParameter.sx = 1; me._hs_image_animated_2_l1.ggParameter.sy = 1; me._hs_image_animated_2_l1.style.transform=parameterToTransform(me._hs_image_animated_2_l1.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_2_l1);}, 550); } } } me._hs_image_animated_2_l1.logicBlock_scaling(); me._hs_image_animated_2_l1.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('blinken_starten') == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._hs_image_animated_2_l1.ggCurrentLogicStateVisible != newLogicStateVisible) { me._hs_image_animated_2_l1.ggCurrentLogicStateVisible = newLogicStateVisible; me._hs_image_animated_2_l1.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_2_l1.ggCurrentLogicStateVisible == 0) { me._hs_image_animated_2_l1.style.visibility=(Number(me._hs_image_animated_2_l1.style.opacity)>0||!me._hs_image_animated_2_l1.style.opacity)?'inherit':'hidden'; me._hs_image_animated_2_l1.ggVisible=true; } else { me._hs_image_animated_2_l1.style.visibility="hidden"; me._hs_image_animated_2_l1.ggVisible=false; } } } me._hs_image_animated_2_l1.logicBlock_visible(); me._hs_image_animated_2_l1.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._hs_image_animated_2_l1.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._hs_image_animated_2_l1.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._hs_image_animated_2_l1.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_2_l1.ggCurrentLogicStateAlpha == 0) { me._hs_image_animated_2_l1.style.visibility=me._hs_image_animated_2_l1.ggVisible?'inherit':'hidden'; me._hs_image_animated_2_l1.style.opacity=0.65; } else { setTimeout(function() { if (me._hs_image_animated_2_l1.style.opacity == 0.0) { me._hs_image_animated_2_l1.style.visibility="hidden"; } }, 505); me._hs_image_animated_2_l1.style.opacity=0; } } } me._hs_image_animated_2_l1.logicBlock_alpha(); me._hs_image_animated_2_l1.ggUpdatePosition=function (useTransition) { } me._label_hs.appendChild(me._hs_image_animated_2_l1); el=me._hs_image_animated_1_l1=document.createElement('div'); el.ggId="hs_image_animated_1_L"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:0.5,sy:0.5,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='border : 3px solid #ffffff;'; hs+='border-radius : 999px;'; hs+='cursor : pointer;'; hs+='height : 39px;'; hs+='left : calc(50% - ((39px + 6px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((39px + 6px) / 2) + 0px);'; hs+='visibility : hidden;'; hs+='width : 39px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; el.style.transform=parameterToTransform(el.ggParameter); me._hs_image_animated_1_l1.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 me.ggNodeId; } me._hs_image_animated_1_l1.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((player.getVariableValue('ht_ani') == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._hs_image_animated_1_l1.ggCurrentLogicStateScaling != newLogicStateScaling) { me._hs_image_animated_1_l1.ggCurrentLogicStateScaling = newLogicStateScaling; me._hs_image_animated_1_l1.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_1_l1.ggCurrentLogicStateScaling == 0) { me._hs_image_animated_1_l1.ggParameter.sx = 0.8; me._hs_image_animated_1_l1.ggParameter.sy = 0.8; me._hs_image_animated_1_l1.style.transform=parameterToTransform(me._hs_image_animated_1_l1.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_1_l1);}, 550); } else { me._hs_image_animated_1_l1.ggParameter.sx = 0.5; me._hs_image_animated_1_l1.ggParameter.sy = 0.5; me._hs_image_animated_1_l1.style.transform=parameterToTransform(me._hs_image_animated_1_l1.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_1_l1);}, 550); } } } me._hs_image_animated_1_l1.logicBlock_scaling(); me._hs_image_animated_1_l1.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('blinken_starten') == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._hs_image_animated_1_l1.ggCurrentLogicStateVisible != newLogicStateVisible) { me._hs_image_animated_1_l1.ggCurrentLogicStateVisible = newLogicStateVisible; me._hs_image_animated_1_l1.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_1_l1.ggCurrentLogicStateVisible == 0) { me._hs_image_animated_1_l1.style.visibility=(Number(me._hs_image_animated_1_l1.style.opacity)>0||!me._hs_image_animated_1_l1.style.opacity)?'inherit':'hidden'; me._hs_image_animated_1_l1.ggVisible=true; } else { me._hs_image_animated_1_l1.style.visibility="hidden"; me._hs_image_animated_1_l1.ggVisible=false; } } } me._hs_image_animated_1_l1.logicBlock_visible(); me._hs_image_animated_1_l1.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._hs_image_animated_1_l1.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._hs_image_animated_1_l1.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._hs_image_animated_1_l1.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_1_l1.ggCurrentLogicStateAlpha == 0) { setTimeout(function() { if (me._hs_image_animated_1_l1.style.opacity == 0.0) { me._hs_image_animated_1_l1.style.visibility="hidden"; } }, 505); me._hs_image_animated_1_l1.style.opacity=0; } else { me._hs_image_animated_1_l1.style.visibility=me._hs_image_animated_1_l1.ggVisible?'inherit':'hidden'; me._hs_image_animated_1_l1.style.opacity=1; } } } me._hs_image_animated_1_l1.logicBlock_alpha(); me._hs_image_animated_1_l1.ggUpdatePosition=function (useTransition) { } me._label_hs.appendChild(me._hs_image_animated_1_l1); el=me._hs_image_i_l1=document.createElement('div'); el.ggId="hs_image_i_L"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:0.5,sy:0.5,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='border : 3px solid #ffffff;'; hs+='border-radius : 999px;'; hs+='cursor : pointer;'; hs+='height : 39px;'; hs+='left : calc(50% - ((39px + 6px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((39px + 6px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 39px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; el.style.transform=parameterToTransform(el.ggParameter); me._hs_image_i_l1.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 me.ggNodeId; } me._hs_image_i_l1.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((me.elementMouseOver['label_hs'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._hs_image_i_l1.ggCurrentLogicStateScaling != newLogicStateScaling) { me._hs_image_i_l1.ggCurrentLogicStateScaling = newLogicStateScaling; me._hs_image_i_l1.style.transition='transform 500ms ease 0ms, border-color 500ms ease 0ms'; if (me._hs_image_i_l1.ggCurrentLogicStateScaling == 0) { me._hs_image_i_l1.ggParameter.sx = 0.8; me._hs_image_i_l1.ggParameter.sy = 0.8; me._hs_image_i_l1.style.transform=parameterToTransform(me._hs_image_i_l1.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_i_l1);}, 550); } else { me._hs_image_i_l1.ggParameter.sx = 0.5; me._hs_image_i_l1.ggParameter.sy = 0.5; me._hs_image_i_l1.style.transform=parameterToTransform(me._hs_image_i_l1.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_i_l1);}, 550); } } } me._hs_image_i_l1.logicBlock_scaling(); me._hs_image_i_l1.logicBlock_bordercolor = function() { var newLogicStateBorderColor; if ( ((me.elementMouseOver['label_hs'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateBorderColor = 0; } else { newLogicStateBorderColor = -1; } if (me._hs_image_i_l1.ggCurrentLogicStateBorderColor != newLogicStateBorderColor) { me._hs_image_i_l1.ggCurrentLogicStateBorderColor = newLogicStateBorderColor; me._hs_image_i_l1.style.transition='transform 500ms ease 0ms, border-color 500ms ease 0ms'; if (me._hs_image_i_l1.ggCurrentLogicStateBorderColor == 0) { me._hs_image_i_l1.style.borderColor="rgba(174,139,87,1)"; } else { me._hs_image_i_l1.style.borderColor="rgba(255,255,255,1)"; } } } me._hs_image_i_l1.logicBlock_bordercolor(); me._hs_image_i_l1.ggUpdatePosition=function (useTransition) { } me._label_hs.appendChild(me._hs_image_i_l1); el=me._nodeimage_1_l=document.createElement('div'); els=me._nodeimage_1_l__img=document.createElement('img'); els.className='ggskin ggskin_nodeimage'; els.setAttribute('src',basePath + "images/nodeimage_1_l_" + nodeId + ".png"); el.ggNodeId=nodeId; hs =''; hs += 'position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'; els.setAttribute('style', hs); els.className='ggskin ggskin_nodeimage'; els['ondragstart']=function() { return false; }; el.appendChild(els); el.ggSubElement = els; el.ggId="NodeImage 1_L"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:-360,sx:0,sy:0,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_nodeimage "; el.ggType='nodeimage'; hs =''; hs+='cursor : pointer;'; hs+='height : 42px;'; hs+='left : calc(50% - ((42px + 0px) / 2) + 0px);'; hs+='opacity : 0;'; hs+='position : absolute;'; hs+='top : calc(50% - ((42px + 0px) / 2) + 0px);'; hs+='visibility : hidden;'; hs+='width : 42px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; el.style.transform=parameterToTransform(el.ggParameter); me._nodeimage_1_l.ggIsActive=function() { return player.getCurrentNode()==this.ggElementNodeId(); } el.ggElementNodeId=function() { return this.ggNodeId; } me._nodeimage_1_l.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((me.elementMouseOver['label_hs'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._nodeimage_1_l.ggCurrentLogicStateScaling != newLogicStateScaling) { me._nodeimage_1_l.ggCurrentLogicStateScaling = newLogicStateScaling; me._nodeimage_1_l.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._nodeimage_1_l.ggCurrentLogicStateScaling == 0) { me._nodeimage_1_l.ggParameter.sx = 3; me._nodeimage_1_l.ggParameter.sy = 3; me._nodeimage_1_l.style.transform=parameterToTransform(me._nodeimage_1_l.ggParameter); setTimeout(function() {skin.updateSize(me._nodeimage_1_l);}, 1050); } else { me._nodeimage_1_l.ggParameter.sx = 0; me._nodeimage_1_l.ggParameter.sy = 0; me._nodeimage_1_l.style.transform=parameterToTransform(me._nodeimage_1_l.ggParameter); setTimeout(function() {skin.updateSize(me._nodeimage_1_l);}, 1050); } } } me._nodeimage_1_l.logicBlock_scaling(); me._nodeimage_1_l.logicBlock_angle = function() { var newLogicStateAngle; if ( ((me.elementMouseOver['label_hs'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateAngle = 0; } else { newLogicStateAngle = -1; } if (me._nodeimage_1_l.ggCurrentLogicStateAngle != newLogicStateAngle) { me._nodeimage_1_l.ggCurrentLogicStateAngle = newLogicStateAngle; me._nodeimage_1_l.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._nodeimage_1_l.ggCurrentLogicStateAngle == 0) { me._nodeimage_1_l.ggParameter.a = 360; me._nodeimage_1_l.style.transform=parameterToTransform(me._nodeimage_1_l.ggParameter); } else { me._nodeimage_1_l.ggParameter.a = -360; me._nodeimage_1_l.style.transform=parameterToTransform(me._nodeimage_1_l.ggParameter); } } } me._nodeimage_1_l.logicBlock_angle(); me._nodeimage_1_l.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((me.elementMouseOver['label_hs'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._nodeimage_1_l.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._nodeimage_1_l.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._nodeimage_1_l.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._nodeimage_1_l.ggCurrentLogicStateAlpha == 0) { me._nodeimage_1_l.style.visibility=me._nodeimage_1_l.ggVisible?'inherit':'hidden'; me._nodeimage_1_l.style.opacity=1; } else { setTimeout(function() { if (me._nodeimage_1_l.style.opacity == 0.0) { me._nodeimage_1_l.style.visibility="hidden"; } }, 405); me._nodeimage_1_l.style.opacity=0; } } } me._nodeimage_1_l.logicBlock_alpha(); me._nodeimage_1_l.ggUpdatePosition=function (useTransition) { } me._label_hs.appendChild(me._nodeimage_1_l); el=me._label1=document.createElement('div'); els=me._label1__text=document.createElement('div'); el.className='ggskin ggskin_textdiv'; el.ggTextDiv=els; el.ggId="label"; el.ggDx=0; el.ggDy=-50; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'translate(-50%, -50%) ' }; el.ggVisible=true; el.className="ggskin ggskin_text "; el.ggType='text'; hs =''; hs+='color : #000000;'; hs+='cursor : pointer;'; hs+='height : auto;'; hs+='left : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='opacity : 0.001;'; hs+='position : absolute;'; hs+='top : calc(50% - ((0px + 0px) / 2) - 50px);'; hs+='transform : translate(-50%, -50%);;'; hs+='visibility : inherit;'; hs+='width : auto;'; hs+='pointer-events:none;'; hs+='font-family: Raleway, Roboto'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; hs =''; hs += 'box-sizing: border-box;'; hs+='width: auto;'; hs+='height: auto;'; hs+='pointer-events: none;'; hs+='background : #ffffff;'; hs+='border : 0px solid #000000;'; hs+='border-radius : 4px;'; hs+='font-size: 14px;'; hs+='font-weight: bolder;'; hs+='text-align: center;'; hs+='white-space: pre;'; hs+='padding: 1px 2px 1px 2px;'; hs+='overflow: hidden;'; els.setAttribute('style',hs); me._label1.ggUpdateText=function() { var params = []; params.push(String(player._(me.hotspot.description))); var hs = player._("%1", params); if (hs!=this.ggText) { this.ggText=hs; this.ggTextDiv.innerHTML=hs; if (this.ggUpdatePosition) this.ggUpdatePosition(); } } me._label1.ggUpdateText(); el.appendChild(els); me._label1.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 me.ggNodeId; } me._label1.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((me.elementMouseOver['label_hs'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._label1.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._label1.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._label1.style.transition='opacity 300ms ease 0ms'; if (me._label1.ggCurrentLogicStateAlpha == 0) { me._label1.style.visibility=me._label1.ggVisible?'inherit':'hidden'; me._label1.style.opacity=1; } else { me._label1.style.visibility=me._label1.ggVisible?'inherit':'hidden'; me._label1.style.opacity=0.001; } } } me._label1.logicBlock_alpha(); me._label1.ggUpdatePosition=function (useTransition) { } me._label_hs.appendChild(me._label1); me._hs_image_animated_2_l1.logicBlock_scaling(); me._hs_image_animated_2_l1.logicBlock_visible(); me._hs_image_animated_2_l1.logicBlock_alpha(); me._hs_image_animated_1_l1.logicBlock_scaling(); me._hs_image_animated_1_l1.logicBlock_visible(); me._hs_image_animated_1_l1.logicBlock_alpha(); me._hs_image_i_l1.logicBlock_scaling(); me._hs_image_i_l1.logicBlock_bordercolor(); me._nodeimage_1_l.logicBlock_scaling(); me._nodeimage_1_l.logicBlock_angle(); me._nodeimage_1_l.logicBlock_alpha(); me._label1.logicBlock_alpha(); me.ggEvent_changenode=function() { me._hs_image_animated_2_l1.logicBlock_scaling(); me._hs_image_animated_2_l1.logicBlock_visible(); me._hs_image_animated_2_l1.logicBlock_alpha(); me._hs_image_animated_1_l1.logicBlock_scaling(); me._hs_image_animated_1_l1.logicBlock_visible(); me._hs_image_animated_1_l1.logicBlock_alpha(); me._hs_image_i_l1.logicBlock_scaling(); me._hs_image_i_l1.logicBlock_bordercolor(); me._nodeimage_1_l.logicBlock_scaling(); me._nodeimage_1_l.logicBlock_angle(); me._nodeimage_1_l.logicBlock_alpha(); me._label1.logicBlock_alpha(); }; me.ggEvent_configloaded=function() { me._hs_image_animated_2_l1.logicBlock_scaling(); me._hs_image_animated_2_l1.logicBlock_visible(); me._hs_image_animated_2_l1.logicBlock_alpha(); me._hs_image_animated_1_l1.logicBlock_scaling(); me._hs_image_animated_1_l1.logicBlock_visible(); me._hs_image_animated_1_l1.logicBlock_alpha(); me._hs_image_i_l1.logicBlock_scaling(); me._hs_image_i_l1.logicBlock_bordercolor(); me._nodeimage_1_l.logicBlock_scaling(); me._nodeimage_1_l.logicBlock_angle(); me._nodeimage_1_l.logicBlock_alpha(); me._label1.logicBlock_alpha(); }; me.ggEvent_varchanged_autoExpanded=function() { me._hs_image_animated_2_l1.logicBlock_scaling(); me._hs_image_animated_2_l1.logicBlock_visible(); me._hs_image_animated_1_l1.logicBlock_scaling(); me._hs_image_animated_1_l1.logicBlock_visible(); me._hs_image_i_l1.logicBlock_scaling(); me._hs_image_i_l1.logicBlock_bordercolor(); me._nodeimage_1_l.logicBlock_scaling(); me._nodeimage_1_l.logicBlock_angle(); me._nodeimage_1_l.logicBlock_alpha(); me._label1.logicBlock_alpha(); }; me.ggEvent_varchanged_blinken_starten=function() { me._hs_image_animated_2_l1.logicBlock_visible(); me._hs_image_animated_1_l1.logicBlock_visible(); }; me.ggEvent_varchanged_ht_ani=function() { me._hs_image_animated_2_l1.logicBlock_scaling(); me._hs_image_animated_2_l1.logicBlock_alpha(); me._hs_image_animated_1_l1.logicBlock_scaling(); me._hs_image_animated_1_l1.logicBlock_alpha(); }; me.hotspotTimerEvent=function() { setTimeout(function() { me.hotspotTimerEvent(); }, 10); me._label_hs.ggUpdateConditionTimer(); } me.hotspotTimerEvent(); me.__div = me._label_hs; }; function SkinHotspotClass_patch_group_switcher(parentScope,hotspot) { var me=this; var flag=false; var hs=''; me.parentScope=parentScope; me.hotspot=hotspot; var nodeId=String(hotspot.url); nodeId=(nodeId.charAt(0)=='{')?nodeId.substr(1, nodeId.length - 2):''; // } me.ggUserdata=skin.player.getNodeUserdata(nodeId); me.elementMouseDown={}; me.elementMouseOver={}; me.findElements=function(id,regex) { return skin.findElements(id,regex); } el=me._patch_group_switcher=document.createElement('div'); el.ggId="patch_group_switcher"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_hotspot "; el.ggType='hotspot'; hs =''; hs+='height : 0px;'; hs+='left : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 0px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._patch_group_switcher.ggIsActive=function() { return player.getCurrentNode()==this.ggElementNodeId(); } el.ggElementNodeId=function() { if (me.hotspot.url!='' && me.hotspot.url.charAt(0)=='{') { // } return me.hotspot.url.substr(1, me.hotspot.url.length - 2); } else { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } else { return player.getCurrentNode(); } } } me._patch_group_switcher.onclick=function (e) { player.triggerEvent('hsproxyclick', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._patch_group_switcher.ondblclick=function (e) { player.triggerEvent('hsproxydblclick', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._patch_group_switcher.onmouseover=function (e) { player.setActiveHotspot(me.hotspot); me.elementMouseOver['patch_group_switcher']=true; player.triggerEvent('hsproxyover', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._patch_group_switcher.onmouseout=function (e) { player.setActiveHotspot(null); me.elementMouseOver['patch_group_switcher']=false; player.triggerEvent('hsproxyout', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._patch_group_switcher.ggUpdateConditionTimer=function () { if (me.elementMouseOver['patch_group_switcher']) { player.setActiveHotspot(me.hotspot); me.elementMouseOver['patch_group_switcher']=true; } } me._patch_group_switcher.ggUpdatePosition=function (useTransition) { } el=me._text_5=document.createElement('div'); els=me._text_5__text=document.createElement('div'); el.className='ggskin ggskin_textdiv'; el.ggTextDiv=els; el.ggId="Text 5"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_text "; el.ggType='text'; hs =''; hs+=cssPrefix + 'background-clip : padding-box;'; hs+='background-clip : padding-box;'; hs+='background : rgba(0,0,0,0.196078);'; hs+='border : 1px solid rgba(0,0,0,0.588235);'; hs+='border-radius : 4px;'; hs+='color : rgba(255,255,255,1);'; hs+='cursor : pointer;'; hs+='height : auto;'; hs+='left : calc(50% - ((auto + 2px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((auto + 2px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : auto;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; hs =''; hs += 'box-sizing: border-box;'; hs+='width: 100%;'; hs+='height: 100%;'; hs+='text-align: center;'; hs+='white-space: pre;'; hs+='padding: 1px 2px 1px 2px;'; hs+='overflow: hidden;'; els.setAttribute('style',hs); me._text_5.ggUpdateText=function() { var params = []; params.push(player._(String(player.getVariableValue('patch_group_label_inactive', me.hotspot ? me.hotspot.id : (player.hotspot ? player.hotspot.id : ''))))); var hs = player._("%1", params); if (hs!=this.ggText) { this.ggText=hs; this.ggTextDiv.innerHTML=hs; if (this.ggUpdatePosition) this.ggUpdatePosition(); } } me._text_5.ggUpdateText(); player.addListener('timer', function() { me._text_5.ggUpdateText(); }); el.appendChild(els); me._text_5.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 me.ggNodeId; } me._text_5.logicBlock_backgroundcolor = function() { var newLogicStateBackgroundColor; if ( ((me.elementMouseOver['text_5'] == true)) ) { newLogicStateBackgroundColor = 0; } else { newLogicStateBackgroundColor = -1; } if (me._text_5.ggCurrentLogicStateBackgroundColor != newLogicStateBackgroundColor) { me._text_5.ggCurrentLogicStateBackgroundColor = newLogicStateBackgroundColor; me._text_5.style.transition='background-color 250ms ease 0ms'; if (me._text_5.ggCurrentLogicStateBackgroundColor == 0) { me._text_5.style.backgroundColor="rgba(0,0,0,0.117647)"; } else { me._text_5.style.backgroundColor="rgba(0,0,0,0.196078)"; } } } me._text_5.logicBlock_backgroundcolor(); me._text_5.logicBlock_text = function() { var newLogicStateText; if ( ((player.getVariableValue('patch_group_open') == false)) ) { newLogicStateText = 0; } else { newLogicStateText = -1; } if (me._text_5.ggCurrentLogicStateText != newLogicStateText) { me._text_5.ggCurrentLogicStateText = newLogicStateText; me._text_5.style.transition='background-color 250ms ease 0ms'; if (me._text_5.ggCurrentLogicStateText == 0) { if (me._text_5.ggUpdateText) { me._text_5.ggUpdateText=function() { var params = []; params.push(player._(String(player.getVariableValue('patch_group_label_active', me.hotspot ? me.hotspot.id : (player.hotspot ? player.hotspot.id : ''))))); var hs = player._("%1", params); if (hs!=this.ggText) { this.ggText=hs; this.ggTextDiv.innerHTML=hs; if (this.ggUpdatePosition) this.ggUpdatePosition(); } } me._text_5.ggUpdateText(); } else { if (me._text_5.ggUpdatePosition) me._text_5.ggUpdatePosition(); } } else { if (me._text_5.ggUpdateText) { me._text_5.ggUpdateText=function() { var params = []; params.push(player._(String(player.getVariableValue('patch_group_label_inactive', me.hotspot ? me.hotspot.id : (player.hotspot ? player.hotspot.id : ''))))); var hs = player._("%1", params); if (hs!=this.ggText) { this.ggText=hs; this.ggTextDiv.innerHTML=hs; if (this.ggUpdatePosition) this.ggUpdatePosition(); } } me._text_5.ggUpdateText(); } else { if (me._text_5.ggUpdatePosition) me._text_5.ggUpdatePosition(); } } } } me._text_5.logicBlock_text(); me._text_5.onclick=function (e) { player.setVariableValue('patch_group_open', !player.getVariableValue('patch_group_open')); } me._text_5.onmouseover=function (e) { me.elementMouseOver['text_5']=true; me._text_5.logicBlock_backgroundcolor(); } me._text_5.onmouseout=function (e) { if (e && e.toElement) { var current = e.toElement; while (current = current.parentNode) { if (current == me._text_5__text) return; } } me.elementMouseOver['text_5']=false; me._text_5.logicBlock_backgroundcolor(); } me._text_5.ggCurrentLogicStateBackgroundColor = -1; me._text_5.ggCurrentLogicStateText = -1; me._text_5.ggUpdateConditionTimer=function () { if (me.elementMouseOver['text_5']) { me.elementMouseOver['text_5']=true; } } me._text_5.ggUpdatePosition=function (useTransition) { } me._patch_group_switcher.appendChild(me._text_5); me._text_5.logicBlock_backgroundcolor(); me._text_5.logicBlock_text(); me.ggEvent_changenode=function() { me._text_5.logicBlock_text(); }; me.ggEvent_configloaded=function() { me._text_5.logicBlock_text(); }; me.ggEvent_varchanged_patch_group_open=function() { me._text_5.logicBlock_text(); }; me.hotspotTimerEvent=function() { setTimeout(function() { me.hotspotTimerEvent(); }, 10); me._patch_group_switcher.ggUpdateConditionTimer(); me._text_5.ggUpdateConditionTimer(); } me.hotspotTimerEvent(); me.__div = me._patch_group_switcher; }; function SkinHotspotClass_patch(parentScope,hotspot) { var me=this; var flag=false; var hs=''; me.parentScope=parentScope; me.hotspot=hotspot; var nodeId=String(hotspot.url); nodeId=(nodeId.charAt(0)=='{')?nodeId.substr(1, nodeId.length - 2):''; // } me.ggUserdata=skin.player.getNodeUserdata(nodeId); me.elementMouseDown={}; me.elementMouseOver={}; me.findElements=function(id,regex) { return skin.findElements(id,regex); } el=me._patch=document.createElement('div'); el.ggId="patch"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_hotspot "; el.ggType='hotspot'; hs =''; hs+='height : 0px;'; hs+='left : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 0px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._patch.ggIsActive=function() { return player.getCurrentNode()==this.ggElementNodeId(); } el.ggElementNodeId=function() { if (me.hotspot.url!='' && me.hotspot.url.charAt(0)=='{') { // } return me.hotspot.url.substr(1, me.hotspot.url.length - 2); } else { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } else { return player.getCurrentNode(); } } } me._patch.onclick=function (e) { player.triggerEvent('hsproxyclick', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._patch.ondblclick=function (e) { player.triggerEvent('hsproxydblclick', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._patch.onmouseover=function (e) { player.setActiveHotspot(me.hotspot); me.elementMouseOver['patch']=true; player.triggerEvent('hsproxyover', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._patch.onmouseout=function (e) { player.setActiveHotspot(null); me.elementMouseOver['patch']=false; player.triggerEvent('hsproxyout', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._patch.ggUpdateConditionTimer=function () { if (me.elementMouseOver['patch']) { player.setActiveHotspot(me.hotspot); me.elementMouseOver['patch']=true; } } me._patch.ggUpdatePosition=function (useTransition) { } el=me._patch_switcher_customimage=document.createElement('div'); els=me._patch_switcher_customimage__img=document.createElement('img'); els.className='ggskin ggskin_external'; hs =''; hs += 'position: absolute;-webkit-user-drag:none;pointer-events:none;;'; els.setAttribute('style', hs); els.onload=function() {me._patch_switcher_customimage.ggUpdatePosition();} el.appendChild(els); el.ggSubElement = els; hs =''; el.ggAltText=""; el.ggScrollbars=false; el.ggUpdateText = function() { me._patch_switcher_customimage.ggSubElement.setAttribute('alt', player._(me._patch_switcher_customimage.ggAltText)); if (me._patch_switcher_customimage.ggUpdateImageInternal) me._patch_switcher_customimage.ggUpdateImageInternal(); } el.ggUpdateImage = function() { me._patch_switcher_customimage.ggSubElement.style.width = '0px'; me._patch_switcher_customimage.ggSubElement.style.height = '0px'; me._patch_switcher_customimage.ggSubElement.src=''; me._patch_switcher_customimage.ggSubElement.src=me._patch_switcher_customimage.ggText; } el.ggUpdateImageInternal = function() { if (me._patch_switcher_customimage.ggText != player._("_custom")) { me._patch_switcher_customimage.ggText = player._("_custom"); me._patch_switcher_customimage.ggUpdateImage() } } if ((hotspot) && (hotspot.customimage)) { el.ggText=hotspot.customimage; els.setAttribute('src', hotspot.customimage); els.style.width=hotspot.customimagewidth + 'px'; els.style.height=hotspot.customimageheight + 'px'; me.ggUse3d = hotspot.use3D; me.gg3dDistance = hotspot.distance3D; } els['ondragstart']=function() { return false; }; player.checkLoaded.push(els); el.ggUpdateText(); el.ggId="patch_switcher_CustomImage"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_external "; el.ggType='external'; hs =''; hs+='border : 0px solid #000000;'; hs+='cursor : default;'; hs+='height : 50px;'; hs+='left : calc(50% - ((50px + 0px) / 2) + 0px);'; hs+='opacity : 0.01;'; hs+='position : absolute;'; hs+='top : calc(50% - ((50px + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 50px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._patch_switcher_customimage.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 me.ggNodeId; } me._patch_switcher_customimage.logicBlock_visible = function() { var newLogicStateVisible; if ( ((me.hotspot.customimage == "")) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._patch_switcher_customimage.ggCurrentLogicStateVisible != newLogicStateVisible) { me._patch_switcher_customimage.ggCurrentLogicStateVisible = newLogicStateVisible; me._patch_switcher_customimage.style.transition='opacity 200ms ease 0ms'; if (me._patch_switcher_customimage.ggCurrentLogicStateVisible == 0) { me._patch_switcher_customimage.style.visibility="hidden"; me._patch_switcher_customimage.ggSubElement.src=''; me._patch_switcher_customimage.ggVisible=false; } else { me._patch_switcher_customimage.style.visibility=(Number(me._patch_switcher_customimage.style.opacity)>0||!me._patch_switcher_customimage.style.opacity)?'inherit':'hidden'; me._patch_switcher_customimage.ggSubElement.src=me._patch_switcher_customimage.ggText; me._patch_switcher_customimage.ggVisible=true; } } } me._patch_switcher_customimage.logicBlock_visible(); me._patch_switcher_customimage.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((me.elementMouseOver['patch_switcher_customimage'] == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._patch_switcher_customimage.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._patch_switcher_customimage.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._patch_switcher_customimage.style.transition='opacity 200ms ease 0ms'; if (me._patch_switcher_customimage.ggCurrentLogicStateAlpha == 0) { me._patch_switcher_customimage.style.visibility=me._patch_switcher_customimage.ggVisible?'inherit':'hidden'; me._patch_switcher_customimage.ggSubElement.src=me._patch_switcher_customimage.ggText; me._patch_switcher_customimage.style.opacity=1; } else { me._patch_switcher_customimage.style.visibility=me._patch_switcher_customimage.ggVisible?'inherit':'hidden'; me._patch_switcher_customimage.ggSubElement.src=me._patch_switcher_customimage.ggText; me._patch_switcher_customimage.style.opacity=0.01; } } } me._patch_switcher_customimage.logicBlock_alpha(); me._patch_switcher_customimage.onmouseover=function (e) { me.elementMouseOver['patch_switcher_customimage']=true; me._patch_switcher_customimage.logicBlock_alpha(); } me._patch_switcher_customimage.onmouseout=function (e) { me.elementMouseOver['patch_switcher_customimage']=false; me._patch_switcher_customimage.logicBlock_alpha(); } me._patch_switcher_customimage.ggCurrentLogicStateVisible = -1; me._patch_switcher_customimage.ggCurrentLogicStateAlpha = -1; me._patch_switcher_customimage.ggUpdateConditionTimer=function () { if (me.elementMouseOver['patch_switcher_customimage']) { me.elementMouseOver['patch_switcher_customimage']=true; } } me._patch_switcher_customimage.ggUpdatePosition=function (useTransition) { var parentWidth = me._patch_switcher_customimage.clientWidth; var parentHeight = me._patch_switcher_customimage.clientHeight; var img = me._patch_switcher_customimage__img; var aspectRatioDiv = me._patch_switcher_customimage.clientWidth / me._patch_switcher_customimage.clientHeight; var aspectRatioImg = img.naturalWidth / img.naturalHeight; var currentWidth,currentHeight; if ((hotspot) && (hotspot.customimage)) { currentWidth = hotspot.customimagewidth; currentHeight = hotspot.customimageheight; } if (!me._patch_switcher_customimage.ggScrollbars || currentWidth < me._patch_switcher_customimage.clientWidth) { img.style.right=''; img.style.left='50%'; img.style.marginLeft='-' + currentWidth/2 + 'px'; } else { img.style.right=''; img.style.left='0px'; img.style.marginLeft='0px'; me._patch_switcher_customimage.scrollLeft=currentWidth / 2 - me._patch_switcher_customimage.clientWidth / 2; } if (!me._patch_switcher_customimage.ggScrollbars || currentHeight < me._patch_switcher_customimage.clientHeight) { img.style.bottom=''; img.style.top='50%'; img.style.marginTop='-' + currentHeight/2 + 'px'; } else { img.style.bottom=''; img.style.top='0px'; img.style.marginTop='0px'; me._patch_switcher_customimage.scrollTop=currentHeight / 2 - me._patch_switcher_customimage.clientHeight / 2; } } me._patch.appendChild(me._patch_switcher_customimage); if ((hotspot) && (hotspot.customimage)) { me._patch_switcher_customimage.style.width=hotspot.customimagewidth + 'px'; me._patch_switcher_customimage.style.height=hotspot.customimageheight + 'px'; let d = 0; me._patch_switcher_customimage.style.left='calc(50% - ' + (hotspot.customimagewidth)/2 +'px' + ((d<0) ? ' - ' : ' + ') + d + 'px)'; d = 0; me._patch_switcher_customimage.style.top='calc(50% - ' + (hotspot.customimageheight)/2 +'px' + ((d<0) ? ' - ' : ' + ') + d + 'px)'; } me._patch_switcher_customimage.logicBlock_visible(); me._patch_switcher_customimage.logicBlock_alpha(); me.ggEvent_activehotspotchanged=function() { me._patch_switcher_customimage.logicBlock_visible(); }; me.ggEvent_changenode=function() { me._patch_switcher_customimage.logicBlock_visible(); }; me.ggEvent_configloaded=function() { me._patch_switcher_customimage.logicBlock_visible(); }; me.hotspotTimerEvent=function() { setTimeout(function() { me.hotspotTimerEvent(); }, 10); me._patch.ggUpdateConditionTimer(); me._patch_switcher_customimage.ggUpdateConditionTimer(); } me.hotspotTimerEvent(); me.__div = me._patch; }; function SkinHotspotClass_ht_node(parentScope,hotspot) { var me=this; var flag=false; var hs=''; me.parentScope=parentScope; me.hotspot=hotspot; var nodeId=String(hotspot.url); nodeId=(nodeId.charAt(0)=='{')?nodeId.substr(1, nodeId.length - 2):''; // } me.ggUserdata=skin.player.getNodeUserdata(nodeId); me.elementMouseDown={}; me.elementMouseOver={}; me.findElements=function(id,regex) { return skin.findElements(id,regex); } el=me._ht_node=document.createElement('div'); el.ggId="ht_node"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_hotspot "; el.ggType='hotspot'; hs =''; hs+='cursor : pointer;'; hs+='height : 0px;'; hs+='left : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 0px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._ht_node.ggIsActive=function() { return player.getCurrentNode()==this.ggElementNodeId(); } el.ggElementNodeId=function() { if (me.hotspot.url!='' && me.hotspot.url.charAt(0)=='{') { // } return me.hotspot.url.substr(1, me.hotspot.url.length - 2); } else { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } else { return player.getCurrentNode(); } } } me._ht_node.onclick=function (e) { player.openNext(player._(me.hotspot.url),player._(me.hotspot.target)); player.triggerEvent('hsproxyclick', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._ht_node.ondblclick=function (e) { player.triggerEvent('hsproxydblclick', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._ht_node.onmouseover=function (e) { player.setActiveHotspot(me.hotspot); me.elementMouseOver['ht_node']=true; me._hs_image_i_1_htm.logicBlock_scaling(); me._hs_image_i_1_htm.logicBlock_bordercolor(); me._nodeimage_1_ht.logicBlock_scaling(); me._nodeimage_1_ht.logicBlock_angle(); me._nodeimage_1_ht.logicBlock_alpha(); player.triggerEvent('hsproxyover', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._ht_node.onmouseout=function (e) { player.setActiveHotspot(null); me.elementMouseOver['ht_node']=false; me._hs_image_i_1_htm.logicBlock_scaling(); me._hs_image_i_1_htm.logicBlock_bordercolor(); me._nodeimage_1_ht.logicBlock_scaling(); me._nodeimage_1_ht.logicBlock_angle(); me._nodeimage_1_ht.logicBlock_alpha(); player.triggerEvent('hsproxyout', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._ht_node.ggUpdateConditionTimer=function () { if (me.elementMouseOver['ht_node']) { player.setActiveHotspot(me.hotspot); me.elementMouseOver['ht_node']=true; me._hs_image_i_1_htm.logicBlock_scaling(); me._hs_image_i_1_htm.logicBlock_bordercolor(); me._nodeimage_1_ht.logicBlock_scaling(); me._nodeimage_1_ht.logicBlock_angle(); me._nodeimage_1_ht.logicBlock_alpha(); } } me._ht_node.ggUpdatePosition=function (useTransition) { } el=me._hs_image_animated_2_htm=document.createElement('div'); el.ggId="hs_image_animated_2_htm"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_rectangle HS_Farbe"; el.ggType='rectangle'; hs =''; hs+='background : rgba(174,139,87,0.196078);'; hs+='border : 2px solid #ae8b57;'; hs+='border-radius : 999px;'; hs+='cursor : pointer;'; hs+='height : 50px;'; hs+='left : calc(50% - ((50px + 4px) / 2) + 0px);'; hs+='opacity : 0;'; hs+='position : absolute;'; hs+='top : calc(50% - ((50px + 4px) / 2) + 0px);'; hs+='visibility : hidden;'; hs+='width : 50px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._hs_image_animated_2_htm.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 me.ggNodeId; } me._hs_image_animated_2_htm.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._hs_image_animated_2_htm.ggCurrentLogicStateScaling != newLogicStateScaling) { me._hs_image_animated_2_htm.ggCurrentLogicStateScaling = newLogicStateScaling; me._hs_image_animated_2_htm.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_2_htm.ggCurrentLogicStateScaling == 0) { me._hs_image_animated_2_htm.ggParameter.sx = 0.8; me._hs_image_animated_2_htm.ggParameter.sy = 0.8; me._hs_image_animated_2_htm.style.transform=parameterToTransform(me._hs_image_animated_2_htm.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_2_htm);}, 550); } else { me._hs_image_animated_2_htm.ggParameter.sx = 1; me._hs_image_animated_2_htm.ggParameter.sy = 1; me._hs_image_animated_2_htm.style.transform=parameterToTransform(me._hs_image_animated_2_htm.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_2_htm);}, 550); } } } me._hs_image_animated_2_htm.logicBlock_scaling(); me._hs_image_animated_2_htm.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('blinken_starten') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._hs_image_animated_2_htm.ggCurrentLogicStateVisible != newLogicStateVisible) { me._hs_image_animated_2_htm.ggCurrentLogicStateVisible = newLogicStateVisible; me._hs_image_animated_2_htm.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_2_htm.ggCurrentLogicStateVisible == 0) { me._hs_image_animated_2_htm.style.visibility=(Number(me._hs_image_animated_2_htm.style.opacity)>0||!me._hs_image_animated_2_htm.style.opacity)?'inherit':'hidden'; me._hs_image_animated_2_htm.ggVisible=true; } else { me._hs_image_animated_2_htm.style.visibility="hidden"; me._hs_image_animated_2_htm.ggVisible=false; } } } me._hs_image_animated_2_htm.logicBlock_visible(); me._hs_image_animated_2_htm.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._hs_image_animated_2_htm.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._hs_image_animated_2_htm.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._hs_image_animated_2_htm.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_2_htm.ggCurrentLogicStateAlpha == 0) { me._hs_image_animated_2_htm.style.visibility=me._hs_image_animated_2_htm.ggVisible?'inherit':'hidden'; me._hs_image_animated_2_htm.style.opacity=0.65; } else { setTimeout(function() { if (me._hs_image_animated_2_htm.style.opacity == 0.0) { me._hs_image_animated_2_htm.style.visibility="hidden"; } }, 505); me._hs_image_animated_2_htm.style.opacity=0; } } } me._hs_image_animated_2_htm.logicBlock_alpha(); me._hs_image_animated_2_htm.ggUpdatePosition=function (useTransition) { } me._ht_node.appendChild(me._hs_image_animated_2_htm); el=me._hs_image_animated_1_htm=document.createElement('div'); el.ggId="hs_image_animated_1_htm"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:0.5,sy:0.5,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='border : 3px solid #ffffff;'; hs+='border-radius : 999px;'; hs+='cursor : pointer;'; hs+='height : 30px;'; hs+='left : calc(50% - ((30px + 6px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((30px + 6px) / 2) + 0px);'; hs+='visibility : hidden;'; hs+='width : 30px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; el.style.transform=parameterToTransform(el.ggParameter); me._hs_image_animated_1_htm.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 me.ggNodeId; } me._hs_image_animated_1_htm.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._hs_image_animated_1_htm.ggCurrentLogicStateScaling != newLogicStateScaling) { me._hs_image_animated_1_htm.ggCurrentLogicStateScaling = newLogicStateScaling; me._hs_image_animated_1_htm.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_1_htm.ggCurrentLogicStateScaling == 0) { me._hs_image_animated_1_htm.ggParameter.sx = 0.8; me._hs_image_animated_1_htm.ggParameter.sy = 0.8; me._hs_image_animated_1_htm.style.transform=parameterToTransform(me._hs_image_animated_1_htm.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_1_htm);}, 550); } else { me._hs_image_animated_1_htm.ggParameter.sx = 0.5; me._hs_image_animated_1_htm.ggParameter.sy = 0.5; me._hs_image_animated_1_htm.style.transform=parameterToTransform(me._hs_image_animated_1_htm.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_1_htm);}, 550); } } } me._hs_image_animated_1_htm.logicBlock_scaling(); me._hs_image_animated_1_htm.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('blinken_starten') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._hs_image_animated_1_htm.ggCurrentLogicStateVisible != newLogicStateVisible) { me._hs_image_animated_1_htm.ggCurrentLogicStateVisible = newLogicStateVisible; me._hs_image_animated_1_htm.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_1_htm.ggCurrentLogicStateVisible == 0) { me._hs_image_animated_1_htm.style.visibility=(Number(me._hs_image_animated_1_htm.style.opacity)>0||!me._hs_image_animated_1_htm.style.opacity)?'inherit':'hidden'; me._hs_image_animated_1_htm.ggVisible=true; } else { me._hs_image_animated_1_htm.style.visibility="hidden"; me._hs_image_animated_1_htm.ggVisible=false; } } } me._hs_image_animated_1_htm.logicBlock_visible(); me._hs_image_animated_1_htm.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._hs_image_animated_1_htm.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._hs_image_animated_1_htm.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._hs_image_animated_1_htm.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_1_htm.ggCurrentLogicStateAlpha == 0) { setTimeout(function() { if (me._hs_image_animated_1_htm.style.opacity == 0.0) { me._hs_image_animated_1_htm.style.visibility="hidden"; } }, 505); me._hs_image_animated_1_htm.style.opacity=0; } else { me._hs_image_animated_1_htm.style.visibility=me._hs_image_animated_1_htm.ggVisible?'inherit':'hidden'; me._hs_image_animated_1_htm.style.opacity=1; } } } me._hs_image_animated_1_htm.logicBlock_alpha(); me._hs_image_animated_1_htm.ggUpdatePosition=function (useTransition) { } me._ht_node.appendChild(me._hs_image_animated_1_htm); el=me._hs_image_i_1_htm=document.createElement('div'); el.ggId="hs_image_i_1_htm"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:0.5,sy:0.5,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='border : 3px solid #ffffff;'; hs+='border-radius : 999px;'; hs+='cursor : pointer;'; hs+='height : 30px;'; hs+='left : calc(50% - ((30px + 6px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((30px + 6px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 30px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; el.style.transform=parameterToTransform(el.ggParameter); me._hs_image_i_1_htm.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 me.ggNodeId; } me._hs_image_i_1_htm.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((me.elementMouseOver['ht_node'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._hs_image_i_1_htm.ggCurrentLogicStateScaling != newLogicStateScaling) { me._hs_image_i_1_htm.ggCurrentLogicStateScaling = newLogicStateScaling; me._hs_image_i_1_htm.style.transition='transform 500ms ease 0ms, border-color 500ms ease 0ms'; if (me._hs_image_i_1_htm.ggCurrentLogicStateScaling == 0) { me._hs_image_i_1_htm.ggParameter.sx = 0.8; me._hs_image_i_1_htm.ggParameter.sy = 0.8; me._hs_image_i_1_htm.style.transform=parameterToTransform(me._hs_image_i_1_htm.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_i_1_htm);}, 550); } else { me._hs_image_i_1_htm.ggParameter.sx = 0.5; me._hs_image_i_1_htm.ggParameter.sy = 0.5; me._hs_image_i_1_htm.style.transform=parameterToTransform(me._hs_image_i_1_htm.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_i_1_htm);}, 550); } } } me._hs_image_i_1_htm.logicBlock_scaling(); me._hs_image_i_1_htm.logicBlock_bordercolor = function() { var newLogicStateBorderColor; if ( ((me.elementMouseOver['ht_node'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateBorderColor = 0; } else { newLogicStateBorderColor = -1; } if (me._hs_image_i_1_htm.ggCurrentLogicStateBorderColor != newLogicStateBorderColor) { me._hs_image_i_1_htm.ggCurrentLogicStateBorderColor = newLogicStateBorderColor; me._hs_image_i_1_htm.style.transition='transform 500ms ease 0ms, border-color 500ms ease 0ms'; if (me._hs_image_i_1_htm.ggCurrentLogicStateBorderColor == 0) { me._hs_image_i_1_htm.style.borderColor="rgba(174,139,87,1)"; } else { me._hs_image_i_1_htm.style.borderColor="rgba(255,255,255,1)"; } } } me._hs_image_i_1_htm.logicBlock_bordercolor(); me._hs_image_i_1_htm.ggUpdatePosition=function (useTransition) { } me._ht_node.appendChild(me._hs_image_i_1_htm); el=me._nodeimage_1_ht=document.createElement('div'); els=me._nodeimage_1_ht__img=document.createElement('img'); els.className='ggskin ggskin_nodeimage'; els.setAttribute('src',basePath + "images/nodeimage_1_ht_" + nodeId + ".png"); el.ggNodeId=nodeId; hs =''; hs += 'position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;;'; els.setAttribute('style', hs); els.className='ggskin ggskin_nodeimage'; els['ondragstart']=function() { return false; }; el.appendChild(els); el.ggSubElement = els; el.ggId="NodeImage 1_ht"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:-360,sx:0,sy:0,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_nodeimage "; el.ggType='nodeimage'; hs =''; hs+='cursor : pointer;'; hs+='height : 30px;'; hs+='left : calc(50% - ((30px + 0px) / 2) + 0px);'; hs+='opacity : 0;'; hs+='position : absolute;'; hs+='top : calc(50% - ((30px + 0px) / 2) + 0px);'; hs+='visibility : hidden;'; hs+='width : 30px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; el.style.transform=parameterToTransform(el.ggParameter); me._nodeimage_1_ht.ggIsActive=function() { return player.getCurrentNode()==this.ggElementNodeId(); } el.ggElementNodeId=function() { return this.ggNodeId; } me._nodeimage_1_ht.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((me.elementMouseOver['ht_node'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._nodeimage_1_ht.ggCurrentLogicStateScaling != newLogicStateScaling) { me._nodeimage_1_ht.ggCurrentLogicStateScaling = newLogicStateScaling; me._nodeimage_1_ht.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._nodeimage_1_ht.ggCurrentLogicStateScaling == 0) { me._nodeimage_1_ht.ggParameter.sx = 3; me._nodeimage_1_ht.ggParameter.sy = 3; me._nodeimage_1_ht.style.transform=parameterToTransform(me._nodeimage_1_ht.ggParameter); setTimeout(function() {skin.updateSize(me._nodeimage_1_ht);}, 1050); } else { me._nodeimage_1_ht.ggParameter.sx = 0; me._nodeimage_1_ht.ggParameter.sy = 0; me._nodeimage_1_ht.style.transform=parameterToTransform(me._nodeimage_1_ht.ggParameter); setTimeout(function() {skin.updateSize(me._nodeimage_1_ht);}, 1050); } } } me._nodeimage_1_ht.logicBlock_scaling(); me._nodeimage_1_ht.logicBlock_angle = function() { var newLogicStateAngle; if ( ((me.elementMouseOver['ht_node'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateAngle = 0; } else { newLogicStateAngle = -1; } if (me._nodeimage_1_ht.ggCurrentLogicStateAngle != newLogicStateAngle) { me._nodeimage_1_ht.ggCurrentLogicStateAngle = newLogicStateAngle; me._nodeimage_1_ht.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._nodeimage_1_ht.ggCurrentLogicStateAngle == 0) { me._nodeimage_1_ht.ggParameter.a = 360; me._nodeimage_1_ht.style.transform=parameterToTransform(me._nodeimage_1_ht.ggParameter); } else { me._nodeimage_1_ht.ggParameter.a = -360; me._nodeimage_1_ht.style.transform=parameterToTransform(me._nodeimage_1_ht.ggParameter); } } } me._nodeimage_1_ht.logicBlock_angle(); me._nodeimage_1_ht.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((me.elementMouseOver['ht_node'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._nodeimage_1_ht.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._nodeimage_1_ht.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._nodeimage_1_ht.style.transition='transform 1000ms ease 0ms, transform 500ms ease 0ms, opacity 400ms ease 0ms'; if (me._nodeimage_1_ht.ggCurrentLogicStateAlpha == 0) { me._nodeimage_1_ht.style.visibility=me._nodeimage_1_ht.ggVisible?'inherit':'hidden'; me._nodeimage_1_ht.style.opacity=1; } else { setTimeout(function() { if (me._nodeimage_1_ht.style.opacity == 0.0) { me._nodeimage_1_ht.style.visibility="hidden"; } }, 405); me._nodeimage_1_ht.style.opacity=0; } } } me._nodeimage_1_ht.logicBlock_alpha(); me._nodeimage_1_ht.ggUpdatePosition=function (useTransition) { } me._ht_node.appendChild(me._nodeimage_1_ht); me._hs_image_animated_2_htm.logicBlock_scaling(); me._hs_image_animated_2_htm.logicBlock_visible(); me._hs_image_animated_2_htm.logicBlock_alpha(); me._hs_image_animated_1_htm.logicBlock_scaling(); me._hs_image_animated_1_htm.logicBlock_visible(); me._hs_image_animated_1_htm.logicBlock_alpha(); me._hs_image_i_1_htm.logicBlock_scaling(); me._hs_image_i_1_htm.logicBlock_bordercolor(); me._nodeimage_1_ht.logicBlock_scaling(); me._nodeimage_1_ht.logicBlock_angle(); me._nodeimage_1_ht.logicBlock_alpha(); me.ggEvent_changenode=function() { me._hs_image_animated_2_htm.logicBlock_scaling(); me._hs_image_animated_2_htm.logicBlock_visible(); me._hs_image_animated_2_htm.logicBlock_alpha(); me._hs_image_animated_1_htm.logicBlock_scaling(); me._hs_image_animated_1_htm.logicBlock_visible(); me._hs_image_animated_1_htm.logicBlock_alpha(); me._hs_image_i_1_htm.logicBlock_scaling(); me._hs_image_i_1_htm.logicBlock_bordercolor(); me._nodeimage_1_ht.logicBlock_scaling(); me._nodeimage_1_ht.logicBlock_angle(); me._nodeimage_1_ht.logicBlock_alpha(); }; me.ggEvent_configloaded=function() { me._hs_image_animated_2_htm.logicBlock_scaling(); me._hs_image_animated_2_htm.logicBlock_visible(); me._hs_image_animated_2_htm.logicBlock_alpha(); me._hs_image_animated_1_htm.logicBlock_scaling(); me._hs_image_animated_1_htm.logicBlock_visible(); me._hs_image_animated_1_htm.logicBlock_alpha(); me._hs_image_i_1_htm.logicBlock_scaling(); me._hs_image_i_1_htm.logicBlock_bordercolor(); me._nodeimage_1_ht.logicBlock_scaling(); me._nodeimage_1_ht.logicBlock_angle(); me._nodeimage_1_ht.logicBlock_alpha(); }; me.ggEvent_varchanged_autoExpanded=function() { me._hs_image_i_1_htm.logicBlock_scaling(); me._hs_image_i_1_htm.logicBlock_bordercolor(); me._nodeimage_1_ht.logicBlock_scaling(); me._nodeimage_1_ht.logicBlock_angle(); me._nodeimage_1_ht.logicBlock_alpha(); }; me.ggEvent_varchanged_blinken_starten=function() { me._hs_image_animated_2_htm.logicBlock_visible(); me._hs_image_animated_1_htm.logicBlock_visible(); }; me.ggEvent_varchanged_ht_ani=function() { me._hs_image_animated_2_htm.logicBlock_scaling(); me._hs_image_animated_2_htm.logicBlock_alpha(); me._hs_image_animated_1_htm.logicBlock_scaling(); me._hs_image_animated_1_htm.logicBlock_alpha(); }; me.hotspotTimerEvent=function() { setTimeout(function() { me.hotspotTimerEvent(); }, 10); me._ht_node.ggUpdateConditionTimer(); } me.hotspotTimerEvent(); me.__div = me._ht_node; }; function SkinHotspotClass_infolabel(parentScope,hotspot) { var me=this; var flag=false; var hs=''; me.parentScope=parentScope; me.hotspot=hotspot; var nodeId=String(hotspot.url); nodeId=(nodeId.charAt(0)=='{')?nodeId.substr(1, nodeId.length - 2):''; // } me.ggUserdata=skin.player.getNodeUserdata(nodeId); me.elementMouseDown={}; me.elementMouseOver={}; me.findElements=function(id,regex) { return skin.findElements(id,regex); } el=me._infolabel=document.createElement('div'); el.ggId="infoLabel"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_hotspot "; el.ggType='hotspot'; hs =''; hs+='height : 0px;'; hs+='left : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 0px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._infolabel.ggIsActive=function() { return player.getCurrentNode()==this.ggElementNodeId(); } el.ggElementNodeId=function() { if (me.hotspot.url!='' && me.hotspot.url.charAt(0)=='{') { // } return me.hotspot.url.substr(1, me.hotspot.url.length - 2); } else { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } else { return player.getCurrentNode(); } } } me._infolabel.onclick=function (e) { player.triggerEvent('hsproxyclick', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._infolabel.ondblclick=function (e) { player.triggerEvent('hsproxydblclick', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._infolabel.onmouseover=function (e) { player.setActiveHotspot(me.hotspot); if ( ( ((player.getHasTouch() == false)) ) ) { if (player.transitionsDisabled) { me._infopanel.style.transition='none'; } else { me._infopanel.style.transition='all 1000ms ease 0ms'; } me._infopanel.style.opacity='1'; me._infopanel.style.visibility=me._infopanel.ggVisible?'inherit':'hidden'; } me.elementMouseOver['infolabel']=true; player.triggerEvent('hsproxyover', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._infolabel.onmousedown=function (e) { if ( ( ((player.getHasTouch() == true)) ) ) { var flag=me._infopanel.ggOpacitiyActive; if (player.transitionsDisabled) { me._infopanel.style.transition='none'; } else { me._infopanel.style.transition='all 1000ms ease 0ms'; } if (flag) { me._infopanel.style.opacity='0'; me._infopanel.style.visibility='hidden'; } else { me._infopanel.style.opacity='1'; me._infopanel.style.visibility=me._infopanel.ggVisible?'inherit':'hidden'; } me._infopanel.ggOpacitiyActive=!flag; } } me._infolabel.onmouseout=function (e) { player.setActiveHotspot(null); if ( ( ((player.getHasTouch() == false)) ) ) { if (player.transitionsDisabled) { me._infopanel.style.transition='none'; } else { me._infopanel.style.transition='all 1000ms ease 0ms'; } me._infopanel.style.opacity='0'; me._infopanel.style.visibility='hidden'; } me.elementMouseOver['infolabel']=false; player.triggerEvent('hsproxyout', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._infolabel.ggUpdateConditionTimer=function () { if (me.elementMouseOver['infolabel']) { player.setActiveHotspot(me.hotspot); if ( ( ((player.getHasTouch() == false)) ) ) { if (player.transitionsDisabled) { me._infopanel.style.transition='none'; } else { me._infopanel.style.transition='all 1000ms ease 0ms'; } me._infopanel.style.opacity='1'; me._infopanel.style.visibility=me._infopanel.ggVisible?'inherit':'hidden'; } me.elementMouseOver['infolabel']=true; } } me._infolabel.ggUpdatePosition=function (useTransition) { } el=me._infopanel=document.createElement('div'); el.ggId="InfoPanel"; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_container infoLabelTextContainer"; el.ggType='container'; hs =''; hs+='height : auto;'; hs+='left : 35px;'; hs+='opacity : 0;'; hs+='position : absolute;'; hs+='top : -24px;'; hs+='visibility : hidden;'; hs+='width : 300px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._infopanel.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 me.ggNodeId; } me._infopanel.ggUpdatePosition=function (useTransition) { } el=me._infoheadline=document.createElement('div'); els=me._infoheadline__text=document.createElement('div'); el.className='ggskin ggskin_textdiv'; el.ggTextDiv=els; el.ggId="infoHeadline"; el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_text "; el.ggType='text'; hs =''; hs+='background : rgba(0,0,0,0.745098);'; hs+='border : 0px solid #000000;'; hs+='color : rgba(255,255,255,1);'; hs+='cursor : pointer;'; hs+='height : auto;'; hs+='left : calc(50% - ((100% + 0px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : 0px;'; hs+='visibility : inherit;'; hs+='width : 100%;'; hs+='pointer-events:auto;'; hs+='position:relative !important;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; hs =''; hs += 'box-sizing: border-box;'; hs+='width: 100%;'; hs+='height: 100%;'; hs+='font-size: 18px;'; hs+='font-weight: bold;'; hs+='text-align: center;'; hs+='white-space: pre-line;'; hs+='padding: 12px;'; hs+='overflow: hidden;'; els.setAttribute('style',hs); me._infoheadline.ggUpdateText=function() { var params = []; params.push(String(player._(me.hotspot.title))); var hs = player._("%1", params); if (hs!=this.ggText) { this.ggText=hs; this.ggTextDiv.innerHTML=hs; if (this.ggUpdatePosition) this.ggUpdatePosition(); } } me._infoheadline.ggUpdateText(); el.appendChild(els); me._infoheadline.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 me.ggNodeId; } me._infoheadline.ggUpdatePosition=function (useTransition) { } me._infopanel.appendChild(me._infoheadline); el=me._infotext=document.createElement('div'); els=me._infotext__text=document.createElement('div'); el.className='ggskin ggskin_textdiv'; el.ggTextDiv=els; el.ggId="infoText"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_text infoLabelTextContainer"; el.ggType='text'; hs =''; hs+='background : rgba(255,255,255,0.745098);'; hs+='border : 0px solid #000000;'; hs+='color : rgba(0,0,0,1);'; hs+='cursor : pointer;'; hs+='height : auto;'; hs+='left : calc(50% - ((100% + 0px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((auto + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 100%;'; hs+='pointer-events:auto;'; hs+='position:relative !important; font-size: 1.5rem;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; hs =''; hs += 'box-sizing: border-box;'; hs+='width: 100%;'; hs+='height: 100%;'; hs+='font-size: 14px;'; hs+='font-weight: bold;'; hs+='text-align: left;'; hs+='white-space: pre-line;'; hs+='padding: 12px;'; hs+='overflow: hidden;'; hs+="display:flex; flex-wrap:wrap; letter-spacing:.02rem; font-weight: 500; line-height: 1.2;"; els.setAttribute('style',hs); me._infotext.ggUpdateText=function() { var params = []; params.push(String(player._(me.hotspot.description))); var hs = player._("%1", params); if (hs!=this.ggText) { this.ggText=hs; this.ggTextDiv.innerHTML=hs; if (this.ggUpdatePosition) this.ggUpdatePosition(); } } me._infotext.ggUpdateText(); el.appendChild(els); me._infotext.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 me.ggNodeId; } me._infotext.ggUpdatePosition=function (useTransition) { } me._infopanel.appendChild(me._infotext); me._infolabel.appendChild(me._infopanel); el=me._hs=document.createElement('div'); el.ggId="hs"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_container "; el.ggType='container'; hs =''; hs+='cursor : pointer;'; hs+='height : 20px;'; hs+='left : calc(50% - ((100px + 0px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((20px + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 100px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._hs.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 me.ggNodeId; } me._hs.onmouseover=function (e) { me.elementMouseOver['hs']=true; me._hs_image_i_1_infolabel.logicBlock_scaling(); me._hs_image_i_1_infolabel.logicBlock_bordercolor(); } me._hs.onmouseout=function (e) { me.elementMouseOver['hs']=false; me._hs_image_i_1_infolabel.logicBlock_scaling(); me._hs_image_i_1_infolabel.logicBlock_bordercolor(); } me._hs.ggUpdateConditionTimer=function () { if (me.elementMouseOver['hs']) { me.elementMouseOver['hs']=true; me._hs_image_i_1_infolabel.logicBlock_scaling(); me._hs_image_i_1_infolabel.logicBlock_bordercolor(); } } me._hs.ggUpdatePosition=function (useTransition) { } el=me._hs_image_i_1_infolabel=document.createElement('div'); el.ggId="hs_image_i_1_infoLabel"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:0.5,sy:0.5,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='background : rgba(0,0,0,0.352941);'; hs+='border : 6px solid #000000;'; hs+='border-radius : 999px;'; hs+='cursor : pointer;'; hs+='height : 55px;'; hs+='left : calc(50% - ((55px + 12px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((55px + 12px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 55px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; el.style.transform=parameterToTransform(el.ggParameter); me._hs_image_i_1_infolabel.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 me.ggNodeId; } me._hs_image_i_1_infolabel.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((me.elementMouseOver['hs'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._hs_image_i_1_infolabel.ggCurrentLogicStateScaling != newLogicStateScaling) { me._hs_image_i_1_infolabel.ggCurrentLogicStateScaling = newLogicStateScaling; me._hs_image_i_1_infolabel.style.transition='transform 500ms ease 0ms, border-color 500ms ease 0ms'; if (me._hs_image_i_1_infolabel.ggCurrentLogicStateScaling == 0) { me._hs_image_i_1_infolabel.ggParameter.sx = 0.8; me._hs_image_i_1_infolabel.ggParameter.sy = 0.8; me._hs_image_i_1_infolabel.style.transform=parameterToTransform(me._hs_image_i_1_infolabel.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_i_1_infolabel);}, 550); } else { me._hs_image_i_1_infolabel.ggParameter.sx = 0.5; me._hs_image_i_1_infolabel.ggParameter.sy = 0.5; me._hs_image_i_1_infolabel.style.transform=parameterToTransform(me._hs_image_i_1_infolabel.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_i_1_infolabel);}, 550); } } } me._hs_image_i_1_infolabel.logicBlock_scaling(); me._hs_image_i_1_infolabel.logicBlock_bordercolor = function() { var newLogicStateBorderColor; if ( ((me.elementMouseOver['hs'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateBorderColor = 0; } else { newLogicStateBorderColor = -1; } if (me._hs_image_i_1_infolabel.ggCurrentLogicStateBorderColor != newLogicStateBorderColor) { me._hs_image_i_1_infolabel.ggCurrentLogicStateBorderColor = newLogicStateBorderColor; me._hs_image_i_1_infolabel.style.transition='transform 500ms ease 0ms, border-color 500ms ease 0ms'; if (me._hs_image_i_1_infolabel.ggCurrentLogicStateBorderColor == 0) { me._hs_image_i_1_infolabel.style.borderColor="rgba(230,230,230,1)"; } else { me._hs_image_i_1_infolabel.style.borderColor="rgba(0,0,0,1)"; } } } me._hs_image_i_1_infolabel.logicBlock_bordercolor(); me._hs_image_i_1_infolabel.ggUpdatePosition=function (useTransition) { } me._hs.appendChild(me._hs_image_i_1_infolabel); el=me._i=document.createElement('div'); els=me._i__text=document.createElement('div'); el.className='ggskin ggskin_textdiv'; el.ggTextDiv=els; el.ggId="i"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_text "; el.ggType='text'; hs =''; hs+='border : 0px solid #000000;'; hs+='color : rgba(255,255,255,1);'; hs+='cursor : pointer;'; hs+='height : 25px;'; hs+='left : calc(50% - ((25px + 0px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((25px + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 25px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; hs =''; hs += 'box-sizing: border-box;'; hs+='width: 100%;'; hs+='height: 100%;'; hs+='font-size: 22px;'; hs+='font-weight: bolder;'; hs+='text-align: center;'; hs+='white-space: pre;'; hs+='padding: 0px 1px 0px 1px;'; hs+='overflow: hidden;'; els.setAttribute('style',hs); me._i.ggUpdateText=function() { var params = []; var hs = player._("i", params); if (hs!=this.ggText) { this.ggText=hs; this.ggTextDiv.innerHTML=hs; if (this.ggUpdatePosition) this.ggUpdatePosition(); } } me._i.ggUpdateText(); el.appendChild(els); me._i.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 me.ggNodeId; } me._i.ggUpdatePosition=function (useTransition) { } me._hs.appendChild(me._i); el=me._hs_image_animated_1_infolabel=document.createElement('div'); el.ggId="hs_image_animated_1_infoLabel"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:0.5,sy:0.5,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='border : 3px solid #000000;'; hs+='border-radius : 999px;'; hs+='cursor : pointer;'; hs+='height : 55px;'; hs+='left : calc(50% - ((55px + 6px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((55px + 6px) / 2) + 0px);'; hs+='visibility : hidden;'; hs+='width : 55px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; el.style.transform=parameterToTransform(el.ggParameter); me._hs_image_animated_1_infolabel.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 me.ggNodeId; } me._hs_image_animated_1_infolabel.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._hs_image_animated_1_infolabel.ggCurrentLogicStateScaling != newLogicStateScaling) { me._hs_image_animated_1_infolabel.ggCurrentLogicStateScaling = newLogicStateScaling; me._hs_image_animated_1_infolabel.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_1_infolabel.ggCurrentLogicStateScaling == 0) { me._hs_image_animated_1_infolabel.ggParameter.sx = 0.8; me._hs_image_animated_1_infolabel.ggParameter.sy = 0.8; me._hs_image_animated_1_infolabel.style.transform=parameterToTransform(me._hs_image_animated_1_infolabel.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_1_infolabel);}, 550); } else { me._hs_image_animated_1_infolabel.ggParameter.sx = 0.5; me._hs_image_animated_1_infolabel.ggParameter.sy = 0.5; me._hs_image_animated_1_infolabel.style.transform=parameterToTransform(me._hs_image_animated_1_infolabel.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_1_infolabel);}, 550); } } } me._hs_image_animated_1_infolabel.logicBlock_scaling(); me._hs_image_animated_1_infolabel.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('blinken_starten') == true)) && ((me.elementMouseOver['hs_image_animated_1_infolabel'] == false)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._hs_image_animated_1_infolabel.ggCurrentLogicStateVisible != newLogicStateVisible) { me._hs_image_animated_1_infolabel.ggCurrentLogicStateVisible = newLogicStateVisible; me._hs_image_animated_1_infolabel.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_1_infolabel.ggCurrentLogicStateVisible == 0) { me._hs_image_animated_1_infolabel.style.visibility=(Number(me._hs_image_animated_1_infolabel.style.opacity)>0||!me._hs_image_animated_1_infolabel.style.opacity)?'inherit':'hidden'; me._hs_image_animated_1_infolabel.ggVisible=true; } else { me._hs_image_animated_1_infolabel.style.visibility="hidden"; me._hs_image_animated_1_infolabel.ggVisible=false; } } } me._hs_image_animated_1_infolabel.logicBlock_visible(); me._hs_image_animated_1_infolabel.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._hs_image_animated_1_infolabel.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._hs_image_animated_1_infolabel.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._hs_image_animated_1_infolabel.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_1_infolabel.ggCurrentLogicStateAlpha == 0) { setTimeout(function() { if (me._hs_image_animated_1_infolabel.style.opacity == 0.0) { me._hs_image_animated_1_infolabel.style.visibility="hidden"; } }, 505); me._hs_image_animated_1_infolabel.style.opacity=0; } else { me._hs_image_animated_1_infolabel.style.visibility=me._hs_image_animated_1_infolabel.ggVisible?'inherit':'hidden'; me._hs_image_animated_1_infolabel.style.opacity=1; } } } me._hs_image_animated_1_infolabel.logicBlock_alpha(); me._hs_image_animated_1_infolabel.onmouseover=function (e) { me.elementMouseOver['hs_image_animated_1_infolabel']=true; me._hs_image_animated_1_infolabel.logicBlock_visible(); } me._hs_image_animated_1_infolabel.onmouseout=function (e) { me.elementMouseOver['hs_image_animated_1_infolabel']=false; me._hs_image_animated_1_infolabel.logicBlock_visible(); } me._hs_image_animated_1_infolabel.ggCurrentLogicStateScaling = -1; me._hs_image_animated_1_infolabel.ggCurrentLogicStateVisible = -1; me._hs_image_animated_1_infolabel.ggCurrentLogicStateAlpha = -1; me._hs_image_animated_1_infolabel.ggUpdateConditionTimer=function () { if (me.elementMouseOver['hs_image_animated_1_infolabel']) { me.elementMouseOver['hs_image_animated_1_infolabel']=true; } } me._hs_image_animated_1_infolabel.ggUpdatePosition=function (useTransition) { } me._hs.appendChild(me._hs_image_animated_1_infolabel); el=me._hs_image_animated_2_infolabel=document.createElement('div'); el.ggId="hs_image_animated_2_infoLabel"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='background : rgba(0,0,0,0.196078);'; hs+='border : 2px solid #000000;'; hs+='border-radius : 999px;'; hs+='cursor : pointer;'; hs+='height : 75px;'; hs+='left : calc(50% - ((75px + 4px) / 2) + 0px);'; hs+='opacity : 0;'; hs+='position : absolute;'; hs+='top : calc(50% - ((75px + 4px) / 2) + 0px);'; hs+='visibility : hidden;'; hs+='width : 75px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._hs_image_animated_2_infolabel.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 me.ggNodeId; } me._hs_image_animated_2_infolabel.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._hs_image_animated_2_infolabel.ggCurrentLogicStateScaling != newLogicStateScaling) { me._hs_image_animated_2_infolabel.ggCurrentLogicStateScaling = newLogicStateScaling; me._hs_image_animated_2_infolabel.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_2_infolabel.ggCurrentLogicStateScaling == 0) { me._hs_image_animated_2_infolabel.ggParameter.sx = 0.8; me._hs_image_animated_2_infolabel.ggParameter.sy = 0.8; me._hs_image_animated_2_infolabel.style.transform=parameterToTransform(me._hs_image_animated_2_infolabel.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_2_infolabel);}, 550); } else { me._hs_image_animated_2_infolabel.ggParameter.sx = 1; me._hs_image_animated_2_infolabel.ggParameter.sy = 1; me._hs_image_animated_2_infolabel.style.transform=parameterToTransform(me._hs_image_animated_2_infolabel.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_2_infolabel);}, 550); } } } me._hs_image_animated_2_infolabel.logicBlock_scaling(); me._hs_image_animated_2_infolabel.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('blinken_starten') == true)) && ((me.elementMouseOver['hs_image_animated_2_infolabel'] == false)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._hs_image_animated_2_infolabel.ggCurrentLogicStateVisible != newLogicStateVisible) { me._hs_image_animated_2_infolabel.ggCurrentLogicStateVisible = newLogicStateVisible; me._hs_image_animated_2_infolabel.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_2_infolabel.ggCurrentLogicStateVisible == 0) { me._hs_image_animated_2_infolabel.style.visibility=(Number(me._hs_image_animated_2_infolabel.style.opacity)>0||!me._hs_image_animated_2_infolabel.style.opacity)?'inherit':'hidden'; me._hs_image_animated_2_infolabel.ggVisible=true; } else { me._hs_image_animated_2_infolabel.style.visibility="hidden"; me._hs_image_animated_2_infolabel.ggVisible=false; } } } me._hs_image_animated_2_infolabel.logicBlock_visible(); me._hs_image_animated_2_infolabel.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._hs_image_animated_2_infolabel.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._hs_image_animated_2_infolabel.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._hs_image_animated_2_infolabel.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_2_infolabel.ggCurrentLogicStateAlpha == 0) { me._hs_image_animated_2_infolabel.style.visibility=me._hs_image_animated_2_infolabel.ggVisible?'inherit':'hidden'; me._hs_image_animated_2_infolabel.style.opacity=0.65; } else { setTimeout(function() { if (me._hs_image_animated_2_infolabel.style.opacity == 0.0) { me._hs_image_animated_2_infolabel.style.visibility="hidden"; } }, 505); me._hs_image_animated_2_infolabel.style.opacity=0; } } } me._hs_image_animated_2_infolabel.logicBlock_alpha(); me._hs_image_animated_2_infolabel.onmouseover=function (e) { me.elementMouseOver['hs_image_animated_2_infolabel']=true; me._hs_image_animated_2_infolabel.logicBlock_visible(); } me._hs_image_animated_2_infolabel.onmouseout=function (e) { me.elementMouseOver['hs_image_animated_2_infolabel']=false; me._hs_image_animated_2_infolabel.logicBlock_visible(); } me._hs_image_animated_2_infolabel.ggCurrentLogicStateScaling = -1; me._hs_image_animated_2_infolabel.ggCurrentLogicStateVisible = -1; me._hs_image_animated_2_infolabel.ggCurrentLogicStateAlpha = -1; me._hs_image_animated_2_infolabel.ggUpdateConditionTimer=function () { if (me.elementMouseOver['hs_image_animated_2_infolabel']) { me.elementMouseOver['hs_image_animated_2_infolabel']=true; } } me._hs_image_animated_2_infolabel.ggUpdatePosition=function (useTransition) { } me._hs.appendChild(me._hs_image_animated_2_infolabel); me._infolabel.appendChild(me._hs); me._hs_image_i_1_infolabel.logicBlock_scaling(); me._hs_image_i_1_infolabel.logicBlock_bordercolor(); me._hs_image_animated_1_infolabel.logicBlock_scaling(); me._hs_image_animated_1_infolabel.logicBlock_visible(); me._hs_image_animated_1_infolabel.logicBlock_alpha(); me._hs_image_animated_2_infolabel.logicBlock_scaling(); me._hs_image_animated_2_infolabel.logicBlock_visible(); me._hs_image_animated_2_infolabel.logicBlock_alpha(); me.ggEvent_changenode=function() { me._hs_image_i_1_infolabel.logicBlock_scaling(); me._hs_image_i_1_infolabel.logicBlock_bordercolor(); me._hs_image_animated_1_infolabel.logicBlock_scaling(); me._hs_image_animated_1_infolabel.logicBlock_visible(); me._hs_image_animated_1_infolabel.logicBlock_alpha(); me._hs_image_animated_2_infolabel.logicBlock_scaling(); me._hs_image_animated_2_infolabel.logicBlock_visible(); me._hs_image_animated_2_infolabel.logicBlock_alpha(); }; me.ggEvent_configloaded=function() { me._hs_image_i_1_infolabel.logicBlock_scaling(); me._hs_image_i_1_infolabel.logicBlock_bordercolor(); me._hs_image_animated_1_infolabel.logicBlock_scaling(); me._hs_image_animated_1_infolabel.logicBlock_visible(); me._hs_image_animated_1_infolabel.logicBlock_alpha(); me._hs_image_animated_2_infolabel.logicBlock_scaling(); me._hs_image_animated_2_infolabel.logicBlock_visible(); me._hs_image_animated_2_infolabel.logicBlock_alpha(); }; me.ggEvent_varchanged_autoExpanded=function() { me._hs_image_i_1_infolabel.logicBlock_scaling(); me._hs_image_i_1_infolabel.logicBlock_bordercolor(); me._hs_image_animated_1_infolabel.logicBlock_visible(); me._hs_image_animated_2_infolabel.logicBlock_visible(); }; me.ggEvent_varchanged_blinken_starten=function() { me._hs_image_animated_1_infolabel.logicBlock_visible(); me._hs_image_animated_2_infolabel.logicBlock_visible(); }; me.ggEvent_varchanged_ht_ani=function() { me._hs_image_animated_1_infolabel.logicBlock_scaling(); me._hs_image_animated_1_infolabel.logicBlock_alpha(); me._hs_image_animated_2_infolabel.logicBlock_scaling(); me._hs_image_animated_2_infolabel.logicBlock_alpha(); }; me.hotspotTimerEvent=function() { setTimeout(function() { me.hotspotTimerEvent(); }, 10); me._infolabel.ggUpdateConditionTimer(); me._hs.ggUpdateConditionTimer(); me._hs_image_animated_1_infolabel.ggUpdateConditionTimer(); me._hs_image_animated_2_infolabel.ggUpdateConditionTimer(); } me.hotspotTimerEvent(); me.__div = me._infolabel; }; function SkinHotspotClass_infolabel_small(parentScope,hotspot) { var me=this; var flag=false; var hs=''; me.parentScope=parentScope; me.hotspot=hotspot; var nodeId=String(hotspot.url); nodeId=(nodeId.charAt(0)=='{')?nodeId.substr(1, nodeId.length - 2):''; // } me.ggUserdata=skin.player.getNodeUserdata(nodeId); me.elementMouseDown={}; me.elementMouseOver={}; me.findElements=function(id,regex) { return skin.findElements(id,regex); } el=me._infolabel_small=document.createElement('div'); el.ggId="infoLabel_small"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_hotspot "; el.ggType='hotspot'; hs =''; hs+='height : 0px;'; hs+='left : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 0px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._infolabel_small.ggIsActive=function() { return player.getCurrentNode()==this.ggElementNodeId(); } el.ggElementNodeId=function() { if (me.hotspot.url!='' && me.hotspot.url.charAt(0)=='{') { // } return me.hotspot.url.substr(1, me.hotspot.url.length - 2); } else { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } else { return player.getCurrentNode(); } } } me._infolabel_small.onclick=function (e) { player.triggerEvent('hsproxyclick', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._infolabel_small.ondblclick=function (e) { player.triggerEvent('hsproxydblclick', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._infolabel_small.onmouseover=function (e) { player.setActiveHotspot(me.hotspot); me.elementMouseOver['infolabel_small']=true; me._hs_image_i_1_infolabel_small.logicBlock_scaling(); me._hs_image_i_1_infolabel_small.logicBlock_bordercolor(); player.triggerEvent('hsproxyover', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._infolabel_small.onmouseout=function (e) { player.setActiveHotspot(null); me.elementMouseOver['infolabel_small']=false; me._hs_image_i_1_infolabel_small.logicBlock_scaling(); me._hs_image_i_1_infolabel_small.logicBlock_bordercolor(); player.triggerEvent('hsproxyout', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._infolabel_small.ggUpdateConditionTimer=function () { if (me.elementMouseOver['infolabel_small']) { player.setActiveHotspot(me.hotspot); me.elementMouseOver['infolabel_small']=true; me._hs_image_i_1_infolabel_small.logicBlock_scaling(); me._hs_image_i_1_infolabel_small.logicBlock_bordercolor(); } } me._infolabel_small.ggUpdatePosition=function (useTransition) { } el=me._infolabelhovercontainer_small=document.createElement('div'); el.ggId="InfoLabelHoverContainer_small"; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_container "; el.ggType='container'; hs =''; hs+='z-index: 4;'; hs+='height : auto;'; hs+='left : -18px;'; hs+='position : absolute;'; hs+='top : calc(50% - ((auto + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 100%;'; hs+='pointer-events:none;'; hs+='min-width: 200px;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._infolabelhovercontainer_small.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 me.ggNodeId; } me._infolabelhovercontainer_small.ggUpdatePosition=function (useTransition) { } el=me._infolabelcontainer_small=document.createElement('div'); el.ggId="infoLabelContainer_small"; el.ggDy=-28; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_container "; el.ggType='container'; hs =''; hs+='height : 100%;'; hs+='left : 60px;'; hs+='position : absolute;'; hs+='top : calc(50% - ((100% + 0px) / 2) - 28px);'; hs+='visibility : inherit;'; hs+='width : 100%;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._infolabelcontainer_small.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 me.ggNodeId; } me._infolabelcontainer_small.ggUpdatePosition=function (useTransition) { } el=me._infolabeltextcontainer_small=document.createElement('div'); el.ggId="infoLabelTextContainer_small"; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_container infoLabelTextContainer"; el.ggType='container'; hs =''; hs+='height : auto;'; hs+='left : 0px;'; hs+='position : absolute;'; hs+='top : calc(50% - ((auto + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 100%;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._infolabeltextcontainer_small.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 me.ggNodeId; } me._infolabeltextcontainer_small.ggUpdatePosition=function (useTransition) { } me._infolabelcontainer_small.appendChild(me._infolabeltextcontainer_small); me._infolabelhovercontainer_small.appendChild(me._infolabelcontainer_small); me._infolabel_small.appendChild(me._infolabelhovercontainer_small); el=me._hs_image_i_1_infolabel_small=document.createElement('div'); el.ggId="hs_image_i_1_infoLabel_small"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:0.5,sy:0.5,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='background : rgba(0,0,0,0.352941);'; hs+='border : 6px solid #000000;'; hs+='border-radius : 999px;'; hs+='cursor : pointer;'; hs+='height : 55px;'; hs+='left : calc(50% - ((55px + 12px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((55px + 12px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 55px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; el.style.transform=parameterToTransform(el.ggParameter); me._hs_image_i_1_infolabel_small.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 me.ggNodeId; } me._hs_image_i_1_infolabel_small.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((me.elementMouseOver['infolabel_small'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._hs_image_i_1_infolabel_small.ggCurrentLogicStateScaling != newLogicStateScaling) { me._hs_image_i_1_infolabel_small.ggCurrentLogicStateScaling = newLogicStateScaling; me._hs_image_i_1_infolabel_small.style.transition='transform 500ms ease 0ms, border-color 500ms ease 0ms'; if (me._hs_image_i_1_infolabel_small.ggCurrentLogicStateScaling == 0) { me._hs_image_i_1_infolabel_small.ggParameter.sx = 0.8; me._hs_image_i_1_infolabel_small.ggParameter.sy = 0.8; me._hs_image_i_1_infolabel_small.style.transform=parameterToTransform(me._hs_image_i_1_infolabel_small.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_i_1_infolabel_small);}, 550); } else { me._hs_image_i_1_infolabel_small.ggParameter.sx = 0.5; me._hs_image_i_1_infolabel_small.ggParameter.sy = 0.5; me._hs_image_i_1_infolabel_small.style.transform=parameterToTransform(me._hs_image_i_1_infolabel_small.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_i_1_infolabel_small);}, 550); } } } me._hs_image_i_1_infolabel_small.logicBlock_scaling(); me._hs_image_i_1_infolabel_small.logicBlock_bordercolor = function() { var newLogicStateBorderColor; if ( ((me.elementMouseOver['infolabel_small'] == true)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateBorderColor = 0; } else { newLogicStateBorderColor = -1; } if (me._hs_image_i_1_infolabel_small.ggCurrentLogicStateBorderColor != newLogicStateBorderColor) { me._hs_image_i_1_infolabel_small.ggCurrentLogicStateBorderColor = newLogicStateBorderColor; me._hs_image_i_1_infolabel_small.style.transition='transform 500ms ease 0ms, border-color 500ms ease 0ms'; if (me._hs_image_i_1_infolabel_small.ggCurrentLogicStateBorderColor == 0) { me._hs_image_i_1_infolabel_small.style.borderColor="rgba(230,230,230,1)"; } else { me._hs_image_i_1_infolabel_small.style.borderColor="rgba(0,0,0,1)"; } } } me._hs_image_i_1_infolabel_small.logicBlock_bordercolor(); me._hs_image_i_1_infolabel_small.ggUpdatePosition=function (useTransition) { } me._infolabel_small.appendChild(me._hs_image_i_1_infolabel_small); el=me._i_small=document.createElement('div'); els=me._i_small__text=document.createElement('div'); el.className='ggskin ggskin_textdiv'; el.ggTextDiv=els; el.ggId="i_small"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_text "; el.ggType='text'; hs =''; hs+='border : 0px solid #000000;'; hs+='color : rgba(255,255,255,1);'; hs+='cursor : default;'; hs+='height : 20px;'; hs+='left : calc(50% - ((20px + 0px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((20px + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 20px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; hs =''; hs += 'box-sizing: border-box;'; hs+='cursor: default;'; hs+='width: 100%;'; hs+='height: 100%;'; hs+='font-size: 18px;'; hs+='font-weight: 900;'; hs+='text-align: center;'; hs+='white-space: pre;'; hs+='padding: 0px 1px 0px 1px;'; hs+='overflow: hidden;'; els.setAttribute('style',hs); me._i_small.ggUpdateText=function() { var params = []; var hs = player._("i", params); if (hs!=this.ggText) { this.ggText=hs; this.ggTextDiv.innerHTML=hs; if (this.ggUpdatePosition) this.ggUpdatePosition(); } } me._i_small.ggUpdateText(); el.appendChild(els); me._i_small.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 me.ggNodeId; } me._i_small.ggUpdatePosition=function (useTransition) { } me._infolabel_small.appendChild(me._i_small); el=me._hs_image_animated_1_infolabel_small=document.createElement('div'); el.ggId="hs_image_animated_1_infoLabel_small"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:0.5,sy:0.5,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='border : 3px solid #000000;'; hs+='border-radius : 999px;'; hs+='cursor : pointer;'; hs+='height : 35px;'; hs+='left : calc(50% - ((35px + 6px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((35px + 6px) / 2) + 0px);'; hs+='visibility : hidden;'; hs+='width : 35px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; el.style.transform=parameterToTransform(el.ggParameter); me._hs_image_animated_1_infolabel_small.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 me.ggNodeId; } me._hs_image_animated_1_infolabel_small.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._hs_image_animated_1_infolabel_small.ggCurrentLogicStateScaling != newLogicStateScaling) { me._hs_image_animated_1_infolabel_small.ggCurrentLogicStateScaling = newLogicStateScaling; me._hs_image_animated_1_infolabel_small.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_1_infolabel_small.ggCurrentLogicStateScaling == 0) { me._hs_image_animated_1_infolabel_small.ggParameter.sx = 0.8; me._hs_image_animated_1_infolabel_small.ggParameter.sy = 0.8; me._hs_image_animated_1_infolabel_small.style.transform=parameterToTransform(me._hs_image_animated_1_infolabel_small.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_1_infolabel_small);}, 550); } else { me._hs_image_animated_1_infolabel_small.ggParameter.sx = 0.5; me._hs_image_animated_1_infolabel_small.ggParameter.sy = 0.5; me._hs_image_animated_1_infolabel_small.style.transform=parameterToTransform(me._hs_image_animated_1_infolabel_small.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_1_infolabel_small);}, 550); } } } me._hs_image_animated_1_infolabel_small.logicBlock_scaling(); me._hs_image_animated_1_infolabel_small.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('blinken_starten') == true)) && ((me.elementMouseOver['hs_image_animated_1_infolabel_small'] == false)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._hs_image_animated_1_infolabel_small.ggCurrentLogicStateVisible != newLogicStateVisible) { me._hs_image_animated_1_infolabel_small.ggCurrentLogicStateVisible = newLogicStateVisible; me._hs_image_animated_1_infolabel_small.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_1_infolabel_small.ggCurrentLogicStateVisible == 0) { me._hs_image_animated_1_infolabel_small.style.visibility=(Number(me._hs_image_animated_1_infolabel_small.style.opacity)>0||!me._hs_image_animated_1_infolabel_small.style.opacity)?'inherit':'hidden'; me._hs_image_animated_1_infolabel_small.ggVisible=true; } else { me._hs_image_animated_1_infolabel_small.style.visibility="hidden"; me._hs_image_animated_1_infolabel_small.ggVisible=false; } } } me._hs_image_animated_1_infolabel_small.logicBlock_visible(); me._hs_image_animated_1_infolabel_small.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._hs_image_animated_1_infolabel_small.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._hs_image_animated_1_infolabel_small.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._hs_image_animated_1_infolabel_small.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_1_infolabel_small.ggCurrentLogicStateAlpha == 0) { setTimeout(function() { if (me._hs_image_animated_1_infolabel_small.style.opacity == 0.0) { me._hs_image_animated_1_infolabel_small.style.visibility="hidden"; } }, 505); me._hs_image_animated_1_infolabel_small.style.opacity=0; } else { me._hs_image_animated_1_infolabel_small.style.visibility=me._hs_image_animated_1_infolabel_small.ggVisible?'inherit':'hidden'; me._hs_image_animated_1_infolabel_small.style.opacity=1; } } } me._hs_image_animated_1_infolabel_small.logicBlock_alpha(); me._hs_image_animated_1_infolabel_small.onmouseover=function (e) { me.elementMouseOver['hs_image_animated_1_infolabel_small']=true; me._hs_image_animated_1_infolabel_small.logicBlock_visible(); } me._hs_image_animated_1_infolabel_small.onmouseout=function (e) { me.elementMouseOver['hs_image_animated_1_infolabel_small']=false; me._hs_image_animated_1_infolabel_small.logicBlock_visible(); } me._hs_image_animated_1_infolabel_small.ggCurrentLogicStateScaling = -1; me._hs_image_animated_1_infolabel_small.ggCurrentLogicStateVisible = -1; me._hs_image_animated_1_infolabel_small.ggCurrentLogicStateAlpha = -1; me._hs_image_animated_1_infolabel_small.ggUpdateConditionTimer=function () { if (me.elementMouseOver['hs_image_animated_1_infolabel_small']) { me.elementMouseOver['hs_image_animated_1_infolabel_small']=true; } } me._hs_image_animated_1_infolabel_small.ggUpdatePosition=function (useTransition) { } me._infolabel_small.appendChild(me._hs_image_animated_1_infolabel_small); el=me._hs_image_animated_2_infolabel_small=document.createElement('div'); el.ggId="hs_image_animated_2_infoLabel_small"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='background : rgba(0,0,0,0.196078);'; hs+='border : 2px solid #000000;'; hs+='border-radius : 999px;'; hs+='cursor : pointer;'; hs+='height : 50px;'; hs+='left : calc(50% - ((50px + 4px) / 2) + 0px);'; hs+='opacity : 0;'; hs+='position : absolute;'; hs+='top : calc(50% - ((50px + 4px) / 2) + 0px);'; hs+='visibility : hidden;'; hs+='width : 50px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._hs_image_animated_2_infolabel_small.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 me.ggNodeId; } me._hs_image_animated_2_infolabel_small.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._hs_image_animated_2_infolabel_small.ggCurrentLogicStateScaling != newLogicStateScaling) { me._hs_image_animated_2_infolabel_small.ggCurrentLogicStateScaling = newLogicStateScaling; me._hs_image_animated_2_infolabel_small.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_2_infolabel_small.ggCurrentLogicStateScaling == 0) { me._hs_image_animated_2_infolabel_small.ggParameter.sx = 0.8; me._hs_image_animated_2_infolabel_small.ggParameter.sy = 0.8; me._hs_image_animated_2_infolabel_small.style.transform=parameterToTransform(me._hs_image_animated_2_infolabel_small.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_2_infolabel_small);}, 550); } else { me._hs_image_animated_2_infolabel_small.ggParameter.sx = 1; me._hs_image_animated_2_infolabel_small.ggParameter.sy = 1; me._hs_image_animated_2_infolabel_small.style.transform=parameterToTransform(me._hs_image_animated_2_infolabel_small.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_2_infolabel_small);}, 550); } } } me._hs_image_animated_2_infolabel_small.logicBlock_scaling(); me._hs_image_animated_2_infolabel_small.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('blinken_starten') == true)) && ((me.elementMouseOver['hs_image_animated_2_infolabel_small'] == false)) || ((player.getVariableValue('autoExpanded') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._hs_image_animated_2_infolabel_small.ggCurrentLogicStateVisible != newLogicStateVisible) { me._hs_image_animated_2_infolabel_small.ggCurrentLogicStateVisible = newLogicStateVisible; me._hs_image_animated_2_infolabel_small.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_2_infolabel_small.ggCurrentLogicStateVisible == 0) { me._hs_image_animated_2_infolabel_small.style.visibility=(Number(me._hs_image_animated_2_infolabel_small.style.opacity)>0||!me._hs_image_animated_2_infolabel_small.style.opacity)?'inherit':'hidden'; me._hs_image_animated_2_infolabel_small.ggVisible=true; } else { me._hs_image_animated_2_infolabel_small.style.visibility="hidden"; me._hs_image_animated_2_infolabel_small.ggVisible=false; } } } me._hs_image_animated_2_infolabel_small.logicBlock_visible(); me._hs_image_animated_2_infolabel_small.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._hs_image_animated_2_infolabel_small.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._hs_image_animated_2_infolabel_small.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._hs_image_animated_2_infolabel_small.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_2_infolabel_small.ggCurrentLogicStateAlpha == 0) { me._hs_image_animated_2_infolabel_small.style.visibility=me._hs_image_animated_2_infolabel_small.ggVisible?'inherit':'hidden'; me._hs_image_animated_2_infolabel_small.style.opacity=0.65; } else { setTimeout(function() { if (me._hs_image_animated_2_infolabel_small.style.opacity == 0.0) { me._hs_image_animated_2_infolabel_small.style.visibility="hidden"; } }, 505); me._hs_image_animated_2_infolabel_small.style.opacity=0; } } } me._hs_image_animated_2_infolabel_small.logicBlock_alpha(); me._hs_image_animated_2_infolabel_small.onmouseover=function (e) { me.elementMouseOver['hs_image_animated_2_infolabel_small']=true; me._hs_image_animated_2_infolabel_small.logicBlock_visible(); } me._hs_image_animated_2_infolabel_small.onmouseout=function (e) { me.elementMouseOver['hs_image_animated_2_infolabel_small']=false; me._hs_image_animated_2_infolabel_small.logicBlock_visible(); } me._hs_image_animated_2_infolabel_small.ggCurrentLogicStateScaling = -1; me._hs_image_animated_2_infolabel_small.ggCurrentLogicStateVisible = -1; me._hs_image_animated_2_infolabel_small.ggCurrentLogicStateAlpha = -1; me._hs_image_animated_2_infolabel_small.ggUpdateConditionTimer=function () { if (me.elementMouseOver['hs_image_animated_2_infolabel_small']) { me.elementMouseOver['hs_image_animated_2_infolabel_small']=true; } } me._hs_image_animated_2_infolabel_small.ggUpdatePosition=function (useTransition) { } me._infolabel_small.appendChild(me._hs_image_animated_2_infolabel_small); el=me._hover_container_small=document.createElement('div'); el.ggId="Hover Container small"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='z-index: 5;'; hs+='border : 0px solid #000000;'; hs+='cursor : pointer;'; hs+='height : 50px;'; hs+='left : calc(50% - ((50px + 0px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((50px + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 50px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._hover_container_small.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 me.ggNodeId; } me._hover_container_small.onclick=function (e) { if ( ( ((player.getHasTouch() == true)) ) ) { (function(){ onClick(true); function onMouseEnter(){ waitForHotspot().then(function(hs){ if(player.infoHotspot && player.infoHotspot.div){ if(player.infoHotspot.hs.id === hs.id){ show(); }else{ player.infoHotspot.div.remove(); create(hs); show(); } }else{ create(hs); show(); } }); } function waitForHotspot(){ return new Promise(function(resolve){ var interval = setInterval(function(){ if(player.hotspot.type !== "empty"){ clearInterval(interval); resolve(player.hotspot); } },10) }) } function create(hs,isSmall){ var infoHotspot = { isSmall : isSmall || false, hs : {...hs}, textContainer : hs.div.querySelector(".infoLabelTextContainer"), headline: player.hotspot.title, paragraphs : player.hotspot.description.split("\n"), footer : player.hotspot.target, div : document.createElement("div"), transfromString : player.hotspot.url, }; player.infoHotspot = infoHotspot; createContainer(); if(infoHotspot.headline){ addHeadline(infoHotspot.headline,infoHotspot.isSmall) } if(infoHotspot.paragraphs){ addParagraphs(infoHotspot.paragraphs,infoHotspot.isSmall) } if(infoHotspot.footer && infoHotspot.footer !== "_blank"){ addFooter(infoHotspot.footer,infoHotspot.isSmall) } setTransfromDirection(infoHotspot.transfromString || "") } function show(){ return new Promise(function(resolve){ player.infoHotspot.div.style.opacity = "1"; player.infoHotspot.div.style.height = "auto"; if(player.infoHotspot.textContainer.getBoundingClientRect){ player.infoHotspot.textContainer.parentElement.parentElement.style.height = player.infoHotspot.textContainer.getBoundingClientRect().height + "px"; } setTimeout(resolve,1000); }) } function setTransfromDirection(dirString){ let hor = "0px"; let vert = "0px"; if(dirString.toLowerCase().includes("left") || dirString.toLowerCase().includes("links")){ hor = "calc(-100% - 85px)"; } if(dirString.toLowerCase().includes("top") || dirString.toLowerCase().includes("oben")){ vert = "calc(-100% + 50px)"; } let translateString = `translate(${hor}, ${vert})`; console.log(translateString); player.infoHotspot.textContainer.parentElement.style.transform = translateString; } function createContainer(){ player.infoHotspot.div.classList.add("infoLabelContainerInner"); player.infoHotspot.textContainer.append(player.infoHotspot.div) } function addHeadline(headlineText,isSmall){ let headline = document.createElement("h2") if(isSmall){ headline.classList.add("infoLabelHeader-small"); }else{ headline.classList.add("infoLabelHeader"); } headline.innerText = headlineText; let line = document.createElement("hr") if(isSmall){ line.classList.add("infoLabelHeaderDivider-small"); }else{ line.classList.add("infoLabelHeaderDivider"); } player.infoHotspot.div.append(headline) player.infoHotspot.div.append(line) } function addParagraphs(paragraphs,isSmall){ paragraphs.forEach(function(paragraphText, i){ let paragraph = document.createElement("p") if(isSmall){ paragraph.classList.add("infoLabelParagraph-small"); }else{ paragraph.classList.add("infoLabelParagraph"); } paragraph.innerText = paragraphText; player.infoHotspot.div.append(paragraph); if( i !== paragraphs.length -1){ let line = document.createElement("hr") if(isSmall){ line.classList.add("infoLabelDivider-small"); }else{ line.classList.add("infoLabelDivider"); } player.infoHotspot.div.append(line); } }); } function addFooter(footerText,isSmall){ let footer = document.createElement("h3"); footer.innerText = footerText; if(isSmall){ footer.classList.add("infoLabelFooter-small"); }else{ footer.classList.add("infoLabelFooter"); } player.infoHotspot.div.append(footer); } function hide(){ return new Promise(function(resolve){ player.infoHotspot.div.style.opacity = "0"; player.infoHotspot.div.style.height = "0px"; setTimeout(resolve,1000) }); } function toggleVisibility(){ if(player.infoHotspot && player.infoHotspot.div){ if(player.infoHotspot.div.style.opacity !== "1"){ show(); }else{ hide(); } } } function onClick(isSmall){ waitForHotspot().then(function(hs){ if(player.infoHotspot && player.infoHotspot.div && player.infoHotspot.hs.id === hs.id){ toggleVisibility() }else{ if(player.infoHotspot && player.infoHotspot.div){ player.infoHotspot.div.remove(); } create(hs,isSmall); show(); } }); } })(); } } me._hover_container_small.onmouseover=function (e) { if ( ( ((player.getHasTouch() == false)) ) ) { (function(){ onMouseEnter(true); function onMouseEnter(isSmall){ waitForHotspot().then(function(hs){ if(player.infoHotspot && player.infoHotspot.div){ if(player.infoHotspot.hs.id === hs.id){ show(); }else{ player.infoHotspot.div.remove(); create(hs,isSmall); show(); } }else{ create(hs,isSmall); show(); } }); } function waitForHotspot(){ return new Promise(function(resolve){ var interval = setInterval(function(){ if(player.hotspot.type !== "empty"){ clearInterval(interval); resolve(player.hotspot); } },10) }) } function create(hs,isSmall){ var infoHotspot = { isSmall : isSmall || false, hs : {...hs}, textContainer : hs.div.querySelector(".infoLabelTextContainer"), headline: player.hotspot.title, paragraphs : player.hotspot.description.split("\n"), footer : player.hotspot.target, div : document.createElement("div"), transfromString : player.hotspot.url, }; player.infoHotspot = infoHotspot; createContainer(); if(infoHotspot.headline){ addHeadline(infoHotspot.headline,infoHotspot.isSmall) } if(infoHotspot.paragraphs){ addParagraphs(infoHotspot.paragraphs,infoHotspot.isSmall) } if(infoHotspot.footer && infoHotspot.footer !== "_blank"){ addFooter(infoHotspot.footer,infoHotspot.isSmall) } setTransfromDirection(infoHotspot.transfromString || "") } function show(){ return new Promise(function(resolve){ player.infoHotspot.div.style.opacity = "1"; player.infoHotspot.div.style.height = "auto"; if(player.infoHotspot.textContainer.getBoundingClientRect){ player.infoHotspot.textContainer.parentElement.parentElement.style.height = player.infoHotspot.textContainer.getBoundingClientRect().height + "px"; } setTimeout(resolve,1000); }) } function setTransfromDirection(dirString){ let hor = "0px"; let vert = "0px"; if(dirString.toLowerCase().includes("left") || dirString.toLowerCase().includes("links")){ hor = "calc(-100% - 85px)"; } if(dirString.toLowerCase().includes("top") || dirString.toLowerCase().includes("oben")){ vert = "calc(-100% + 50px)"; } let translateString = `translate(${hor}, ${vert})`; player.infoHotspot.textContainer.parentElement.style.transform = translateString; } function createContainer(){ player.infoHotspot.div.classList.add("infoLabelContainerInner"); player.infoHotspot.textContainer.append(player.infoHotspot.div) } function addHeadline(headlineText,isSmall){ let headline = document.createElement("h2") if(isSmall){ headline.classList.add("infoLabelHeader-small"); }else{ headline.classList.add("infoLabelHeader"); } headline.innerText = headlineText; let line = document.createElement("hr") if(isSmall){ line.classList.add("infoLabelHeaderDivider-small"); }else{ line.classList.add("infoLabelHeaderDivider"); } player.infoHotspot.div.append(headline) player.infoHotspot.div.append(line) } function addParagraphs(paragraphs,isSmall){ paragraphs.forEach(function(paragraphText, i){ let paragraph = document.createElement("p") if(isSmall){ paragraph.classList.add("infoLabelParagraph-small"); }else{ paragraph.classList.add("infoLabelParagraph"); } paragraph.innerText = paragraphText; player.infoHotspot.div.append(paragraph); if( i !== paragraphs.length -1){ let line = document.createElement("hr") if(isSmall){ line.classList.add("infoLabelDivider-small"); }else{ line.classList.add("infoLabelDivider"); } player.infoHotspot.div.append(line); } }); } function addFooter(footerText,isSmall){ let footer = document.createElement("h3"); footer.innerText = footerText; if(isSmall){ footer.classList.add("infoLabelFooter-small"); }else{ footer.classList.add("infoLabelFooter"); } player.infoHotspot.div.append(footer); } function hide(){ return new Promise(function(resolve){ player.infoHotspot.div.style.opacity = "0"; player.infoHotspot.div.style.height = "0px"; setTimeout(resolve,1000) }); } function toggleVisibility(){ if(player.infoHotspot && player.infoHotspot.div){ if(player.infoHotspot.div.style.opacity !== "1"){ show(); }else{ hide(); } } } function onClick(isSmall){ waitForHotspot().then(function(hs){ if(player.infoHotspot && player.infoHotspot.div && player.infoHotspot.hs.id === hs.id){ toggleVisibility() }else{ if(player.infoHotspot && player.infoHotspot.div){ player.infoHotspot.div.remove(); } create(hs,isSmall); show(); } }); } })(); } me.elementMouseOver['hover_container_small']=true; } me._hover_container_small.onmouseout=function (e) { if ( ( ((player.getHasTouch() == false)) ) ) { (function(){ var infoHotspot = player.infoHotspot; if(infoHotspot && infoHotspot.div){ infoHotspot.div.style.height = "0px"; infoHotspot.div.style.opacity = "0"; } })() } me.elementMouseOver['hover_container_small']=false; } me._hover_container_small.ggUpdateConditionTimer=function () { if (me.elementMouseOver['hover_container_small']) { if ( ( ((player.getHasTouch() == false)) ) ) { (function(){ onMouseEnter(true); function onMouseEnter(isSmall){ waitForHotspot().then(function(hs){ if(player.infoHotspot && player.infoHotspot.div){ if(player.infoHotspot.hs.id === hs.id){ show(); }else{ player.infoHotspot.div.remove(); create(hs,isSmall); show(); } }else{ create(hs,isSmall); show(); } }); } function waitForHotspot(){ return new Promise(function(resolve){ var interval = setInterval(function(){ if(player.hotspot.type !== "empty"){ clearInterval(interval); resolve(player.hotspot); } },10) }) } function create(hs,isSmall){ var infoHotspot = { isSmall : isSmall || false, hs : {...hs}, textContainer : hs.div.querySelector(".infoLabelTextContainer"), headline: player.hotspot.title, paragraphs : player.hotspot.description.split("\n"), footer : player.hotspot.target, div : document.createElement("div"), transfromString : player.hotspot.url, }; player.infoHotspot = infoHotspot; createContainer(); if(infoHotspot.headline){ addHeadline(infoHotspot.headline,infoHotspot.isSmall) } if(infoHotspot.paragraphs){ addParagraphs(infoHotspot.paragraphs,infoHotspot.isSmall) } if(infoHotspot.footer && infoHotspot.footer !== "_blank"){ addFooter(infoHotspot.footer,infoHotspot.isSmall) } setTransfromDirection(infoHotspot.transfromString || "") } function show(){ return new Promise(function(resolve){ player.infoHotspot.div.style.opacity = "1"; player.infoHotspot.div.style.height = "auto"; if(player.infoHotspot.textContainer.getBoundingClientRect){ player.infoHotspot.textContainer.parentElement.parentElement.style.height = player.infoHotspot.textContainer.getBoundingClientRect().height + "px"; } setTimeout(resolve,1000); }) } function setTransfromDirection(dirString){ let hor = "0px"; let vert = "0px"; if(dirString.toLowerCase().includes("left") || dirString.toLowerCase().includes("links")){ hor = "calc(-100% - 85px)"; } if(dirString.toLowerCase().includes("top") || dirString.toLowerCase().includes("oben")){ vert = "calc(-100% + 50px)"; } let translateString = `translate(${hor}, ${vert})`; player.infoHotspot.textContainer.parentElement.style.transform = translateString; } function createContainer(){ player.infoHotspot.div.classList.add("infoLabelContainerInner"); player.infoHotspot.textContainer.append(player.infoHotspot.div) } function addHeadline(headlineText,isSmall){ let headline = document.createElement("h2") if(isSmall){ headline.classList.add("infoLabelHeader-small"); }else{ headline.classList.add("infoLabelHeader"); } headline.innerText = headlineText; let line = document.createElement("hr") if(isSmall){ line.classList.add("infoLabelHeaderDivider-small"); }else{ line.classList.add("infoLabelHeaderDivider"); } player.infoHotspot.div.append(headline) player.infoHotspot.div.append(line) } function addParagraphs(paragraphs,isSmall){ paragraphs.forEach(function(paragraphText, i){ let paragraph = document.createElement("p") if(isSmall){ paragraph.classList.add("infoLabelParagraph-small"); }else{ paragraph.classList.add("infoLabelParagraph"); } paragraph.innerText = paragraphText; player.infoHotspot.div.append(paragraph); if( i !== paragraphs.length -1){ let line = document.createElement("hr") if(isSmall){ line.classList.add("infoLabelDivider-small"); }else{ line.classList.add("infoLabelDivider"); } player.infoHotspot.div.append(line); } }); } function addFooter(footerText,isSmall){ let footer = document.createElement("h3"); footer.innerText = footerText; if(isSmall){ footer.classList.add("infoLabelFooter-small"); }else{ footer.classList.add("infoLabelFooter"); } player.infoHotspot.div.append(footer); } function hide(){ return new Promise(function(resolve){ player.infoHotspot.div.style.opacity = "0"; player.infoHotspot.div.style.height = "0px"; setTimeout(resolve,1000) }); } function toggleVisibility(){ if(player.infoHotspot && player.infoHotspot.div){ if(player.infoHotspot.div.style.opacity !== "1"){ show(); }else{ hide(); } } } function onClick(isSmall){ waitForHotspot().then(function(hs){ if(player.infoHotspot && player.infoHotspot.div && player.infoHotspot.hs.id === hs.id){ toggleVisibility() }else{ if(player.infoHotspot && player.infoHotspot.div){ player.infoHotspot.div.remove(); } create(hs,isSmall); show(); } }); } })(); } me.elementMouseOver['hover_container_small']=true; } } me._hover_container_small.ggUpdatePosition=function (useTransition) { } me._infolabel_small.appendChild(me._hover_container_small); me._hs_image_i_1_infolabel_small.logicBlock_scaling(); me._hs_image_i_1_infolabel_small.logicBlock_bordercolor(); me._hs_image_animated_1_infolabel_small.logicBlock_scaling(); me._hs_image_animated_1_infolabel_small.logicBlock_visible(); me._hs_image_animated_1_infolabel_small.logicBlock_alpha(); me._hs_image_animated_2_infolabel_small.logicBlock_scaling(); me._hs_image_animated_2_infolabel_small.logicBlock_visible(); me._hs_image_animated_2_infolabel_small.logicBlock_alpha(); me.ggEvent_changenode=function() { me._hs_image_i_1_infolabel_small.logicBlock_scaling(); me._hs_image_i_1_infolabel_small.logicBlock_bordercolor(); me._hs_image_animated_1_infolabel_small.logicBlock_scaling(); me._hs_image_animated_1_infolabel_small.logicBlock_visible(); me._hs_image_animated_1_infolabel_small.logicBlock_alpha(); me._hs_image_animated_2_infolabel_small.logicBlock_scaling(); me._hs_image_animated_2_infolabel_small.logicBlock_visible(); me._hs_image_animated_2_infolabel_small.logicBlock_alpha(); }; me.ggEvent_configloaded=function() { me._hs_image_i_1_infolabel_small.logicBlock_scaling(); me._hs_image_i_1_infolabel_small.logicBlock_bordercolor(); me._hs_image_animated_1_infolabel_small.logicBlock_scaling(); me._hs_image_animated_1_infolabel_small.logicBlock_visible(); me._hs_image_animated_1_infolabel_small.logicBlock_alpha(); me._hs_image_animated_2_infolabel_small.logicBlock_scaling(); me._hs_image_animated_2_infolabel_small.logicBlock_visible(); me._hs_image_animated_2_infolabel_small.logicBlock_alpha(); }; me.ggEvent_varchanged_autoExpanded=function() { me._hs_image_i_1_infolabel_small.logicBlock_scaling(); me._hs_image_i_1_infolabel_small.logicBlock_bordercolor(); me._hs_image_animated_1_infolabel_small.logicBlock_visible(); me._hs_image_animated_2_infolabel_small.logicBlock_visible(); }; me.ggEvent_varchanged_blinken_starten=function() { me._hs_image_animated_1_infolabel_small.logicBlock_visible(); me._hs_image_animated_2_infolabel_small.logicBlock_visible(); }; me.ggEvent_varchanged_ht_ani=function() { me._hs_image_animated_1_infolabel_small.logicBlock_scaling(); me._hs_image_animated_1_infolabel_small.logicBlock_alpha(); me._hs_image_animated_2_infolabel_small.logicBlock_scaling(); me._hs_image_animated_2_infolabel_small.logicBlock_alpha(); }; me.hotspotTimerEvent=function() { setTimeout(function() { me.hotspotTimerEvent(); }, 10); me._infolabel_small.ggUpdateConditionTimer(); me._hs_image_animated_1_infolabel_small.ggUpdateConditionTimer(); me._hs_image_animated_2_infolabel_small.ggUpdateConditionTimer(); me._hover_container_small.ggUpdateConditionTimer(); } me.hotspotTimerEvent(); me.__div = me._infolabel_small; }; function SkinHotspotClass_cloudflare_video0(parentScope,hotspot) { var me=this; var flag=false; var hs=''; me.parentScope=parentScope; me.hotspot=hotspot; var nodeId=String(hotspot.url); nodeId=(nodeId.charAt(0)=='{')?nodeId.substr(1, nodeId.length - 2):''; // } me.ggUserdata=skin.player.getNodeUserdata(nodeId); me.elementMouseDown={}; me.elementMouseOver={}; me.findElements=function(id,regex) { return skin.findElements(id,regex); } el=me._cloudflare_video0=document.createElement('div'); el.ggId="Cloudflare Video"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_hotspot "; el.ggType='hotspot'; hs =''; hs+='height : 0px;'; hs+='left : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((0px + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 0px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._cloudflare_video0.ggIsActive=function() { return player.getCurrentNode()==this.ggElementNodeId(); } el.ggElementNodeId=function() { if (me.hotspot.url!='' && me.hotspot.url.charAt(0)=='{') { // } return me.hotspot.url.substr(1, me.hotspot.url.length - 2); } else { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } else { return player.getCurrentNode(); } } } me._cloudflare_video0.onclick=function (e) { skin._cloudflare_container.style.transition='none'; skin._cloudflare_container.style.visibility=(Number(skin._cloudflare_container.style.opacity)>0||!skin._cloudflare_container.style.opacity)?'inherit':'hidden'; skin._cloudflare_container.ggVisible=true; player.triggerEvent('hsproxyclick', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._cloudflare_video0.ondblclick=function (e) { player.triggerEvent('hsproxydblclick', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._cloudflare_video0.onmouseover=function (e) { player.setActiveHotspot(me.hotspot); me.elementMouseOver['cloudflare_video0']=true; player.triggerEvent('hsproxyover', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._cloudflare_video0.onmouseout=function (e) { player.setActiveHotspot(null); me.elementMouseOver['cloudflare_video0']=false; player.triggerEvent('hsproxyout', {'id': me.hotspot.id, 'url': me.hotspot.url}); } me._cloudflare_video0.ggUpdateConditionTimer=function () { if (me.elementMouseOver['cloudflare_video0']) { player.setActiveHotspot(me.hotspot); me.elementMouseOver['cloudflare_video0']=true; } } me._cloudflare_video0.ggUpdatePosition=function (useTransition) { } el=me._container_2=document.createElement('div'); el.ggId="Container 2"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_container "; el.ggType='container'; hs =''; hs+='height : 700px;'; hs+='left : calc(50% - ((700px + 0px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((700px + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 700px;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._container_2.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 me.ggNodeId; } me._container_2.onmouseover=function (e) { me.elementMouseOver['container_2']=true; me._hs_image_i_cloudflare.logicBlock_scaling(); me._hs_image_i_cloudflare.logicBlock_bordercolor(); } me._container_2.onmouseout=function (e) { me.elementMouseOver['container_2']=false; me._hs_image_i_cloudflare.logicBlock_scaling(); me._hs_image_i_cloudflare.logicBlock_bordercolor(); } me._container_2.ggUpdateConditionTimer=function () { if (me.elementMouseOver['container_2']) { me.elementMouseOver['container_2']=true; me._hs_image_i_cloudflare.logicBlock_scaling(); me._hs_image_i_cloudflare.logicBlock_bordercolor(); } } me._container_2.ggUpdatePosition=function (useTransition) { } el=me._hs_image_animated_2_cloudflare=document.createElement('div'); el.ggId="hs_image_animated_2_Cloudflare"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:0.5,sy:0.5,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_rectangle HS_Farbe"; el.ggType='rectangle'; hs =''; hs+='background : rgba(174,139,87,0.196078);'; hs+='border : 2px solid #ae8b57;'; hs+='border-radius : 999px;'; hs+='cursor : pointer;'; hs+='height : 60px;'; hs+='left : calc(50% - ((60px + 4px) / 2) + 0px);'; hs+='opacity : 0;'; hs+='position : absolute;'; hs+='top : calc(50% - ((60px + 4px) / 2) + 0px);'; hs+='visibility : hidden;'; hs+='width : 60px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; el.style.transform=parameterToTransform(el.ggParameter); me._hs_image_animated_2_cloudflare.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 me.ggNodeId; } me._hs_image_animated_2_cloudflare.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._hs_image_animated_2_cloudflare.ggCurrentLogicStateScaling != newLogicStateScaling) { me._hs_image_animated_2_cloudflare.ggCurrentLogicStateScaling = newLogicStateScaling; me._hs_image_animated_2_cloudflare.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_2_cloudflare.ggCurrentLogicStateScaling == 0) { me._hs_image_animated_2_cloudflare.ggParameter.sx = 0.55; me._hs_image_animated_2_cloudflare.ggParameter.sy = 0.55; me._hs_image_animated_2_cloudflare.style.transform=parameterToTransform(me._hs_image_animated_2_cloudflare.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_2_cloudflare);}, 550); } else { me._hs_image_animated_2_cloudflare.ggParameter.sx = 0.5; me._hs_image_animated_2_cloudflare.ggParameter.sy = 0.5; me._hs_image_animated_2_cloudflare.style.transform=parameterToTransform(me._hs_image_animated_2_cloudflare.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_2_cloudflare);}, 550); } } } me._hs_image_animated_2_cloudflare.logicBlock_scaling(); me._hs_image_animated_2_cloudflare.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('blinken_starten') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._hs_image_animated_2_cloudflare.ggCurrentLogicStateVisible != newLogicStateVisible) { me._hs_image_animated_2_cloudflare.ggCurrentLogicStateVisible = newLogicStateVisible; me._hs_image_animated_2_cloudflare.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_2_cloudflare.ggCurrentLogicStateVisible == 0) { me._hs_image_animated_2_cloudflare.style.visibility=(Number(me._hs_image_animated_2_cloudflare.style.opacity)>0||!me._hs_image_animated_2_cloudflare.style.opacity)?'inherit':'hidden'; me._hs_image_animated_2_cloudflare.ggVisible=true; } else { me._hs_image_animated_2_cloudflare.style.visibility="hidden"; me._hs_image_animated_2_cloudflare.ggVisible=false; } } } me._hs_image_animated_2_cloudflare.logicBlock_visible(); me._hs_image_animated_2_cloudflare.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._hs_image_animated_2_cloudflare.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._hs_image_animated_2_cloudflare.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._hs_image_animated_2_cloudflare.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_2_cloudflare.ggCurrentLogicStateAlpha == 0) { me._hs_image_animated_2_cloudflare.style.visibility=me._hs_image_animated_2_cloudflare.ggVisible?'inherit':'hidden'; me._hs_image_animated_2_cloudflare.style.opacity=0.65; } else { setTimeout(function() { if (me._hs_image_animated_2_cloudflare.style.opacity == 0.0) { me._hs_image_animated_2_cloudflare.style.visibility="hidden"; } }, 505); me._hs_image_animated_2_cloudflare.style.opacity=0; } } } me._hs_image_animated_2_cloudflare.logicBlock_alpha(); me._hs_image_animated_2_cloudflare.ggUpdatePosition=function (useTransition) { } me._container_2.appendChild(me._hs_image_animated_2_cloudflare); el=me._hs_image_animated_1_cloudflare=document.createElement('div'); el.ggId="hs_image_animated_1_Cloudflare"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:0.5,sy:0.5,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='border : 3px solid #ffffff;'; hs+='border-radius : 999px;'; hs+='cursor : pointer;'; hs+='height : 39px;'; hs+='left : calc(50% - ((39px + 6px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((39px + 6px) / 2) + 0px);'; hs+='visibility : hidden;'; hs+='width : 39px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; el.style.transform=parameterToTransform(el.ggParameter); me._hs_image_animated_1_cloudflare.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 me.ggNodeId; } me._hs_image_animated_1_cloudflare.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._hs_image_animated_1_cloudflare.ggCurrentLogicStateScaling != newLogicStateScaling) { me._hs_image_animated_1_cloudflare.ggCurrentLogicStateScaling = newLogicStateScaling; me._hs_image_animated_1_cloudflare.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_1_cloudflare.ggCurrentLogicStateScaling == 0) { me._hs_image_animated_1_cloudflare.ggParameter.sx = 0.8; me._hs_image_animated_1_cloudflare.ggParameter.sy = 0.8; me._hs_image_animated_1_cloudflare.style.transform=parameterToTransform(me._hs_image_animated_1_cloudflare.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_1_cloudflare);}, 550); } else { me._hs_image_animated_1_cloudflare.ggParameter.sx = 0.5; me._hs_image_animated_1_cloudflare.ggParameter.sy = 0.5; me._hs_image_animated_1_cloudflare.style.transform=parameterToTransform(me._hs_image_animated_1_cloudflare.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_animated_1_cloudflare);}, 550); } } } me._hs_image_animated_1_cloudflare.logicBlock_scaling(); me._hs_image_animated_1_cloudflare.logicBlock_visible = function() { var newLogicStateVisible; if ( ((player.getVariableValue('blinken_starten') == true)) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._hs_image_animated_1_cloudflare.ggCurrentLogicStateVisible != newLogicStateVisible) { me._hs_image_animated_1_cloudflare.ggCurrentLogicStateVisible = newLogicStateVisible; me._hs_image_animated_1_cloudflare.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_1_cloudflare.ggCurrentLogicStateVisible == 0) { me._hs_image_animated_1_cloudflare.style.visibility=(Number(me._hs_image_animated_1_cloudflare.style.opacity)>0||!me._hs_image_animated_1_cloudflare.style.opacity)?'inherit':'hidden'; me._hs_image_animated_1_cloudflare.ggVisible=true; } else { me._hs_image_animated_1_cloudflare.style.visibility="hidden"; me._hs_image_animated_1_cloudflare.ggVisible=false; } } } me._hs_image_animated_1_cloudflare.logicBlock_visible(); me._hs_image_animated_1_cloudflare.logicBlock_alpha = function() { var newLogicStateAlpha; if ( ((player.getVariableValue('ht_ani') == true)) ) { newLogicStateAlpha = 0; } else { newLogicStateAlpha = -1; } if (me._hs_image_animated_1_cloudflare.ggCurrentLogicStateAlpha != newLogicStateAlpha) { me._hs_image_animated_1_cloudflare.ggCurrentLogicStateAlpha = newLogicStateAlpha; me._hs_image_animated_1_cloudflare.style.transition='transform 500ms ease 0ms, opacity 500ms ease 0ms'; if (me._hs_image_animated_1_cloudflare.ggCurrentLogicStateAlpha == 0) { setTimeout(function() { if (me._hs_image_animated_1_cloudflare.style.opacity == 0.0) { me._hs_image_animated_1_cloudflare.style.visibility="hidden"; } }, 505); me._hs_image_animated_1_cloudflare.style.opacity=0; } else { me._hs_image_animated_1_cloudflare.style.visibility=me._hs_image_animated_1_cloudflare.ggVisible?'inherit':'hidden'; me._hs_image_animated_1_cloudflare.style.opacity=1; } } } me._hs_image_animated_1_cloudflare.logicBlock_alpha(); me._hs_image_animated_1_cloudflare.ggUpdatePosition=function (useTransition) { } me._container_2.appendChild(me._hs_image_animated_1_cloudflare); el=me._hs_image_i_cloudflare=document.createElement('div'); el.ggId="hs_image_i_Cloudflare"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:0.5,sy:0.5,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='border : 3px solid #ffffff;'; hs+='border-radius : 999px;'; hs+='cursor : pointer;'; hs+='height : 39px;'; hs+='left : calc(50% - ((39px + 6px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((39px + 6px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 39px;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; el.style.transform=parameterToTransform(el.ggParameter); me._hs_image_i_cloudflare.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 me.ggNodeId; } me._hs_image_i_cloudflare.logicBlock_scaling = function() { var newLogicStateScaling; if ( ((me.elementMouseOver['container_2'] == true)) ) { newLogicStateScaling = 0; } else { newLogicStateScaling = -1; } if (me._hs_image_i_cloudflare.ggCurrentLogicStateScaling != newLogicStateScaling) { me._hs_image_i_cloudflare.ggCurrentLogicStateScaling = newLogicStateScaling; me._hs_image_i_cloudflare.style.transition='transform 500ms ease 0ms, border-color 500ms ease 0ms'; if (me._hs_image_i_cloudflare.ggCurrentLogicStateScaling == 0) { me._hs_image_i_cloudflare.ggParameter.sx = 0.8; me._hs_image_i_cloudflare.ggParameter.sy = 0.8; me._hs_image_i_cloudflare.style.transform=parameterToTransform(me._hs_image_i_cloudflare.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_i_cloudflare);}, 550); } else { me._hs_image_i_cloudflare.ggParameter.sx = 0.5; me._hs_image_i_cloudflare.ggParameter.sy = 0.5; me._hs_image_i_cloudflare.style.transform=parameterToTransform(me._hs_image_i_cloudflare.ggParameter); setTimeout(function() {skin.updateSize(me._hs_image_i_cloudflare);}, 550); } } } me._hs_image_i_cloudflare.logicBlock_scaling(); me._hs_image_i_cloudflare.logicBlock_bordercolor = function() { var newLogicStateBorderColor; if ( ((me.elementMouseOver['container_2'] == true)) ) { newLogicStateBorderColor = 0; } else { newLogicStateBorderColor = -1; } if (me._hs_image_i_cloudflare.ggCurrentLogicStateBorderColor != newLogicStateBorderColor) { me._hs_image_i_cloudflare.ggCurrentLogicStateBorderColor = newLogicStateBorderColor; me._hs_image_i_cloudflare.style.transition='transform 500ms ease 0ms, border-color 500ms ease 0ms'; if (me._hs_image_i_cloudflare.ggCurrentLogicStateBorderColor == 0) { me._hs_image_i_cloudflare.style.borderColor="rgba(244,0,0,1)"; } else { me._hs_image_i_cloudflare.style.borderColor="rgba(255,255,255,1)"; } } } me._hs_image_i_cloudflare.logicBlock_bordercolor(); me._hs_image_i_cloudflare.ggUpdatePosition=function (useTransition) { } me._container_2.appendChild(me._hs_image_i_cloudflare); el=me._playbutton=document.createElement('div'); el.ggId="playButton"; el.ggDx=1; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_rectangle "; el.ggType='rectangle'; hs =''; hs+='border : 0px solid #000000;'; hs+='cursor : default;'; hs+='height : 90%;'; hs+='left : calc(50% - ((90% + 0px) / 2) + 1px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((90% + 0px) / 2) + 0px);'; hs+='visibility : inherit;'; hs+='width : 90%;'; hs+='pointer-events:auto;'; hs+='width: 0; height: 0; border-top:6px solid transparent; border-bottom: 6px solid transparent; border-left: 7px solid #f40000; cursor:pointer;'; el.setAttribute('style',hs); el.style.transformOrigin='100% 50%'; me._playbutton.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 me.ggNodeId; } me._playbutton.ggUpdatePosition=function (useTransition) { } me._container_2.appendChild(me._playbutton); me._cloudflare_video0.appendChild(me._container_2); el=me._video_container=document.createElement('div'); el.ggId="Video Container"; el.ggDx=0; el.ggDy=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=false; el.className="ggskin ggskin_container "; el.ggType='container'; hs =''; hs+='height : 80vh;'; hs+='left : calc(50% - ((80vw + 0px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : calc(50% - ((80vh + 0px) / 2) + 0px);'; hs+='visibility : hidden;'; hs+='width : 80vw;'; hs+='pointer-events:none;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; me._video_container.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 me.ggNodeId; } me._video_container.ggUpdatePosition=function (useTransition) { } el=me._video_iframe=document.createElement('div'); els=me._video_iframe__text=document.createElement('div'); el.className='ggskin ggskin_textdiv'; el.ggTextDiv=els; el.ggId="Video Iframe"; el.ggDx=0; el.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1,def:'' }; el.ggVisible=true; el.className="ggskin ggskin_text "; el.ggType='text'; hs =''; hs+='background : #ffffff;'; hs+='border : 1px solid #000000;'; hs+='color : #000000;'; hs+='cursor : default;'; hs+='height : 100%;'; hs+='left : calc(50% - ((100% + 2px) / 2) + 0px);'; hs+='position : absolute;'; hs+='top : 48px;'; hs+='visibility : inherit;'; hs+='width : 100%;'; hs+='pointer-events:auto;'; el.setAttribute('style',hs); el.style.transformOrigin='50% 50%'; hs =''; hs += 'box-sizing: border-box;'; hs+='cursor: default;'; hs+='width: 100%;'; hs+='height: 100%;'; hs+='text-align: center;'; hs+='white-space: pre;'; hs+='padding: 0px 1px 0px 1px;'; hs+='overflow: hidden;'; els.setAttribute('style',hs); me._video_iframe.ggUpdateText=function() { var params = []; params.push(String(player._(me.hotspot.url))); var hs = player._("