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":"img20250318142607jpg-1742721196281.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/img20250318142607jpg-1742721196281.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/img20250318142607jpg-1742721196281.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/thumb_img20250318142607jpg-1742721196281.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/thumb_img20250318142607jpg-1742721196281.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-03-23T09:13:16.282Z","updated_date":"2025-03-23T09:13:16.282Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F4819475239010304%2Fimg20250318142607jpg-1742721196281.jpg&uploadType=resumable&upload_id=AKDAyIsWrL4J7ddjBKx5iwahmMqUXagDTFUB56HIVee-aJX-UavjUk3guGgYvujWfEV48-eqYb0_AqNRPval6rshxoJ_SPq_PQI2EIhXzYd7NNU","id":"4909226986045440","has_anaglyph":false,"index":0,"title":"Photo 1"},{"filename":"img20250318142653jpg-1742721195821.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/img20250318142653jpg-1742721195821.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/img20250318142653jpg-1742721195821.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/thumb_img20250318142653jpg-1742721195821.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/thumb_img20250318142653jpg-1742721195821.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-03-23T09:13:15.822Z","updated_date":"2025-03-23T09:13:15.822Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F4819475239010304%2Fimg20250318142653jpg-1742721195821.jpg&uploadType=resumable&upload_id=AKDAyIvKceWcmSYOmqu_GHHfNbkYXTEjmzm4xVZANgrFdKj49MOIc7HcmowR02W7hTSY7jR16TswN4G_DJi166Qno7QFwZq9bwMmWqsIxmjk","id":"5919927263297536","has_anaglyph":false,"index":1,"title":"Photo 2"},{"filename":"img20250318142712jpg-1742721195704.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/img20250318142712jpg-1742721195704.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/img20250318142712jpg-1742721195704.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/thumb_img20250318142712jpg-1742721195704.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/thumb_img20250318142712jpg-1742721195704.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-03-23T09:13:15.705Z","updated_date":"2025-03-23T09:13:15.705Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F4819475239010304%2Fimg20250318142712jpg-1742721195704.jpg&uploadType=resumable&upload_id=AKDAyIs9dS1g2YYxKWh1aAttuPSmr52R7PAKcEo0qQDJUjWkJFb7F6ky2RMGqApyJAXEsXgRb4IhFVh07HIaD2C6iB3kvyJQKBXWVOAeDA8kKJo","id":"4893024943341568","has_anaglyph":false,"index":2,"title":"Photo 3"},{"filename":"img20250318142745jpg-1742721195574.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/img20250318142745jpg-1742721195574.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/img20250318142745jpg-1742721195574.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/thumb_img20250318142745jpg-1742721195574.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/thumb_img20250318142745jpg-1742721195574.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-03-23T09:13:15.575Z","updated_date":"2025-03-23T09:13:15.575Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F4819475239010304%2Fimg20250318142745jpg-1742721195574.jpg&uploadType=resumable&upload_id=AKDAyItxHmPo5o1njMxVqdnzTjpgZos9LW9pShpLsbAT6ssJTw-VL07QhjvoReVnZphoN7LrjA1vKWplnnfqIKhdBpTP8vdzT3Lsktx7Ih8Tqg","id":"4794027356454912","has_anaglyph":false,"index":3,"title":"Photo 4"},{"filename":"img20250318142910jpg-1742721195715.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/img20250318142910jpg-1742721195715.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/img20250318142910jpg-1742721195715.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/thumb_img20250318142910jpg-1742721195715.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/thumb_img20250318142910jpg-1742721195715.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":5,"status":"active","created_date":"2025-03-23T09:13:15.715Z","updated_date":"2025-03-23T09:13:15.715Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F4819475239010304%2Fimg20250318142910jpg-1742721195715.jpg&uploadType=resumable&upload_id=AKDAyIt04JxGzbHsxtGFvr8rdCNKSGLcG5U4DxC4LGJv1nL-hqLA-wvFOQ6-vBbqyN2gKAbMh02wRBlE5WYfogcJZxG4hHj6-KL9b6xpxAMotQ","id":"4846565879447552","has_anaglyph":false,"index":4,"title":"Photo 5"}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"4909226986045440":{"filename":"img20250318142607jpg-1742721196281.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/img20250318142607jpg-1742721196281.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/img20250318142607jpg-1742721196281.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/thumb_img20250318142607jpg-1742721196281.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/thumb_img20250318142607jpg-1742721196281.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-03-23T09:13:16.282Z","updated_date":"2025-03-23T09:13:16.282Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F4819475239010304%2Fimg20250318142607jpg-1742721196281.jpg&uploadType=resumable&upload_id=AKDAyIsWrL4J7ddjBKx5iwahmMqUXagDTFUB56HIVee-aJX-UavjUk3guGgYvujWfEV48-eqYb0_AqNRPval6rshxoJ_SPq_PQI2EIhXzYd7NNU","id":"4909226986045440","has_anaglyph":false,"index":0,"title":"Photo 1"},"5919927263297536":{"filename":"img20250318142653jpg-1742721195821.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/img20250318142653jpg-1742721195821.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/img20250318142653jpg-1742721195821.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/thumb_img20250318142653jpg-1742721195821.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/thumb_img20250318142653jpg-1742721195821.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-03-23T09:13:15.822Z","updated_date":"2025-03-23T09:13:15.822Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F4819475239010304%2Fimg20250318142653jpg-1742721195821.jpg&uploadType=resumable&upload_id=AKDAyIvKceWcmSYOmqu_GHHfNbkYXTEjmzm4xVZANgrFdKj49MOIc7HcmowR02W7hTSY7jR16TswN4G_DJi166Qno7QFwZq9bwMmWqsIxmjk","id":"5919927263297536","has_anaglyph":false,"index":1,"title":"Photo 2"},"4893024943341568":{"filename":"img20250318142712jpg-1742721195704.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/img20250318142712jpg-1742721195704.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/img20250318142712jpg-1742721195704.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/thumb_img20250318142712jpg-1742721195704.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/thumb_img20250318142712jpg-1742721195704.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-03-23T09:13:15.705Z","updated_date":"2025-03-23T09:13:15.705Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F4819475239010304%2Fimg20250318142712jpg-1742721195704.jpg&uploadType=resumable&upload_id=AKDAyIs9dS1g2YYxKWh1aAttuPSmr52R7PAKcEo0qQDJUjWkJFb7F6ky2RMGqApyJAXEsXgRb4IhFVh07HIaD2C6iB3kvyJQKBXWVOAeDA8kKJo","id":"4893024943341568","has_anaglyph":false,"index":2,"title":"Photo 3"},"4794027356454912":{"filename":"img20250318142745jpg-1742721195574.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/img20250318142745jpg-1742721195574.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/img20250318142745jpg-1742721195574.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/thumb_img20250318142745jpg-1742721195574.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/thumb_img20250318142745jpg-1742721195574.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-03-23T09:13:15.575Z","updated_date":"2025-03-23T09:13:15.575Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F4819475239010304%2Fimg20250318142745jpg-1742721195574.jpg&uploadType=resumable&upload_id=AKDAyItxHmPo5o1njMxVqdnzTjpgZos9LW9pShpLsbAT6ssJTw-VL07QhjvoReVnZphoN7LrjA1vKWplnnfqIKhdBpTP8vdzT3Lsktx7Ih8Tqg","id":"4794027356454912","has_anaglyph":false,"index":3,"title":"Photo 4"},"4846565879447552":{"filename":"img20250318142910jpg-1742721195715.jpg","folder":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304","gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/img20250318142910jpg-1742721195715.jpg","image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/img20250318142910jpg-1742721195715.jpg","thumbnail_gcs_filename":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/thumb_img20250318142910jpg-1742721195715.jpg","thumbnail_image_url":"/users/qMES97hMT0dLUa6epE24jlCTYuV2/4819475239010304/thumb_img20250318142910jpg-1742721195715.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":5,"status":"active","created_date":"2025-03-23T09:13:15.715Z","updated_date":"2025-03-23T09:13:15.715Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FqMES97hMT0dLUa6epE24jlCTYuV2%2F4819475239010304%2Fimg20250318142910jpg-1742721195715.jpg&uploadType=resumable&upload_id=AKDAyIt04JxGzbHsxtGFvr8rdCNKSGLcG5U4DxC4LGJv1nL-hqLA-wvFOQ6-vBbqyN2gKAbMh02wRBlE5WYfogcJZxG4hHj6-KL9b6xpxAMotQ","id":"4846565879447552","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 = "4819475239010304"; window.tourUid = "qMES97hMT0dLUa6epE24jlCTYuV2"; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "bb-avanti-tower"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "-hUnm9CNI"; 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['4909226986045440'] = 0; window.current_image_index = 0; window.current_image_id = 4909226986045440 window.photo_indexes['5919927263297536'] = 1; window.photo_indexes['4893024943341568'] = 2; window.photo_indexes['4794027356454912'] = 3; window.photo_indexes['4846565879447552'] = 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/4819475239010304/thumb_img20250318142607jpg-1742721196281.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":4909226986045440,"hotspots":[{"id":"hotspot_4909226986045440_5919927263297536","from":4909226986045440,"to":5919927263297536,"position":{"x":-0.0761921006590797,"y":-0.027274850684995224,"z":-0.9967200441032917},"toTitle":"Photo 2"}],"infoHotspots":[]},{"id":5919927263297536,"hotspots":[{"id":"hotspot_5919927263297536_4794027356454912","from":5919927263297536,"to":4794027356454912,"position":{"x":0.9405488822211909,"y":-0.03226988945347731,"z":-0.33812195194504713},"toTitle":"Photo 4"},{"id":"hotspot_5919927263297536_4893024943341568","from":5919927263297536,"to":4893024943341568,"position":{"x":-0.48883735743357265,"y":0.0059976958378860756,"z":-0.8723543234385887},"toTitle":"Photo 3"},{"id":"hotspot_5919927263297536_4909226986045440","from":5919927263297536,"to":4909226986045440,"position":{"x":-0.9926504243095814,"y":-0.09400360553123836,"z":0.07621323549840393},"toTitle":"Photo 1"},{"id":"hotspot_5919927263297536_4846565879447552","from":5919927263297536,"to":4846565879447552,"position":{"x":0.5040799044004968,"y":-0.09875094886569115,"z":-0.8579928321831785},"toTitle":"Photo 5"}],"infoHotspots":[]},{"id":4893024943341568,"hotspots":[],"infoHotspots":[]},{"id":4794027356454912,"hotspots":[{"id":"hotspot_4794027356454912_5919927263297536","from":4794027356454912,"to":5919927263297536,"position":{"x":0.44386921961043385,"y":-0.00616386311470127,"z":0.8960703781924316},"toTitle":"Photo 2"},{"id":"hotspot_4794027356454912_4846565879447552","from":4794027356454912,"to":4846565879447552,"position":{"x":-0.06290477584590645,"y":-0.01220241571971521,"z":0.9979449334639559},"toTitle":"Photo 5"}],"infoHotspots":[]},{"id":4846565879447552,"hotspots":[{"id":"hotspot_4846565879447552_4893024943341568","from":4846565879447552,"to":4893024943341568,"position":{"x":-0.45763315411704086,"y":0.0002312737904297104,"z":-0.8891410702275104},"toTitle":"Photo 3"},{"id":"hotspot_4846565879447552_5919927263297536","from":4846565879447552,"to":5919927263297536,"position":{"x":-0.8412598627096186,"y":-0.11041530880190295,"z":0.5292355836260199},"toTitle":"Photo 2"},{"id":"hotspot_4846565879447552_4794027356454912","from":4846565879447552,"to":4794027356454912,"position":{"x":0.7107033904600641,"y":-0.08584779899542389,"z":0.6982340912589496},"toTitle":"Photo 4"},{"id":"hotspot_4846565879447552_4909226986045440","from":4846565879447552,"to":4909226986045440,"position":{"x":-0.9923901771433468,"y":-0.06160439245152591,"z":-0.10661442275825127},"toTitle":"Photo 1"}],"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;