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 = [{"filename":"panoramapng-1729806589784.png","folder":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168","gcs_filename":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/panoramapng-1729806589784.png","image_url":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/panoramapng-1729806589784.png","thumbnail_gcs_filename":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/thumb_panoramapng-1729806589784.png","thumbnail_image_url":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/thumb_panoramapng-1729806589784.png","rotation":0,"photo_type":"360_pano","is_stereo":false,"sort_order":1,"status":"active","created_date":"2024-10-24T21:49:49.786Z","updated_date":"2024-10-24T21:49:49.786Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2F0V6VyC4EM1TzfsoiRYPoDimPQpg2%2F4909415863943168%2Fpanoramapng-1729806589784.png&uploadType=resumable&upload_id=AHmUCY004yOJDRJOCqaC0T8dNOtAMIDmFynmEhQwdQYZUADWjWlVIX1HMLpfEg0nSMfUO55Dz6stwXgeoV8_II41qRMrGgGuB1eJtfb956pOga9A","id":"6002483807649792","title":"view","has_anaglyph":false,"index":0},{"filename":"panorama3png-1729806589914.png","folder":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168","gcs_filename":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/panorama3png-1729806589914.png","image_url":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/panorama3png-1729806589914.png","thumbnail_gcs_filename":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/thumb_panorama3png-1729806589914.png","thumbnail_image_url":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/thumb_panorama3png-1729806589914.png","rotation":0,"photo_type":"360_pano","is_stereo":false,"sort_order":3,"status":"active","created_date":"2024-10-24T21:49:49.915Z","updated_date":"2024-10-24T21:49:49.915Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2F0V6VyC4EM1TzfsoiRYPoDimPQpg2%2F4909415863943168%2Fpanorama3png-1729806589914.png&uploadType=resumable&upload_id=AHmUCY1DSo7XUwPBrQ-PbqX-Q3l5jPJXKT8VOOw1k67fmxaIk0Zxqk446JXl2Y7hd8wve_vXgTKIdrCC3OnriIach3OYmsQ0rO-vN9xrUJ439zchDQ","id":"6012520466743296","title":"2nd floor","has_anaglyph":false,"index":1},{"filename":"panorama4png-1729806590074.png","folder":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168","gcs_filename":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/panorama4png-1729806590074.png","image_url":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/panorama4png-1729806590074.png","thumbnail_gcs_filename":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/thumb_panorama4png-1729806590074.png","thumbnail_image_url":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/thumb_panorama4png-1729806590074.png","rotation":0,"photo_type":"360_pano","is_stereo":false,"sort_order":4,"status":"active","created_date":"2024-10-24T21:49:50.076Z","updated_date":"2024-10-24T21:49:50.076Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2F0V6VyC4EM1TzfsoiRYPoDimPQpg2%2F4909415863943168%2Fpanorama4png-1729806590074.png&uploadType=resumable&upload_id=AHmUCY2IlTuTCcylKI8bbcjLVWJwJRxVfe8TLXDOldgq7wMBZ1XQpvWBG0Qx4Tb2wXgXOQUYRFu_nU1yZ97UVE01xBnCkCvWlQFz4wxpHvhjAaleBg","id":"4970087779926016","title":"2nd floor balcony","has_anaglyph":false,"index":2},{"filename":"panorama2png-1729806590024.png","folder":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168","gcs_filename":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/panorama2png-1729806590024.png","image_url":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/panorama2png-1729806590024.png","thumbnail_gcs_filename":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/thumb_panorama2png-1729806590024.png","thumbnail_image_url":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/thumb_panorama2png-1729806590024.png","rotation":0,"photo_type":"360_pano","is_stereo":false,"sort_order":2,"status":"active","created_date":"2024-10-24T21:49:50.025Z","updated_date":"2024-10-24T21:49:50.025Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2F0V6VyC4EM1TzfsoiRYPoDimPQpg2%2F4909415863943168%2Fpanorama2png-1729806590024.png&uploadType=resumable&upload_id=AHmUCY1vaAMwjDPjqBrVkd_86szXOzEP99orPYig7-Zvpi9iPvo-ercIBOYKShsKEao10p4ZiuQdlsYlb8siQiCvCwdJ89ysouYQZR4GHmENeLP1","id":"5308272095526912","title":"3rd floor","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"6002483807649792":{"filename":"panoramapng-1729806589784.png","folder":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168","gcs_filename":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/panoramapng-1729806589784.png","image_url":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/panoramapng-1729806589784.png","thumbnail_gcs_filename":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/thumb_panoramapng-1729806589784.png","thumbnail_image_url":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/thumb_panoramapng-1729806589784.png","rotation":0,"photo_type":"360_pano","is_stereo":false,"sort_order":1,"status":"active","created_date":"2024-10-24T21:49:49.786Z","updated_date":"2024-10-24T21:49:49.786Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2F0V6VyC4EM1TzfsoiRYPoDimPQpg2%2F4909415863943168%2Fpanoramapng-1729806589784.png&uploadType=resumable&upload_id=AHmUCY004yOJDRJOCqaC0T8dNOtAMIDmFynmEhQwdQYZUADWjWlVIX1HMLpfEg0nSMfUO55Dz6stwXgeoV8_II41qRMrGgGuB1eJtfb956pOga9A","id":"6002483807649792","title":"view","has_anaglyph":false,"index":0},"5308272095526912":{"filename":"panorama2png-1729806590024.png","folder":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168","gcs_filename":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/panorama2png-1729806590024.png","image_url":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/panorama2png-1729806590024.png","thumbnail_gcs_filename":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/thumb_panorama2png-1729806590024.png","thumbnail_image_url":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/thumb_panorama2png-1729806590024.png","rotation":0,"photo_type":"360_pano","is_stereo":false,"sort_order":2,"status":"active","created_date":"2024-10-24T21:49:50.025Z","updated_date":"2024-10-24T21:49:50.025Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2F0V6VyC4EM1TzfsoiRYPoDimPQpg2%2F4909415863943168%2Fpanorama2png-1729806590024.png&uploadType=resumable&upload_id=AHmUCY1vaAMwjDPjqBrVkd_86szXOzEP99orPYig7-Zvpi9iPvo-ercIBOYKShsKEao10p4ZiuQdlsYlb8siQiCvCwdJ89ysouYQZR4GHmENeLP1","id":"5308272095526912","title":"3rd floor","has_anaglyph":false,"index":3},"6012520466743296":{"filename":"panorama3png-1729806589914.png","folder":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168","gcs_filename":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/panorama3png-1729806589914.png","image_url":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/panorama3png-1729806589914.png","thumbnail_gcs_filename":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/thumb_panorama3png-1729806589914.png","thumbnail_image_url":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/thumb_panorama3png-1729806589914.png","rotation":0,"photo_type":"360_pano","is_stereo":false,"sort_order":3,"status":"active","created_date":"2024-10-24T21:49:49.915Z","updated_date":"2024-10-24T21:49:49.915Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2F0V6VyC4EM1TzfsoiRYPoDimPQpg2%2F4909415863943168%2Fpanorama3png-1729806589914.png&uploadType=resumable&upload_id=AHmUCY1DSo7XUwPBrQ-PbqX-Q3l5jPJXKT8VOOw1k67fmxaIk0Zxqk446JXl2Y7hd8wve_vXgTKIdrCC3OnriIach3OYmsQ0rO-vN9xrUJ439zchDQ","id":"6012520466743296","title":"2nd floor","has_anaglyph":false,"index":1},"4970087779926016":{"filename":"panorama4png-1729806590074.png","folder":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168","gcs_filename":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/panorama4png-1729806590074.png","image_url":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/panorama4png-1729806590074.png","thumbnail_gcs_filename":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/thumb_panorama4png-1729806590074.png","thumbnail_image_url":"/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/thumb_panorama4png-1729806590074.png","rotation":0,"photo_type":"360_pano","is_stereo":false,"sort_order":4,"status":"active","created_date":"2024-10-24T21:49:50.076Z","updated_date":"2024-10-24T21:49:50.076Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2F0V6VyC4EM1TzfsoiRYPoDimPQpg2%2F4909415863943168%2Fpanorama4png-1729806590074.png&uploadType=resumable&upload_id=AHmUCY2IlTuTCcylKI8bbcjLVWJwJRxVfe8TLXDOldgq7wMBZ1XQpvWBG0Qx4Tb2wXgXOQUYRFu_nU1yZ97UVE01xBnCkCvWlQFz4wxpHvhjAaleBg","id":"4970087779926016","title":"2nd floor balcony","has_anaglyph":false,"index":2}}; 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 = "4909415863943168"; window.tourUid = "0V6VyC4EM1TzfsoiRYPoDimPQpg2"; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "lighthouse"; window.template = '360_pano'; window.template_category = ''; window.tourShortCode = "ZpGo4hRSU"; 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['6002483807649792'] = 0; window.current_image_index = 0; window.current_image_id = 6002483807649792 window.photo_indexes['6012520466743296'] = 1; window.photo_indexes['4970087779926016'] = 2; window.photo_indexes['5308272095526912'] = 3; 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/ACg8ocI4TCGtCxcbIiLTH0MnbkT-v9elq41QU14XwVc72OFqFHYKxw=s96-c'; window.user_profile_name = 'Jingze Wang'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://storage.googleapis.com/orbix360-prod-images/users/0V6VyC4EM1TzfsoiRYPoDimPQpg2/4909415863943168/thumb_panoramapng-1729806589784.png.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 = {"versionNumber":3,"autorotate":{"enabled":true},"orbs":[{"id":6002483807649792,"hotspots":[{"id":"hotspot_6002483807649792_6012520466743296","from":6002483807649792,"to":6012520466743296,"position":{"x":0.009441988265025009,"y":0.059114981660043114,"z":-0.9982065256253015},"toTitle":"2nd floor"},{"id":"hotspot_6002483807649792_4970087779926016","from":6002483807649792,"to":4970087779926016,"position":{"x":-0.22607832685604343,"y":0.04713536585984569,"z":-0.9729680608381914},"toTitle":"2nd floor balcony"},{"id":"hotspot_6002483807649792_5308272095526912","from":6002483807649792,"to":5308272095526912,"position":{"x":-0.045139421243362635,"y":0.216759389636486,"z":-0.9751809061165175},"toTitle":"3rd floor"}],"infoHotspots":[]},{"id":6012520466743296,"hotspots":[{"id":"hotspot_6012520466743296_5308272095526912","from":6012520466743296,"to":5308272095526912,"position":{"x":0.8966862926286345,"y":0.28539017393571353,"z":0.3383875606946244},"toTitle":"3rd floor"},{"id":"hotspot_6012520466743296_4970087779926016","from":6012520466743296,"to":4970087779926016,"position":{"x":-0.4702652169489893,"y":-0.14405819792995178,"z":-0.8706881538973037},"toTitle":"2nd floor balcony"},{"id":"hotspot_6012520466743296_6002483807649792","from":6012520466743296,"to":6002483807649792,"position":{"x":-0.7843400041109738,"y":-0.0581764306415909,"z":0.6175971671478117},"toTitle":"view"}],"infoHotspots":[],"plugins":[{"pluginId":"6352215564353536","instanceId":"plugin_6352215564353536_1729807115620","instanceName":"Text","templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6352215564353536/v3/template.html","schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6352215564353536/v3/schema.json","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6352215564353536/v3/script.js","position":{"x":"-3.7185352342730074","y":"1.6199999466667092","z":"3.342468506000245"},"rotation":{"x":"0","y":"-222.99517386491578","z":"0"},"scale":{"x":"1","y":"1","z":"1"},"value":"Exterior","width":"5","height":"auto","align":"center","anchor":"center","baseline":"center","color":"black","font":"roboto","opacity":"1.0","visible":true,"additional_components":""},{"pluginId":"6352215564353536","instanceId":"plugin_6352215564353536_1729807175289","instanceName":"Text2","templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6352215564353536/v3/template.html","schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6352215564353536/v3/schema.json","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6352215564353536/v3/script.js","position":{"x":4.35963751720495,"y":3.6388022652978522,"z":1.3553029335153848},"rotation":{"x":0,"y":-102.21567065133907,"z":0},"scale":{"x":1,"y":1,"z":1},"value":"3F - Tearoom","width":"4","height":"auto","align":"center","anchor":"center","baseline":"center","color":"black","font":"roboto","opacity":"5","visible":true,"additional_components":""},{"pluginId":"6352215564353536","instanceId":"plugin_6352215564353536_1729807291908","instanceName":"Text3","templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6352215564353536/v3/template.html","schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6352215564353536/v3/schema.json","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6352215564353536/v3/script.js","position":{"x":-2.386660633966475,"y":1.4700146461716168,"z":-4.391691567729325},"rotation":{"x":0,"y":33.57532679466633,"z":0},"scale":{"x":1,"y":1,"z":1},"value":"Balcony","width":"5","height":"auto","align":"center","anchor":"center","baseline":"center","color":"black","font":"roboto","opacity":"1.0","visible":true,"additional_components":""}]},{"id":4970087779926016,"hotspots":[],"infoHotspots":[]},{"id":5308272095526912,"hotspots":[],"infoHotspots":[]}]}; 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;