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%2FhtS7DCEq4iNot0tzgg3oKuE0vBu2%2F6318929332928512%2Fimg2020092414145100mergedjpg-1603053971752.jpg&uploadType=resumable&upload_id=ABg5-UyRbQE97zvJtlijBqMXYd7seyOBEVzvV3XFOBXSi3WaE4CJirfFXLs-RJIO-t7df13nfGJkApeDw2nUA-lOKPo","image_url":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/img2020092414145100mergedjpg-1603053971752.jpg","rotation":0,"thumbnail_gcs_filename":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/thumb_img2020092414145100mergedjpg-1603053971752.jpg","version":"v3","gcs_filename":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/img2020092414145100mergedjpg-1603053971752.jpg","filename":"img2020092414145100mergedjpg-1603053971752.jpg","folder":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512","thumbnail_image_url":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/thumb_img2020092414145100mergedjpg-1603053971752.jpg","is_stereo":true,"photo_type":"180_stereo","updated_date":"2020-10-18T20:46:11.753Z","created_date":"2020-10-18T20:46:11.753Z","sort_order":1,"status":"active","id":"6146591454920704","has_anaglyph":true,"title":"Photo 1"},{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FhtS7DCEq4iNot0tzgg3oKuE0vBu2%2F6318929332928512%2Fimg2020092415273200mergedjpg-1603053971763.jpg&uploadType=resumable&upload_id=ABg5-Uzi0DmNCoQJKaZg24Snz-DpZbpUoDjv0iCPNWEfmUXpAD7Z_-QqoGc7ptkNdgTl3_i5cnEOHlS8IYTs3uoVlG4","image_url":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/img2020092415273200mergedjpg-1603053971763.jpg","rotation":0,"thumbnail_gcs_filename":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/thumb_img2020092415273200mergedjpg-1603053971763.jpg","version":"v3","gcs_filename":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/img2020092415273200mergedjpg-1603053971763.jpg","folder":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512","filename":"img2020092415273200mergedjpg-1603053971763.jpg","is_stereo":true,"thumbnail_image_url":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/thumb_img2020092415273200mergedjpg-1603053971763.jpg","photo_type":"180_stereo","updated_date":"2020-10-18T20:46:11.763Z","created_date":"2020-10-18T20:46:11.763Z","sort_order":2,"status":"active","id":"5320983011393536","has_anaglyph":true,"title":"Photo 2"},{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FhtS7DCEq4iNot0tzgg3oKuE0vBu2%2F6318929332928512%2Fimg2020092415291900mergedjpg-1603053971772.jpg&uploadType=resumable&upload_id=ABg5-UwSyhIviYiMuRiibNdC8KS-K3xomdPapfOZQropPnegyWNQG0hAuRARL01oBEmQqkyo9AHrkP3AHUnK3rZF8hVFKs--9Q","image_url":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/img2020092415291900mergedjpg-1603053971772.jpg","rotation":0,"thumbnail_gcs_filename":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/thumb_img2020092415291900mergedjpg-1603053971772.jpg","version":"v3","gcs_filename":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/img2020092415291900mergedjpg-1603053971772.jpg","filename":"img2020092415291900mergedjpg-1603053971772.jpg","folder":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512","is_stereo":true,"thumbnail_image_url":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/thumb_img2020092415291900mergedjpg-1603053971772.jpg","photo_type":"180_stereo","updated_date":"2020-10-18T20:46:11.772Z","created_date":"2020-10-18T20:46:11.772Z","sort_order":3,"status":"active","id":"6482937088311296","has_anaglyph":true,"title":"Photo 3"},{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FhtS7DCEq4iNot0tzgg3oKuE0vBu2%2F6318929332928512%2Fimg2020092415382200mergedjpg-1603053971782.jpg&uploadType=resumable&upload_id=ABg5-Uw3zfKmj01q6L5TCHpnJkbf6bn4c-8-zpp42DIgAdlAiiHyFSTjQvNZhACpvz3NGZHht0iK44WGyiYFPirm7A","image_url":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/img2020092415382200mergedjpg-1603053971782.jpg","rotation":0,"thumbnail_gcs_filename":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/thumb_img2020092415382200mergedjpg-1603053971782.jpg","version":"v3","gcs_filename":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/img2020092415382200mergedjpg-1603053971782.jpg","filename":"img2020092415382200mergedjpg-1603053971782.jpg","folder":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512","is_stereo":true,"thumbnail_image_url":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/thumb_img2020092415382200mergedjpg-1603053971782.jpg","photo_type":"180_stereo","created_date":"2020-10-18T20:46:11.782Z","updated_date":"2020-10-18T20:46:11.782Z","sort_order":4,"status":"active","id":"5930847932776448","has_anaglyph":true,"title":"Photo 4"},{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FhtS7DCEq4iNot0tzgg3oKuE0vBu2%2F6318929332928512%2Fimg2020092415392000mergedjpg-1603053971791.jpg&uploadType=resumable&upload_id=ABg5-UwVeaslaa6BZtdoJK8uxO9Sty04SzaknqjHRQcB4WJB5mHkFIyN7lPanN91EkK8OBCI4IRUytaZWzmHiCEI8lI","image_url":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/img2020092415392000mergedjpg-1603053971791.jpg","rotation":0,"thumbnail_gcs_filename":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/thumb_img2020092415392000mergedjpg-1603053971791.jpg","version":"v3","gcs_filename":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/img2020092415392000mergedjpg-1603053971791.jpg","filename":"img2020092415392000mergedjpg-1603053971791.jpg","folder":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512","is_stereo":true,"thumbnail_image_url":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/thumb_img2020092415392000mergedjpg-1603053971791.jpg","photo_type":"180_stereo","updated_date":"2020-10-18T20:46:11.791Z","created_date":"2020-10-18T20:46:11.791Z","sort_order":5,"status":"active","id":"6669922784509952","has_anaglyph":true,"title":"Photo 5"}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"6146591454920704":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FhtS7DCEq4iNot0tzgg3oKuE0vBu2%2F6318929332928512%2Fimg2020092414145100mergedjpg-1603053971752.jpg&uploadType=resumable&upload_id=ABg5-UyRbQE97zvJtlijBqMXYd7seyOBEVzvV3XFOBXSi3WaE4CJirfFXLs-RJIO-t7df13nfGJkApeDw2nUA-lOKPo","image_url":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/img2020092414145100mergedjpg-1603053971752.jpg","rotation":0,"thumbnail_gcs_filename":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/thumb_img2020092414145100mergedjpg-1603053971752.jpg","version":"v3","gcs_filename":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/img2020092414145100mergedjpg-1603053971752.jpg","filename":"img2020092414145100mergedjpg-1603053971752.jpg","folder":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512","thumbnail_image_url":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/thumb_img2020092414145100mergedjpg-1603053971752.jpg","is_stereo":true,"photo_type":"180_stereo","updated_date":"2020-10-18T20:46:11.753Z","created_date":"2020-10-18T20:46:11.753Z","sort_order":1,"status":"active","id":"6146591454920704","has_anaglyph":true,"title":"Photo 1"},"5320983011393536":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FhtS7DCEq4iNot0tzgg3oKuE0vBu2%2F6318929332928512%2Fimg2020092415273200mergedjpg-1603053971763.jpg&uploadType=resumable&upload_id=ABg5-Uzi0DmNCoQJKaZg24Snz-DpZbpUoDjv0iCPNWEfmUXpAD7Z_-QqoGc7ptkNdgTl3_i5cnEOHlS8IYTs3uoVlG4","image_url":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/img2020092415273200mergedjpg-1603053971763.jpg","rotation":0,"thumbnail_gcs_filename":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/thumb_img2020092415273200mergedjpg-1603053971763.jpg","version":"v3","gcs_filename":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/img2020092415273200mergedjpg-1603053971763.jpg","folder":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512","filename":"img2020092415273200mergedjpg-1603053971763.jpg","is_stereo":true,"thumbnail_image_url":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/thumb_img2020092415273200mergedjpg-1603053971763.jpg","photo_type":"180_stereo","updated_date":"2020-10-18T20:46:11.763Z","created_date":"2020-10-18T20:46:11.763Z","sort_order":2,"status":"active","id":"5320983011393536","has_anaglyph":true,"title":"Photo 2"},"6482937088311296":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FhtS7DCEq4iNot0tzgg3oKuE0vBu2%2F6318929332928512%2Fimg2020092415291900mergedjpg-1603053971772.jpg&uploadType=resumable&upload_id=ABg5-UwSyhIviYiMuRiibNdC8KS-K3xomdPapfOZQropPnegyWNQG0hAuRARL01oBEmQqkyo9AHrkP3AHUnK3rZF8hVFKs--9Q","image_url":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/img2020092415291900mergedjpg-1603053971772.jpg","rotation":0,"thumbnail_gcs_filename":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/thumb_img2020092415291900mergedjpg-1603053971772.jpg","version":"v3","gcs_filename":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/img2020092415291900mergedjpg-1603053971772.jpg","filename":"img2020092415291900mergedjpg-1603053971772.jpg","folder":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512","is_stereo":true,"thumbnail_image_url":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/thumb_img2020092415291900mergedjpg-1603053971772.jpg","photo_type":"180_stereo","updated_date":"2020-10-18T20:46:11.772Z","created_date":"2020-10-18T20:46:11.772Z","sort_order":3,"status":"active","id":"6482937088311296","has_anaglyph":true,"title":"Photo 3"},"5930847932776448":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FhtS7DCEq4iNot0tzgg3oKuE0vBu2%2F6318929332928512%2Fimg2020092415382200mergedjpg-1603053971782.jpg&uploadType=resumable&upload_id=ABg5-Uw3zfKmj01q6L5TCHpnJkbf6bn4c-8-zpp42DIgAdlAiiHyFSTjQvNZhACpvz3NGZHht0iK44WGyiYFPirm7A","image_url":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/img2020092415382200mergedjpg-1603053971782.jpg","rotation":0,"thumbnail_gcs_filename":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/thumb_img2020092415382200mergedjpg-1603053971782.jpg","version":"v3","gcs_filename":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/img2020092415382200mergedjpg-1603053971782.jpg","filename":"img2020092415382200mergedjpg-1603053971782.jpg","folder":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512","is_stereo":true,"thumbnail_image_url":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/thumb_img2020092415382200mergedjpg-1603053971782.jpg","photo_type":"180_stereo","created_date":"2020-10-18T20:46:11.782Z","updated_date":"2020-10-18T20:46:11.782Z","sort_order":4,"status":"active","id":"5930847932776448","has_anaglyph":true,"title":"Photo 4"},"6669922784509952":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FhtS7DCEq4iNot0tzgg3oKuE0vBu2%2F6318929332928512%2Fimg2020092415392000mergedjpg-1603053971791.jpg&uploadType=resumable&upload_id=ABg5-UwVeaslaa6BZtdoJK8uxO9Sty04SzaknqjHRQcB4WJB5mHkFIyN7lPanN91EkK8OBCI4IRUytaZWzmHiCEI8lI","image_url":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/img2020092415392000mergedjpg-1603053971791.jpg","rotation":0,"thumbnail_gcs_filename":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/thumb_img2020092415392000mergedjpg-1603053971791.jpg","version":"v3","gcs_filename":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/img2020092415392000mergedjpg-1603053971791.jpg","filename":"img2020092415392000mergedjpg-1603053971791.jpg","folder":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512","is_stereo":true,"thumbnail_image_url":"/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/thumb_img2020092415392000mergedjpg-1603053971791.jpg","photo_type":"180_stereo","updated_date":"2020-10-18T20:46:11.791Z","created_date":"2020-10-18T20:46:11.791Z","sort_order":5,"status":"active","id":"6669922784509952","has_anaglyph":true,"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 = "6318929332928512"; window.tourUid = "htS7DCEq4iNot0tzgg3oKuE0vBu2"; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "altai-20200924"; window.template = '180_stereo'; window.template_category = ''; window.tourShortCode = "TNngzrqLh"; 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['6146591454920704'] = 0; window.current_image_index = 0; window.current_image_id = 6146591454920704 window.photo_indexes['5320983011393536'] = 1; window.photo_indexes['6482937088311296'] = 2; window.photo_indexes['5930847932776448'] = 3; window.photo_indexes['6669922784509952'] = 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://graph.facebook.com/3337029666372897/picture'; window.user_profile_name = 'Demonakor'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://storage.googleapis.com/orbix360-prod-images/users/htS7DCEq4iNot0tzgg3oKuE0vBu2/6318929332928512/thumb_img2020092414145100mergedjpg-1603053971752.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":[{"id":6146591454920704,"hotspots":[],"infoHotspots":[]},{"id":5320983011393536,"hotspots":[],"infoHotspots":[]},{"id":6482937088311296,"hotspots":[],"infoHotspots":[]},{"id":5930847932776448,"hotspots":[],"infoHotspots":[]},{"id":6669922784509952,"hotspots":[],"infoHotspots":[]}],"versionNumber":2,"autorotate":{"enabled":false}}; 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;