window.firstImageLoaded = false; window.muted = true; // TODO: when change to javascript check URL param window.queryString = window.location.search; window.urlParams = new URLSearchParams(queryString); window.anaglyph = false; const anaglyphParam = urlParams.get('anaglyph'); if (anaglyphParam) { window.anaglyph = anaglyphParam === 'yes'; } window.photos = [{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FLHgJRPafVfOrRCMuiov72VQ8H0N2%2F5975292497625088%2Flivingdiningkitchen-360hrjpg-1647009441772.jpg&uploadType=resumable&upload_id=ADPycdtVT7h69WrxHIdpihRt2k2Y2z6WB6zuBFryjl2jrvRny3ZXff3GdnvPuidEXULhAxiRDI_mfnMP1POH0dNAXQ","image_url":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5975292497625088/livingdiningkitchen-360hrjpg-1647009441772.jpg","rotation":0,"thumbnail_gcs_filename":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5975292497625088/thumb_livingdiningkitchen-360hrjpg-1647009441772.jpg","title":"Kitchen/Living","version":"v3","gcs_filename":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5975292497625088/livingdiningkitchen-360hrjpg-1647009441772.jpg","filename":"livingdiningkitchen-360hrjpg-1647009441772.jpg","folder":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5975292497625088","thumbnail_image_url":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5975292497625088/thumb_livingdiningkitchen-360hrjpg-1647009441772.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2022-03-11T14:37:21.772Z","updated_date":"2022-03-11T14:37:21.772Z","id":"5489626487717888","sort_order":2,"status":"active","has_anaglyph":false,"index":0},{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FLHgJRPafVfOrRCMuiov72VQ8H0N2%2F5975292497625088%2Fbedroom-360hrjpg-1647009441757.jpg&uploadType=resumable&upload_id=ADPycdvDxn8eLO0x1qTy8-xLasdTQO7Ezdg8xdPkFu6y20r33VzXL5UHVTjYCSQj6Ag27HlI_B0nkDbvYbpIJ186CZZNIWM6Ew","image_url":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5975292497625088/bedroom-360hrjpg-1647009441757.jpg","rotation":0,"thumbnail_gcs_filename":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5975292497625088/thumb_bedroom-360hrjpg-1647009441757.jpg","title":"Bedroom","version":"v3","gcs_filename":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5975292497625088/bedroom-360hrjpg-1647009441757.jpg","folder":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5975292497625088","filename":"bedroom-360hrjpg-1647009441757.jpg","thumbnail_image_url":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5975292497625088/thumb_bedroom-360hrjpg-1647009441757.jpg","is_stereo":false,"photo_type":"360_mono","updated_date":"2022-03-11T14:37:21.761Z","id":"5203729280139264","created_date":"2022-03-11T14:37:21.761Z","sort_order":1,"status":"active","has_anaglyph":false,"index":1}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5203729280139264":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FLHgJRPafVfOrRCMuiov72VQ8H0N2%2F5975292497625088%2Fbedroom-360hrjpg-1647009441757.jpg&uploadType=resumable&upload_id=ADPycdvDxn8eLO0x1qTy8-xLasdTQO7Ezdg8xdPkFu6y20r33VzXL5UHVTjYCSQj6Ag27HlI_B0nkDbvYbpIJ186CZZNIWM6Ew","image_url":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5975292497625088/bedroom-360hrjpg-1647009441757.jpg","rotation":0,"thumbnail_gcs_filename":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5975292497625088/thumb_bedroom-360hrjpg-1647009441757.jpg","title":"Bedroom","version":"v3","gcs_filename":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5975292497625088/bedroom-360hrjpg-1647009441757.jpg","folder":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5975292497625088","filename":"bedroom-360hrjpg-1647009441757.jpg","thumbnail_image_url":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5975292497625088/thumb_bedroom-360hrjpg-1647009441757.jpg","is_stereo":false,"photo_type":"360_mono","updated_date":"2022-03-11T14:37:21.761Z","id":"5203729280139264","created_date":"2022-03-11T14:37:21.761Z","sort_order":1,"status":"active","has_anaglyph":false,"index":1},"5489626487717888":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FLHgJRPafVfOrRCMuiov72VQ8H0N2%2F5975292497625088%2Flivingdiningkitchen-360hrjpg-1647009441772.jpg&uploadType=resumable&upload_id=ADPycdtVT7h69WrxHIdpihRt2k2Y2z6WB6zuBFryjl2jrvRny3ZXff3GdnvPuidEXULhAxiRDI_mfnMP1POH0dNAXQ","image_url":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5975292497625088/livingdiningkitchen-360hrjpg-1647009441772.jpg","rotation":0,"thumbnail_gcs_filename":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5975292497625088/thumb_livingdiningkitchen-360hrjpg-1647009441772.jpg","title":"Kitchen/Living","version":"v3","gcs_filename":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5975292497625088/livingdiningkitchen-360hrjpg-1647009441772.jpg","filename":"livingdiningkitchen-360hrjpg-1647009441772.jpg","folder":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5975292497625088","thumbnail_image_url":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5975292497625088/thumb_livingdiningkitchen-360hrjpg-1647009441772.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2022-03-11T14:37:21.772Z","updated_date":"2022-03-11T14:37:21.772Z","id":"5489626487717888","sort_order":2,"status":"active","has_anaglyph":false,"index":0}}; if (window.is_static) { window.photosRoot = 'https://storage.googleapis.com/orbix360-prod-images'; // TODO: after we create all the local schema/template folders, change this to empty string window.pluginsRoot = 'plugins/'; } else { window.photosRoot = 'https://storage.googleapis.com/orbix360-prod-images'; window.pluginsRoot = 'https://storage.googleapis.com/orbix360-prod-plugins/'; } window.minterUrl = 'https://minter.orbix360.com'; window.tourId = "5975292497625088"; window.tourUid = "LHgJRPafVfOrRCMuiov72VQ8H0N2"; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "barn-conversion"; window.template = '360_mono'; window.template_category = ''; window.tourShortCode = "fZ63B2MQd"; window.room = ''; window.mask = ''; window.current_image_index = 0; // todo: use photo object instead of correlated arrays window.nextImageToLoad = 1; window.photo_indexes = {}; window.im = false; window.photo_indexes['5489626487717888'] = 0; window.current_image_index = 0; window.current_image_id = 5489626487717888 window.photo_indexes['5203729280139264'] = 1; window.current_info_hotspot = null; window.current_explore_page = 1; let savedCurrentExplorePage = window.localStorage.getItem('current_explore_page'); if (savedCurrentExplorePage) { window.current_explore_page = Number(savedCurrentExplorePage); } window.current_explore_filter = 'featured'; let savedCurrentExploreFilter = window.localStorage.getItem('current_explore_filter'); if (savedCurrentExploreFilter) { window.current_explore_filter = savedCurrentExploreFilter; } window.user_profile_image = 'https://lh3.googleusercontent.com/a/AItbvmmwFaFo0qJqNuYtdW1zDfBndMr2eToljfpqiSkX=s96-c'; window.user_profile_name = 'Ashley Waitt'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://storage.googleapis.com/orbix360-prod-images/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5975292497625088/thumb_livingdiningkitchen-360hrjpg-1647009441772.jpg.play.jpg'; window.image_url_root = 'https://storage.googleapis.com/orbix360-prod-images'; window.cloudFunctionsRoot = 'https://us-central1-orbix360-prod.cloudfunctions.net'; window.timeSinceRestartRotation = 0; window.initialState = {"orbs":[{"infoHotspots":[],"id":5489626487717888,"hotspots":[{"from":5489626487717888,"position":{"x":0.9318915090476005,"y":-0.3586139316749315,"z":0.054536807512295546},"id":"hotspot_5489626487717888_5203729280139264","to":5203729280139264,"toTitle":"Bedroom"}]},{"infoHotspots":[],"id":5203729280139264,"hotspots":[{"from":5203729280139264,"to":5489626487717888,"position":{"x":-0.5176773380583257,"y":-0.5381904103518745,"z":0.6651024401294338},"id":"hotspot_5203729280139264_5489626487717888","toTitle":"Kitchen/Living"}]}],"autorotate":{"enabled":false},"versionNumber":3}; window.brandingAllowed = false; window.upgradeCheckoutSessionStatus = ''; window.isPro = (window.brandingAllowed || window.upgradeCheckoutSessionStatus == 'complete'); window.nadirLogoURL = (window.brandingAllowed || window.upgradeCheckoutSessionStatus == 'complete') ? '/images/powered-by-orbix_nadir.png' : '/images/orbix_nadir.png'; window.editMode = false;