var player; var isInitialized; addCSS("https://player.aos.tv/css/AOS-min.css?v=14"); addJS("https://player.aos.tv/js/AOS-min.js.php?x=fgIlHcC2sn2JLgDv9vnHpQUCfEtkKUoLICT2NLlfvfGvSj91JEfDsqgFfn3QUrzOAKNRbWNjxCIrv2wuv7GtNAl8zkzKHRVmz5olotj7D7YqIDywWEGzLR7jNIWqBK67pSfeZoyeotj42iWbLky8yA==&v=114", init); function addCSS(c) { var a=document.getElementsByTagName("head")[0]; var b=document.createElement("link");b.type="text/css"; b.rel="stylesheet"; b.href=c; b.media="screen"; a.appendChild(b) } function addJS(c, cb) { if(scriptExists(c)) { if(cb)cb(); // return false } var a=document.getElementsByTagName("head")[0]; var b=document.createElement("script"); b.type="text/javascript"; b.onreadystatechange=function() { if(this.readyState=="complete"||this.readyState=="loaded"){ if(cb) cb() } }; b.onload=function(){ if(cb)cb() }; b.src=c; a.appendChild(b) } function scriptExists(c) { var a=document.getElementsByTagName("head")[0].getElementsByTagName("script"); for(var b=0;b', { id: 'aosc' }).appendTo('#swipebox-overlay'); losjqisafe('#aosc').css({ width : "100%", height : "100%", position : "absolute", bottom : "0px", "text-align" : "center"}); } }); } function loadViewer(){ var PSV = new PhotoSphereViewer({ panorama: 'https://eu.cdn.autosonshow.tv/4978/emilfreytt2/GG-110-AL/internal01.jpg', container: 'viewer_aos_internal', loading_txt: 'Loading 360 ...', navbar: 'autorotate gyroscope', mousewheel: true, anim_speed: '-2rpm', default_fov: 50, fisheye: true, move_speed: 3, time_anim: true, gyroscope: true, webgl: true, initRotationVector: { x: 0, y: 4.712391, z: 0 } }); } var viewer; var viewerExploded; var viewerDefault; function setupViewer(spinType){ FWDViewer.setPrototype(); // if (spinType) viewer = new FWDViewer({ //----main----// divHolderId:"viewer_aos_" + spinType, skinPath: "https://player.aos.tv/360Viewer/skins/skin_cutout_round_silver", playListId:"viewerPlaylist_" + spinType, displayType:"responsive", preloaderText:"Loading 3D object:", startDraggingMode:"rotate", showLargeImageVersionOnZoom:"yes", useEntireScreenFor3dObject:"yes", stopRotationHorizontalAtEnds:"no", stopRotationVerticalAtEnds:"no", addCorrectionForWebKit:"yes", addDragAndSpinSupport:"yes", disableMouseWheelZoom:"no", autoScale:"yes", startAtImage:0, startAtSet:0, viewerWidth:978, viewerHeight:550, imageWidth:978, imageHeight:550, zoomFactor:2, zoomSpeed:0.1, dragRotationSpeed:.7, dragAndSpinSpeed:.6, buttonsRotationSpeed:300, slideShowDelay:300, backgroundColor:"#ffffff", preloaderFontColor:"#666666", preloaderBackgroundColor:"#FFFFFF", //----lightbox-----// lightBoxWidth:1920, lightBoxHeight:1080, lightBoxBackgroundOpacity:.8, lightBoxBackgroundColor:"#000000", //----controller----// buttons:"fullscreen", buttonsToolTips:"", controllerHorizontalPosition:"center", controllerVerticalPosition:"bottom", inverseNextAndPrevRotation:"yes", addKeyboardSupport:"yes", slideShowAutoPlay:"no", startSpaceBetweenButtons:4, spaceBetweenButtons:10, startSpaceForScrollBarButtons:20, startSpaceForScrollBar:6, hideControllerDelay:100, controllerMaxWidth:900, controllerBackgroundOpacity:1, controllerOffsetY:0, scrollBarOffsetX:0, scrollBarHandlerToolTipOffsetY:6, zoomInAndOutToolTipOffsetY:6, buttonsToolTipOffsetY:6, link:"https://www.google.com", buttonToolTipFontColor:"#a4a1a1", //----navigator----// showNavigator:"yes", navigatorPosition:"topright", navigatorWidth:120, navigatorOffsetX:6, navigatorOffsetY:6, navigatorHandlerColor:"#FF0000", navigatorBorderColor:"#AAAAAA", //----info window----// infoWindowBackgroundOpacity:.6, infoWindowBackgroundColor:"#FFFFFF", infoWindowScrollBarColor:"#a4a1a1", //----markers-----// showMarkersInfo:"no", markerToolTipOffsetY:2, toolTipWindowMaxWidth:800, //----context menu----// showScriptDeveloper:"no", contextMenuLabels:"Rotate, Move/Pan, Rotate left, Rotate right, Zoom in/Zoom out, Play/Pause, Info, Custom link, Full screen/Normal screen", contextMenuBackgroundColor:"#393939", contextMenuBorderColor:"#6c6c6c", contextMenuSpacerColor:"#6c6c6c", contextMenuItemNormalColor:"#a4a1a1", contextMenuItemSelectedColor:"#FFFFFF", contextMenuItemDisabledColor:"#545252" }); viewer.addListener(FWDViewer.All_IMAGES_LOADED, allImagesLoadedHandler); if (spinType=="exploded") { viewerExploded = viewer; } else { viewerDefault = viewer; } } function setViewerSize(){ var viewerWidth = losjqisafe('.AOSPlayer').width(); var viewerHeight = losjqisafe('.AOSPlayer').height(); losjqisafe('[class^=AOS360PlayerWrapper]').width(viewerWidth + "px" ); losjqisafe('[class^=AOS360PlayerWrapper]').height(viewerHeight +"px" ); } function orientationChanged() { const timeout = 120; return new window.Promise(function(resolve) { const go = (i, height0) => { window.innerHeight != height0 || i >= timeout ? resolve() : window.requestAnimationFrame(() => go(i + 1, height0)); }; go(0, window.innerHeight); }); }