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":"img20250513141954jpg-1747298093456.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/img20250513141954jpg-1747298093456.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/img20250513141954jpg-1747298093456.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/thumb_img20250513141954jpg-1747298093456.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/thumb_img20250513141954jpg-1747298093456.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-05-15T08:34:53.457Z","updated_date":"2025-05-15T08:34:53.457Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F5967088655007744%2Fimg20250513141954jpg-1747298093456.jpg&uploadType=resumable&upload_id=AAO2VwrkO8zjEfo8jG5TKXmuUAncmq_oZvMvnNZzYhiELWsJhzPE_Le5kZCAJjfg8xjADQc3CIyWucdqnrid0MAwmo8sb4sLux_tT3CNlknAvA","id":"5379938809020416","has_anaglyph":false,"index":0,"title":"Photo 1"},{"filename":"img20250513141845jpg-1747298093541.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/img20250513141845jpg-1747298093541.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/img20250513141845jpg-1747298093541.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/thumb_img20250513141845jpg-1747298093541.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/thumb_img20250513141845jpg-1747298093541.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-05-15T08:34:53.542Z","updated_date":"2025-05-15T08:34:53.542Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F5967088655007744%2Fimg20250513141845jpg-1747298093541.jpg&uploadType=resumable&upload_id=AAO2Vwoml2R-x492F9F_UrC3ahLqKKvyEQzSxTf1EA7H49Eu-MTJw8QjtTlykOLjPRPBA3ZWU4Iw4qDnEt9QQNORau2fPGfcpZjE6kMzN8LP9Q","id":"4874605976092672","has_anaglyph":false,"index":1,"title":"Photo 2"},{"filename":"img20250513142147jpg-1747298093502.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/img20250513142147jpg-1747298093502.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/img20250513142147jpg-1747298093502.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/thumb_img20250513142147jpg-1747298093502.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/thumb_img20250513142147jpg-1747298093502.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-05-15T08:34:53.503Z","updated_date":"2025-05-15T08:34:53.503Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F5967088655007744%2Fimg20250513142147jpg-1747298093502.jpg&uploadType=resumable&upload_id=AAO2Vwo4jt05O6_ROHTldI84efq_Vu8_DTEowyxfZlU-UbA6neLHhgYd9xZsSQhddWzn1LAvfpvk9-Pz-B6sIKrnfsAoKijPNXecS7N4adYzwA","id":"4790013004873728","has_anaglyph":false,"index":2,"title":"Photo 3"},{"filename":"img20250513142214jpg-1747298093352.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/img20250513142214jpg-1747298093352.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/img20250513142214jpg-1747298093352.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/thumb_img20250513142214jpg-1747298093352.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/thumb_img20250513142214jpg-1747298093352.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-05-15T08:34:53.352Z","updated_date":"2025-05-15T08:34:53.352Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F5967088655007744%2Fimg20250513142214jpg-1747298093352.jpg&uploadType=resumable&upload_id=AAO2VwqxO7H3hnPpYVcxHuJBH6vhOivJNW8iUAxsL2z0aG_VmltxKFVn9urS2hIgGmu4F_VwXQ69qgfEMfY956dgUYjqKhNqQ2laLDOMeY8v-lk","id":"4899725729857536","has_anaglyph":false,"index":3,"title":"Photo 4"},{"filename":"img20250513142245jpg-1747298093614.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/img20250513142245jpg-1747298093614.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/img20250513142245jpg-1747298093614.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/thumb_img20250513142245jpg-1747298093614.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/thumb_img20250513142245jpg-1747298093614.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":5,"status":"active","created_date":"2025-05-15T08:34:53.615Z","updated_date":"2025-05-15T08:34:53.615Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F5967088655007744%2Fimg20250513142245jpg-1747298093614.jpg&uploadType=resumable&upload_id=AAO2VwqxuKhvYBAV6fOtnKSqD09Ag5lWfSjypOG_FxQDgQfTGhDw3IYgUpgFTE_gAb7GhwTSgNAt_8zjyDYwwNkkgLc3BLneNSWIxIVw7nV9re0","id":"5996122499710976","has_anaglyph":false,"index":4,"title":"Photo 5"}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"4874605976092672":{"filename":"img20250513141845jpg-1747298093541.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/img20250513141845jpg-1747298093541.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/img20250513141845jpg-1747298093541.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/thumb_img20250513141845jpg-1747298093541.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/thumb_img20250513141845jpg-1747298093541.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-05-15T08:34:53.542Z","updated_date":"2025-05-15T08:34:53.542Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F5967088655007744%2Fimg20250513141845jpg-1747298093541.jpg&uploadType=resumable&upload_id=AAO2Vwoml2R-x492F9F_UrC3ahLqKKvyEQzSxTf1EA7H49Eu-MTJw8QjtTlykOLjPRPBA3ZWU4Iw4qDnEt9QQNORau2fPGfcpZjE6kMzN8LP9Q","id":"4874605976092672","has_anaglyph":false,"index":1,"title":"Photo 2"},"5379938809020416":{"filename":"img20250513141954jpg-1747298093456.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/img20250513141954jpg-1747298093456.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/img20250513141954jpg-1747298093456.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/thumb_img20250513141954jpg-1747298093456.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/thumb_img20250513141954jpg-1747298093456.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-05-15T08:34:53.457Z","updated_date":"2025-05-15T08:34:53.457Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F5967088655007744%2Fimg20250513141954jpg-1747298093456.jpg&uploadType=resumable&upload_id=AAO2VwrkO8zjEfo8jG5TKXmuUAncmq_oZvMvnNZzYhiELWsJhzPE_Le5kZCAJjfg8xjADQc3CIyWucdqnrid0MAwmo8sb4sLux_tT3CNlknAvA","id":"5379938809020416","has_anaglyph":false,"index":0,"title":"Photo 1"},"4790013004873728":{"filename":"img20250513142147jpg-1747298093502.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/img20250513142147jpg-1747298093502.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/img20250513142147jpg-1747298093502.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/thumb_img20250513142147jpg-1747298093502.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/thumb_img20250513142147jpg-1747298093502.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-05-15T08:34:53.503Z","updated_date":"2025-05-15T08:34:53.503Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F5967088655007744%2Fimg20250513142147jpg-1747298093502.jpg&uploadType=resumable&upload_id=AAO2Vwo4jt05O6_ROHTldI84efq_Vu8_DTEowyxfZlU-UbA6neLHhgYd9xZsSQhddWzn1LAvfpvk9-Pz-B6sIKrnfsAoKijPNXecS7N4adYzwA","id":"4790013004873728","has_anaglyph":false,"index":2,"title":"Photo 3"},"4899725729857536":{"filename":"img20250513142214jpg-1747298093352.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/img20250513142214jpg-1747298093352.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/img20250513142214jpg-1747298093352.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/thumb_img20250513142214jpg-1747298093352.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/thumb_img20250513142214jpg-1747298093352.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-05-15T08:34:53.352Z","updated_date":"2025-05-15T08:34:53.352Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F5967088655007744%2Fimg20250513142214jpg-1747298093352.jpg&uploadType=resumable&upload_id=AAO2VwqxO7H3hnPpYVcxHuJBH6vhOivJNW8iUAxsL2z0aG_VmltxKFVn9urS2hIgGmu4F_VwXQ69qgfEMfY956dgUYjqKhNqQ2laLDOMeY8v-lk","id":"4899725729857536","has_anaglyph":false,"index":3,"title":"Photo 4"},"5996122499710976":{"filename":"img20250513142245jpg-1747298093614.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/img20250513142245jpg-1747298093614.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/img20250513142245jpg-1747298093614.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/thumb_img20250513142245jpg-1747298093614.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/5967088655007744/thumb_img20250513142245jpg-1747298093614.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":5,"status":"active","created_date":"2025-05-15T08:34:53.615Z","updated_date":"2025-05-15T08:34:53.615Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F5967088655007744%2Fimg20250513142245jpg-1747298093614.jpg&uploadType=resumable&upload_id=AAO2VwqxuKhvYBAV6fOtnKSqD09Ag5lWfSjypOG_FxQDgQfTGhDw3IYgUpgFTE_gAb7GhwTSgNAt_8zjyDYwwNkkgLc3BLneNSWIxIVw7nV9re0","id":"5996122499710976","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 = "5967088655007744"; window.tourUid = "qMES97hMT0dLUa6epE24jlCTYuV2"; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "damac-hills-carson"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "zo0pVNxdh"; 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['5379938809020416'] = 0; window.current_image_index = 0; window.current_image_id = 5379938809020416 window.photo_indexes['4874605976092672'] = 1; window.photo_indexes['4790013004873728'] = 2; window.photo_indexes['4899725729857536'] = 3; window.photo_indexes['5996122499710976'] = 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/5967088655007744/thumb_img20250513141954jpg-1747298093456.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":5379938809020416,"hotspots":[{"id":"hotspot_5379938809020416_4874605976092672","from":5379938809020416,"to":4874605976092672,"position":{"x":-0.24124008210474468,"y":0.009132044582805521,"z":-0.9704225000214255},"toTitle":"Photo 2"},{"id":"hotspot_5379938809020416_4790013004873728","from":5379938809020416,"to":4790013004873728,"position":{"x":0.17054307201220073,"y":0.005710816071946937,"z":-0.985333673010536},"toTitle":"Photo 3"},{"id":"hotspot_5379938809020416_4899725729857536","from":5379938809020416,"to":4899725729857536,"position":{"x":0.3754783214842755,"y":0.03229729458392311,"z":-0.9262682736971564},"toTitle":"Photo 4"}],"infoHotspots":[]},{"id":4874605976092672,"hotspots":[{"id":"hotspot_4874605976092672_5379938809020416","from":4874605976092672,"to":5379938809020416,"position":{"x":-0.5173266292901106,"y":0.024962630002848873,"z":-0.8554238865794394},"toTitle":"Photo 1"}],"infoHotspots":[]},{"id":4790013004873728,"hotspots":[{"id":"hotspot_4790013004873728_4899725729857536","from":4790013004873728,"to":4899725729857536,"position":{"x":0.7813841949633203,"y":0.022076984002994158,"z":-0.6236596400592677},"toTitle":"Photo 4"},{"id":"hotspot_4790013004873728_5996122499710976","from":4790013004873728,"to":5996122499710976,"position":{"x":0.5409700355388981,"y":0.022417512197131426,"z":-0.8407430498053104},"toTitle":"Photo 5"},{"id":"hotspot_4790013004873728_5379938809020416","from":4790013004873728,"to":5379938809020416,"position":{"x":-0.5222767506317793,"y":-0.07704163262398724,"z":0.8492888687555845},"toTitle":"Photo 1"},{"id":"hotspot_4790013004873728_4874605976092672","from":4790013004873728,"to":4874605976092672,"position":{"x":-0.7815427320396164,"y":-0.1776025749471702,"z":0.59803702508138},"toTitle":"Photo 2"}],"infoHotspots":[]},{"id":4899725729857536,"hotspots":[{"id":"hotspot_4899725729857536_5379938809020416","from":4899725729857536,"to":5379938809020416,"position":{"x":-0.981218265830422,"y":-0.08624916906482993,"z":-0.17254505393190908},"toTitle":"Photo 1"},{"id":"hotspot_4899725729857536_4790013004873728","from":4899725729857536,"to":4790013004873728,"position":{"x":-0.6638086994120513,"y":-0.15307017738132425,"z":-0.7320707147409539},"toTitle":"Photo 3"},{"id":"hotspot_4899725729857536_4874605976092672","from":4899725729857536,"to":4874605976092672,"position":{"x":-0.9289992686647046,"y":-0.09172784478275864,"z":-0.35853362647310233},"toTitle":"Photo 2"},{"id":"hotspot_4899725729857536_5996122499710976","from":4899725729857536,"to":5996122499710976,"position":{"x":0.967267685737996,"y":-0.059637360567140606,"z":-0.2466507842104825},"toTitle":"Photo 5"}],"infoHotspots":[]},{"id":5996122499710976,"hotspots":[{"id":"hotspot_5996122499710976_4899725729857536","from":5996122499710976,"to":4899725729857536,"position":{"x":-0.3115315820784744,"y":-0.011355030451867427,"z":0.9501679518122678},"toTitle":"Photo 4"}],"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;