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":"img20250303151625jpg-1741167351990.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/img20250303151625jpg-1741167351990.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/img20250303151625jpg-1741167351990.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/thumb_img20250303151625jpg-1741167351990.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/thumb_img20250303151625jpg-1741167351990.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-03-05T09:35:51.991Z","updated_date":"2025-03-05T09:35:51.991Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F4857062041321472%2Fimg20250303151625jpg-1741167351990.jpg&uploadType=resumable&upload_id=AHMx-iEOn_pBGKqeP9IOUYjwLPOHJRhGdlhJFjQvm3ywsLQ8LFmqWwanNclHwSWZEUcOieUFjqpQuztxXt0qkHy4hywoU1Hvr8XMWokAThqYGaw","id":"4845114046283776","has_anaglyph":false,"index":0,"title":"Photo 1"},{"filename":"img20250303151646jpg-1741167351786.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/img20250303151646jpg-1741167351786.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/img20250303151646jpg-1741167351786.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/thumb_img20250303151646jpg-1741167351786.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/thumb_img20250303151646jpg-1741167351786.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-03-05T09:35:51.786Z","updated_date":"2025-03-05T09:35:51.786Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F4857062041321472%2Fimg20250303151646jpg-1741167351786.jpg&uploadType=resumable&upload_id=AHMx-iFOepi8tvd7FvaiVfHdMTtVcmcrJGWBblYpdHMFXIu_QPDibLl0k5O10Ks74jbvpIdWwRjDR6xBGZgPsyULG8OKLNJ4PAb6MdI5Jn_izIY","id":"5413415998717952","has_anaglyph":false,"index":1,"title":"Photo 2"},{"filename":"img20250303151713jpg-1741167351916.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/img20250303151713jpg-1741167351916.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/img20250303151713jpg-1741167351916.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/thumb_img20250303151713jpg-1741167351916.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/thumb_img20250303151713jpg-1741167351916.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-03-05T09:35:51.917Z","updated_date":"2025-03-05T09:35:51.917Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F4857062041321472%2Fimg20250303151713jpg-1741167351916.jpg&uploadType=resumable&upload_id=AHMx-iHWaH0gb1xqbdR5jSEehrO8afkwRJDks8q4-0V1llBzepXtEKtLB3I-7gp86gruHuu3QL50hJsMUmX2_iOfi-wlBXkA9GRFilNzW-hFCQ","id":"6115814480543744","has_anaglyph":false,"index":2,"title":"Photo 3"},{"filename":"img20250303151759jpg-1741167351951.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/img20250303151759jpg-1741167351951.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/img20250303151759jpg-1741167351951.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/thumb_img20250303151759jpg-1741167351951.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/thumb_img20250303151759jpg-1741167351951.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-03-05T09:35:51.953Z","updated_date":"2025-03-05T09:35:51.953Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F4857062041321472%2Fimg20250303151759jpg-1741167351951.jpg&uploadType=resumable&upload_id=AHMx-iGf-OWHU9sWzXwRYORqvSfu56Jw-POr99EQEzP8uMmv-2XGTIeFdDYtX_bGG70XCmGVdJ0d1a4p729b08Ae4KZT131QDh-gan9sh2jdBJk","id":"5402304716996608","has_anaglyph":false,"index":3,"title":"Photo 4"},{"filename":"img20250303151852jpg-1741167351935.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/img20250303151852jpg-1741167351935.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/img20250303151852jpg-1741167351935.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/thumb_img20250303151852jpg-1741167351935.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/thumb_img20250303151852jpg-1741167351935.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":5,"status":"active","created_date":"2025-03-05T09:35:51.936Z","updated_date":"2025-03-05T09:35:51.936Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F4857062041321472%2Fimg20250303151852jpg-1741167351935.jpg&uploadType=resumable&upload_id=AHMx-iFR5YoAhNGUULQLXboT8ywAhixyunYVUNMoo5wowXoGj0gTIBZQ9H--w9NsRtGarKd9ysT5pyF7Ym-rcQA7cetzJVeVoWilljbQeLSQ7g","id":"4818042531872768","has_anaglyph":false,"index":4,"title":"Photo 5"}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"4845114046283776":{"filename":"img20250303151625jpg-1741167351990.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/img20250303151625jpg-1741167351990.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/img20250303151625jpg-1741167351990.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/thumb_img20250303151625jpg-1741167351990.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/thumb_img20250303151625jpg-1741167351990.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-03-05T09:35:51.991Z","updated_date":"2025-03-05T09:35:51.991Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F4857062041321472%2Fimg20250303151625jpg-1741167351990.jpg&uploadType=resumable&upload_id=AHMx-iEOn_pBGKqeP9IOUYjwLPOHJRhGdlhJFjQvm3ywsLQ8LFmqWwanNclHwSWZEUcOieUFjqpQuztxXt0qkHy4hywoU1Hvr8XMWokAThqYGaw","id":"4845114046283776","has_anaglyph":false,"index":0,"title":"Photo 1"},"5413415998717952":{"filename":"img20250303151646jpg-1741167351786.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/img20250303151646jpg-1741167351786.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/img20250303151646jpg-1741167351786.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/thumb_img20250303151646jpg-1741167351786.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/thumb_img20250303151646jpg-1741167351786.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-03-05T09:35:51.786Z","updated_date":"2025-03-05T09:35:51.786Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F4857062041321472%2Fimg20250303151646jpg-1741167351786.jpg&uploadType=resumable&upload_id=AHMx-iFOepi8tvd7FvaiVfHdMTtVcmcrJGWBblYpdHMFXIu_QPDibLl0k5O10Ks74jbvpIdWwRjDR6xBGZgPsyULG8OKLNJ4PAb6MdI5Jn_izIY","id":"5413415998717952","has_anaglyph":false,"index":1,"title":"Photo 2"},"6115814480543744":{"filename":"img20250303151713jpg-1741167351916.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/img20250303151713jpg-1741167351916.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/img20250303151713jpg-1741167351916.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/thumb_img20250303151713jpg-1741167351916.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/thumb_img20250303151713jpg-1741167351916.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-03-05T09:35:51.917Z","updated_date":"2025-03-05T09:35:51.917Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F4857062041321472%2Fimg20250303151713jpg-1741167351916.jpg&uploadType=resumable&upload_id=AHMx-iHWaH0gb1xqbdR5jSEehrO8afkwRJDks8q4-0V1llBzepXtEKtLB3I-7gp86gruHuu3QL50hJsMUmX2_iOfi-wlBXkA9GRFilNzW-hFCQ","id":"6115814480543744","has_anaglyph":false,"index":2,"title":"Photo 3"},"5402304716996608":{"filename":"img20250303151759jpg-1741167351951.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/img20250303151759jpg-1741167351951.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/img20250303151759jpg-1741167351951.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/thumb_img20250303151759jpg-1741167351951.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/thumb_img20250303151759jpg-1741167351951.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-03-05T09:35:51.953Z","updated_date":"2025-03-05T09:35:51.953Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F4857062041321472%2Fimg20250303151759jpg-1741167351951.jpg&uploadType=resumable&upload_id=AHMx-iGf-OWHU9sWzXwRYORqvSfu56Jw-POr99EQEzP8uMmv-2XGTIeFdDYtX_bGG70XCmGVdJ0d1a4p729b08Ae4KZT131QDh-gan9sh2jdBJk","id":"5402304716996608","has_anaglyph":false,"index":3,"title":"Photo 4"},"4818042531872768":{"filename":"img20250303151852jpg-1741167351935.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/img20250303151852jpg-1741167351935.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/img20250303151852jpg-1741167351935.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/thumb_img20250303151852jpg-1741167351935.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/thumb_img20250303151852jpg-1741167351935.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":5,"status":"active","created_date":"2025-03-05T09:35:51.936Z","updated_date":"2025-03-05T09:35:51.936Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F4857062041321472%2Fimg20250303151852jpg-1741167351935.jpg&uploadType=resumable&upload_id=AHMx-iFR5YoAhNGUULQLXboT8ywAhixyunYVUNMoo5wowXoGj0gTIBZQ9H--w9NsRtGarKd9ysT5pyF7Ym-rcQA7cetzJVeVoWilljbQeLSQ7g","id":"4818042531872768","has_anaglyph":false,"index":4,"title":"Photo 5"}}; 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 = "4857062041321472"; window.tourUid = "qMES97hMT0dLUa6epE24jlCTYuV2"; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "jvc-binghatti-venus-502"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "aKLqm5srB"; 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['4845114046283776'] = 0; window.current_image_index = 0; window.current_image_id = 4845114046283776 window.photo_indexes['5413415998717952'] = 1; window.photo_indexes['6115814480543744'] = 2; window.photo_indexes['5402304716996608'] = 3; window.photo_indexes['4818042531872768'] = 4; 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/AGNmyxYrr3_jUiB3ZYAciSYe5qt_tt46bw6GKbomdDPN=s96-c'; window.user_profile_name = 'Nenuka Mahadewa'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://storage.googleapis.com/orbix360-prod-images/users/qMES97hMT0dLUa6epE24jlCTYuV2/4857062041321472/thumb_img20250303151625jpg-1741167351990.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 = {"versionNumber":3,"autorotate":{"enabled":false},"orbs":[{"id":4845114046283776,"hotspots":[{"id":"hotspot_4845114046283776_5413415998717952","from":4845114046283776,"to":5413415998717952,"position":{"x":0.4434155964857936,"y":-0.09055770220895952,"z":-0.8917297299988272},"toTitle":"Photo 2"},{"id":"hotspot_4845114046283776_6115814480543744","from":4845114046283776,"to":6115814480543744,"position":{"x":0.9731049429646986,"y":-0.021298144354415554,"z":-0.2293755850667839},"toTitle":"Photo 3"},{"id":"hotspot_4845114046283776_4818042531872768","from":4845114046283776,"to":4818042531872768,"position":{"x":0.6173982400469896,"y":0.014365591094340205,"z":-0.7865195757127663},"toTitle":"Photo 5"}],"infoHotspots":[]},{"id":5413415998717952,"hotspots":[{"id":"hotspot_5413415998717952_4818042531872768","from":5413415998717952,"to":4818042531872768,"position":{"x":-0.8940963690422878,"y":-0.0635579866882207,"z":-0.4433419280798254},"toTitle":"Photo 5"},{"id":"hotspot_5413415998717952_6115814480543744","from":5413415998717952,"to":6115814480543744,"position":{"x":0.822220909434007,"y":-0.019255270249941767,"z":-0.5688426941230028},"toTitle":"Photo 3"},{"id":"hotspot_5413415998717952_4845114046283776","from":5413415998717952,"to":4845114046283776,"position":{"x":0.9007776952058973,"y":-0.03680101660970809,"z":0.43271841767602587},"toTitle":"Photo 1"}],"infoHotspots":[]},{"id":6115814480543744,"hotspots":[{"id":"hotspot_6115814480543744_5402304716996608","from":6115814480543744,"to":5402304716996608,"position":{"x":0.6958733069879716,"y":0.02291631887524415,"z":0.7177988457435915},"toTitle":"Photo 4"},{"id":"hotspot_6115814480543744_4845114046283776","from":6115814480543744,"to":4845114046283776,"position":{"x":-0.14010402110471065,"y":-0.05653573958934928,"z":0.9885214076687344},"toTitle":"Photo 1"},{"id":"hotspot_6115814480543744_4818042531872768","from":6115814480543744,"to":4818042531872768,"position":{"x":-0.18868513409826865,"y":-0.06874540605108957,"z":-0.9796284955620621},"toTitle":"Photo 5"}],"infoHotspots":[]},{"id":5402304716996608,"hotspots":[{"id":"hotspot_5402304716996608_6115814480543744","from":5402304716996608,"to":6115814480543744,"position":{"x":-0.922277941368246,"y":-0.04069310605503544,"z":0.38437933085058507},"toTitle":"Photo 3"},{"id":"hotspot_5402304716996608_4845114046283776","from":5402304716996608,"to":4845114046283776,"position":{"x":0.0027746411014156996,"y":-0.01728941003520891,"z":0.9998466770797375},"toTitle":"Photo 1"}],"infoHotspots":[]},{"id":4818042531872768,"hotspots":[{"id":"hotspot_4818042531872768_6115814480543744","from":4818042531872768,"to":6115814480543744,"position":{"x":0.1826085047966159,"y":-0.24131208055324235,"z":0.9531120677837469},"toTitle":"Photo 3"},{"id":"hotspot_4818042531872768_5413415998717952","from":4818042531872768,"to":5413415998717952,"position":{"x":-0.9253377506100875,"y":-0.2392507126498816,"z":0.29412436789968166},"toTitle":"Photo 2"}],"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;