pano.showHotspots("intern",visible = true); pano.showHotspots("extern",visible = false); pano.showHotspots("info",visible = false); pano.showHotspots("screen",visible = false); var spotcss = $('html.no-touch .sp-hotspot'); $('#hotsp').click(function() { pano.showHotspots("intern",visible = true); pano.showHotspots("extern",visible = false); pano.showHotspots("info",visible = false); spotcss.css({'border-width': '2px'}); spotcss.css({'border-color': 'rgba(255,255,0,1)'}); $('#hotsp').hide(); $('#hotsp_hide').show(); }); $('#hotsp_hide').click(function() { pano.showHotspots("intern",visible = false); $('#hotsp').show(); $('#hotsp_hide').hide(); }); $('#ext').click(function() { pano.showHotspots("extern",visible = true); pano.showHotspots("intern",visible = false); pano.showHotspots("info",visible = false); pano.showHotspots("screen",visible = false); spotcss.css({'border-width': '2px'}); spotcss.css({'border-color': 'rgba(255,255,0,1)'}); $('#hotsp').show(); $('#hotsp_hide').hide(); }); $('#streets').click(function() { pano.showHotspots("info",visible = true); pano.showHotspots("screen",visible = true); pano.showHotspots("extern",visible = false); pano.showHotspots("intern",visible = false); spotcss.css({'border-width': '0px'}); spotcss.css({'border-color': 'rgba(255,255,0,1)'}); $('#hotsp').show(); $('#hotsp_hide').hide(); }); $('#off').click(function() { pano.showHotspots("intern",visible = false); pano.showHotspots("extern",visible = false); pano.showHotspots("info",visible = false); pano.showHotspots("screen",visible = false); $('#hotsp').show(); $('#hotsp_hide').hide(); }); var infoElem = $('#linkInfo'); $('#pano .sp-hotspot').on('mouseenter', function(event) { infoElem.text($(event.target).find('.title').text()); infoElem.css({'opacity': 1}); }); $('#pano .sp-hotspot').on('mouseleave', function() { infoElem.css({'opacity': 0}); }); } }); pano.targetSpeed = -0.05; }); //-->