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%2F5226849751793664%2Fhall-panojpg-1661962184303.jpg&uploadType=resumable&upload_id=ADPycdtupepfa7yTFt1ZfAkASuQsoHFbXAGxh0gsKDOU8_5uTuQ5CPbNGKP6Luh8WwEnipXfpfuR9VLekWxABe-AF-ncFA","image_url":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/hall-panojpg-1661962184303.jpg","rotation":0,"thumbnail_gcs_filename":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/thumb_hall-panojpg-1661962184303.jpg","title":"Hall","version":"v3","gcs_filename":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/hall-panojpg-1661962184303.jpg","filename":"hall-panojpg-1661962184303.jpg","folder":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664","thumbnail_image_url":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/thumb_hall-panojpg-1661962184303.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2022-08-31T16:09:44.303Z","updated_date":"2022-08-31T16:09:44.303Z","id":"4505999822028800","sort_order":3,"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%2F5226849751793664%2F360pjpg-1669724596245.jpg&uploadType=resumable&upload_id=ADPycdvNAQi-fFREvez0nPU5BrLqoKvxJh3QHYwVexF-P97vQHpLJCFS2i4ZN2kOlV4Eh3iBufSZ7DOsy4SWMTKjZIrP7hb-16Fd","image_url":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/360pjpg-1669724596245.jpg","rotation":0,"thumbnail_gcs_filename":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/thumb_360pjpg-1669724596245.jpg","title":"Kitchen/Living","version":"v3","gcs_filename":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/360pjpg-1669724596245.jpg","folder":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664","filename":"360pjpg-1669724596245.jpg","thumbnail_image_url":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/thumb_360pjpg-1669724596245.jpg","is_stereo":false,"photo_type":"360_mono","id":"6498569234153472","created_date":"2022-11-29T12:23:16.246Z","updated_date":"2022-11-29T12:23:16.246Z","sort_order":5,"status":"active","has_anaglyph":false,"index":1},{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FLHgJRPafVfOrRCMuiov72VQ8H0N2%2F5226849751793664%2Fbed-360jpg-1669724596230.jpg&uploadType=resumable&upload_id=ADPycdvuXYPz6EJmJ8mk0NEhK0BXgfAOMwm2S2xVHv3ej8GL2CBgYrt9uj6g2u04kOJOmS6oCPN3bSPpGr6QuvvLHTFIZQ","image_url":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/bed-360jpg-1669724596230.jpg","rotation":0,"thumbnail_gcs_filename":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/thumb_bed-360jpg-1669724596230.jpg","title":"Master Bedroom","version":"v3","gcs_filename":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/bed-360jpg-1669724596230.jpg","folder":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664","filename":"bed-360jpg-1669724596230.jpg","is_stereo":false,"thumbnail_image_url":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/thumb_bed-360jpg-1669724596230.jpg","photo_type":"360_mono","created_date":"2022-11-29T12:23:16.231Z","updated_date":"2022-11-29T12:23:16.231Z","id":"5157104616734720","sort_order":4,"status":"active","has_anaglyph":false,"index":2}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"4505999822028800":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FLHgJRPafVfOrRCMuiov72VQ8H0N2%2F5226849751793664%2Fhall-panojpg-1661962184303.jpg&uploadType=resumable&upload_id=ADPycdtupepfa7yTFt1ZfAkASuQsoHFbXAGxh0gsKDOU8_5uTuQ5CPbNGKP6Luh8WwEnipXfpfuR9VLekWxABe-AF-ncFA","image_url":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/hall-panojpg-1661962184303.jpg","rotation":0,"thumbnail_gcs_filename":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/thumb_hall-panojpg-1661962184303.jpg","title":"Hall","version":"v3","gcs_filename":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/hall-panojpg-1661962184303.jpg","filename":"hall-panojpg-1661962184303.jpg","folder":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664","thumbnail_image_url":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/thumb_hall-panojpg-1661962184303.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2022-08-31T16:09:44.303Z","updated_date":"2022-08-31T16:09:44.303Z","id":"4505999822028800","sort_order":3,"status":"active","has_anaglyph":false,"index":0},"5157104616734720":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FLHgJRPafVfOrRCMuiov72VQ8H0N2%2F5226849751793664%2Fbed-360jpg-1669724596230.jpg&uploadType=resumable&upload_id=ADPycdvuXYPz6EJmJ8mk0NEhK0BXgfAOMwm2S2xVHv3ej8GL2CBgYrt9uj6g2u04kOJOmS6oCPN3bSPpGr6QuvvLHTFIZQ","image_url":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/bed-360jpg-1669724596230.jpg","rotation":0,"thumbnail_gcs_filename":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/thumb_bed-360jpg-1669724596230.jpg","title":"Master Bedroom","version":"v3","gcs_filename":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/bed-360jpg-1669724596230.jpg","folder":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664","filename":"bed-360jpg-1669724596230.jpg","is_stereo":false,"thumbnail_image_url":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/thumb_bed-360jpg-1669724596230.jpg","photo_type":"360_mono","created_date":"2022-11-29T12:23:16.231Z","updated_date":"2022-11-29T12:23:16.231Z","id":"5157104616734720","sort_order":4,"status":"active","has_anaglyph":false,"index":2},"6498569234153472":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FLHgJRPafVfOrRCMuiov72VQ8H0N2%2F5226849751793664%2F360pjpg-1669724596245.jpg&uploadType=resumable&upload_id=ADPycdvNAQi-fFREvez0nPU5BrLqoKvxJh3QHYwVexF-P97vQHpLJCFS2i4ZN2kOlV4Eh3iBufSZ7DOsy4SWMTKjZIrP7hb-16Fd","image_url":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/360pjpg-1669724596245.jpg","rotation":0,"thumbnail_gcs_filename":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/thumb_360pjpg-1669724596245.jpg","title":"Kitchen/Living","version":"v3","gcs_filename":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/360pjpg-1669724596245.jpg","folder":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664","filename":"360pjpg-1669724596245.jpg","thumbnail_image_url":"/users/LHgJRPafVfOrRCMuiov72VQ8H0N2/5226849751793664/thumb_360pjpg-1669724596245.jpg","is_stereo":false,"photo_type":"360_mono","id":"6498569234153472","created_date":"2022-11-29T12:23:16.246Z","updated_date":"2022-11-29T12:23:16.246Z","sort_order":5,"status":"active","has_anaglyph":false,"index":1}}; 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 = "5226849751793664"; window.tourUid = "LHgJRPafVfOrRCMuiov72VQ8H0N2"; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "charlton"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "AU2b95dLR"; 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['4505999822028800'] = 0; window.current_image_index = 0; window.current_image_id = 4505999822028800 window.photo_indexes['6498569234153472'] = 1; window.photo_indexes['5157104616734720'] = 2; 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/5226849751793664/thumb_hall-panojpg-1661962184303.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":4505999822028800,"hotspots":[{"from":4505999822028800,"id":"hotspot_4505999822028800_5157104616734720","to":5157104616734720,"position":{"x":-0.9647708918120995,"y":0.1671556234167504,"z":-0.20316526246443717},"toTitle":"Master Bedroom"},{"from":4505999822028800,"id":"hotspot_4505999822028800_6498569234153472","position":{"x":-0.6934215626960882,"y":-0.3999120857479992,"z":-0.5993637126660238},"to":6498569234153472,"toTitle":"Kitchen/Living"}]},{"infoHotspots":[],"id":6498569234153472,"hotspots":[{"from":6498569234153472,"to":4505999822028800,"id":"hotspot_6498569234153472_4505999822028800","position":{"x":0.43577429908088033,"y":-0.48913823209933016,"z":-0.7555425535066236},"toTitle":"Hall"}]},{"infoHotspots":[],"id":5157104616734720,"hotspots":[]}],"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;