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 = [{"preview_gcs_filename":"/users/EEiDCRNE8HSKvpgG8gHoDaJeaDI2/5629499534213120/preview_d7c5f0f8-fd8c-4338-8a15-7458e5912d5bjpeg-1548598667881.jpeg","resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FEEiDCRNE8HSKvpgG8gHoDaJeaDI2%2F5629499534213120%2Fd7c5f0f8-fd8c-4338-8a15-7458e5912d5bjpeg-1548598667881.jpeg&uploadType=resumable&upload_id=AEnB2UoVyLaG5V2zIEk0acvg211mE_z5k-wukzjGPU-cRb2soRrCHSJqsLHQ6Y26i261VF00MNN-dF_X_dbE8soZERtPGM82PVzeZWLzFABW4kPUw8DRzBI","image_url":"/users/EEiDCRNE8HSKvpgG8gHoDaJeaDI2/5629499534213120/d7c5f0f8-fd8c-4338-8a15-7458e5912d5bjpeg-1548598667881.jpeg","rotation":0,"thumbnail_gcs_filename":"/users/EEiDCRNE8HSKvpgG8gHoDaJeaDI2/5629499534213120/thumb_d7c5f0f8-fd8c-4338-8a15-7458e5912d5bjpeg-1548598667881.jpeg","version":"v3","gcs_filename":"/users/EEiDCRNE8HSKvpgG8gHoDaJeaDI2/5629499534213120/d7c5f0f8-fd8c-4338-8a15-7458e5912d5bjpeg-1548598667881.jpeg","folder":"/users/EEiDCRNE8HSKvpgG8gHoDaJeaDI2/5629499534213120","filename":"d7c5f0f8-fd8c-4338-8a15-7458e5912d5bjpeg-1548598667881.jpeg","thumbnail_image_url":"/users/EEiDCRNE8HSKvpgG8gHoDaJeaDI2/5629499534213120/thumb_d7c5f0f8-fd8c-4338-8a15-7458e5912d5bjpeg-1548598667881.jpeg","is_stereo":false,"preview_image_url":"/users/EEiDCRNE8HSKvpgG8gHoDaJeaDI2/5629499534213120/preview_d7c5f0f8-fd8c-4338-8a15-7458e5912d5bjpeg-1548598667881.jpeg","photo_type":"360_mono","updated_date":"2019-01-27T14:17:47.881Z","created_date":"2019-01-27T14:17:47.881Z","sort_order":1,"status":"active","id":"5707702298738688","has_anaglyph":false,"title":"Photo 1"}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5707702298738688":{"preview_gcs_filename":"/users/EEiDCRNE8HSKvpgG8gHoDaJeaDI2/5629499534213120/preview_d7c5f0f8-fd8c-4338-8a15-7458e5912d5bjpeg-1548598667881.jpeg","resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FEEiDCRNE8HSKvpgG8gHoDaJeaDI2%2F5629499534213120%2Fd7c5f0f8-fd8c-4338-8a15-7458e5912d5bjpeg-1548598667881.jpeg&uploadType=resumable&upload_id=AEnB2UoVyLaG5V2zIEk0acvg211mE_z5k-wukzjGPU-cRb2soRrCHSJqsLHQ6Y26i261VF00MNN-dF_X_dbE8soZERtPGM82PVzeZWLzFABW4kPUw8DRzBI","image_url":"/users/EEiDCRNE8HSKvpgG8gHoDaJeaDI2/5629499534213120/d7c5f0f8-fd8c-4338-8a15-7458e5912d5bjpeg-1548598667881.jpeg","rotation":0,"thumbnail_gcs_filename":"/users/EEiDCRNE8HSKvpgG8gHoDaJeaDI2/5629499534213120/thumb_d7c5f0f8-fd8c-4338-8a15-7458e5912d5bjpeg-1548598667881.jpeg","version":"v3","gcs_filename":"/users/EEiDCRNE8HSKvpgG8gHoDaJeaDI2/5629499534213120/d7c5f0f8-fd8c-4338-8a15-7458e5912d5bjpeg-1548598667881.jpeg","folder":"/users/EEiDCRNE8HSKvpgG8gHoDaJeaDI2/5629499534213120","filename":"d7c5f0f8-fd8c-4338-8a15-7458e5912d5bjpeg-1548598667881.jpeg","thumbnail_image_url":"/users/EEiDCRNE8HSKvpgG8gHoDaJeaDI2/5629499534213120/thumb_d7c5f0f8-fd8c-4338-8a15-7458e5912d5bjpeg-1548598667881.jpeg","is_stereo":false,"preview_image_url":"/users/EEiDCRNE8HSKvpgG8gHoDaJeaDI2/5629499534213120/preview_d7c5f0f8-fd8c-4338-8a15-7458e5912d5bjpeg-1548598667881.jpeg","photo_type":"360_mono","updated_date":"2019-01-27T14:17:47.881Z","created_date":"2019-01-27T14:17:47.881Z","sort_order":1,"status":"active","id":"5707702298738688","has_anaglyph":false,"title":"Photo 1"}}; 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 = "5629499534213120"; window.tourUid = "EEiDCRNE8HSKvpgG8gHoDaJeaDI2"; window.customUrl = "http://www.orbix360.com"; window.tourSlug = ""; window.template = ''; window.template_category = ''; window.tourShortCode = ""; 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['5707702298738688'] = 0; window.current_image_index = 0; window.current_image_id = 5707702298738688 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 = '/images/profile-icon.png'; window.user_profile_name = 'Orbi-3785839824'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://storage.googleapis.com/orbix360-prod-images/users/EEiDCRNE8HSKvpgG8gHoDaJeaDI2/5629499534213120/thumb_d7c5f0f8-fd8c-4338-8a15-7458e5912d5bjpeg-1548598667881.jpeg.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 = {"version":"v2","versionNumber":2,"autorotate":{"enabled":false},"orbs":[{"id":5707702298738688,"hotspots":[],"infoHotspots":[]}]}; window.brandingAllowed = false; window.upgradeCheckoutSessionStatus = ''; window.isUpgradeSubscriptionValid = false; window.isPro = (window.brandingAllowed || window.isUpgradeSubscriptionValid); window.nadirLogoURL = (window.brandingAllowed || isUpgradeSubscriptionValid) ? '/images/powered-by-orbix_nadir.png' : '/images/orbix_nadir.png'; window.editMode = false;