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://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FE58Cp71CSVVKqqxqatlb55mMTKm2%2F5721853146431488%2Funnamed-1jpg-1591025164553.jpg&uploadType=resumable&upload_id=AAANsUmLTNdeUU8f3Ey4-oM2tijyD-8RHGvlvwYhkba-FGWhBrZlfSGdPa2plx23GF87nfNNxEjJl-qC8FdcpiCm1wY","image_url":"/users/E58Cp71CSVVKqqxqatlb55mMTKm2/5721853146431488/unnamed-1jpg-1591025164553.jpg","rotation":0,"thumbnail_gcs_filename":"/users/E58Cp71CSVVKqqxqatlb55mMTKm2/5721853146431488/thumb_unnamed-1jpg-1591025164553.jpg","title":"Hallway","version":"v3","gcs_filename":"/users/E58Cp71CSVVKqqxqatlb55mMTKm2/5721853146431488/unnamed-1jpg-1591025164553.jpg","filename":"unnamed-1jpg-1591025164553.jpg","folder":"/users/E58Cp71CSVVKqqxqatlb55mMTKm2/5721853146431488","is_stereo":false,"thumbnail_image_url":"/users/E58Cp71CSVVKqqxqatlb55mMTKm2/5721853146431488/thumb_unnamed-1jpg-1591025164553.jpg","photo_type":"360_pano","created_date":"2020-06-01T15:26:04.554Z","updated_date":"2020-06-01T15:26:04.554Z","sort_order":1,"status":"active","id":"5111850538631168","has_anaglyph":false,"index":0},{"resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FE58Cp71CSVVKqqxqatlb55mMTKm2%2F5721853146431488%2F20190430_103010jpg-1591025337932.jpg&uploadType=resumable&upload_id=AAANsUmngmBg2_9tSgBPljB-q9EzVGjxZBeOm6TWstZRCM8n_If4ALxjM9TgfBOH3JDaWntEhzOMAJGkVo40mFPQT-w","image_url":"/users/E58Cp71CSVVKqqxqatlb55mMTKm2/5721853146431488/20190430_103010jpg-1591025337932.jpg","rotation":0,"thumbnail_gcs_filename":"/users/E58Cp71CSVVKqqxqatlb55mMTKm2/5721853146431488/thumb_20190430_103010jpg-1591025337932.jpg","version":"v3","gcs_filename":"/users/E58Cp71CSVVKqqxqatlb55mMTKm2/5721853146431488/20190430_103010jpg-1591025337932.jpg","folder":"/users/E58Cp71CSVVKqqxqatlb55mMTKm2/5721853146431488","filename":"20190430_103010jpg-1591025337932.jpg","is_stereo":false,"thumbnail_image_url":"/users/E58Cp71CSVVKqqxqatlb55mMTKm2/5721853146431488/thumb_20190430_103010jpg-1591025337932.jpg","photo_type":"360_mono","updated_date":"2020-06-01T15:28:57.932Z","created_date":"2020-06-01T15:28:57.932Z","sort_order":2,"status":"active","id":"6510823191085056","has_anaglyph":false,"title":"Photo 2"}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5111850538631168":{"resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FE58Cp71CSVVKqqxqatlb55mMTKm2%2F5721853146431488%2Funnamed-1jpg-1591025164553.jpg&uploadType=resumable&upload_id=AAANsUmLTNdeUU8f3Ey4-oM2tijyD-8RHGvlvwYhkba-FGWhBrZlfSGdPa2plx23GF87nfNNxEjJl-qC8FdcpiCm1wY","image_url":"/users/E58Cp71CSVVKqqxqatlb55mMTKm2/5721853146431488/unnamed-1jpg-1591025164553.jpg","rotation":0,"thumbnail_gcs_filename":"/users/E58Cp71CSVVKqqxqatlb55mMTKm2/5721853146431488/thumb_unnamed-1jpg-1591025164553.jpg","title":"Hallway","version":"v3","gcs_filename":"/users/E58Cp71CSVVKqqxqatlb55mMTKm2/5721853146431488/unnamed-1jpg-1591025164553.jpg","filename":"unnamed-1jpg-1591025164553.jpg","folder":"/users/E58Cp71CSVVKqqxqatlb55mMTKm2/5721853146431488","is_stereo":false,"thumbnail_image_url":"/users/E58Cp71CSVVKqqxqatlb55mMTKm2/5721853146431488/thumb_unnamed-1jpg-1591025164553.jpg","photo_type":"360_pano","created_date":"2020-06-01T15:26:04.554Z","updated_date":"2020-06-01T15:26:04.554Z","sort_order":1,"status":"active","id":"5111850538631168","has_anaglyph":false,"index":0},"6510823191085056":{"resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FE58Cp71CSVVKqqxqatlb55mMTKm2%2F5721853146431488%2F20190430_103010jpg-1591025337932.jpg&uploadType=resumable&upload_id=AAANsUmngmBg2_9tSgBPljB-q9EzVGjxZBeOm6TWstZRCM8n_If4ALxjM9TgfBOH3JDaWntEhzOMAJGkVo40mFPQT-w","image_url":"/users/E58Cp71CSVVKqqxqatlb55mMTKm2/5721853146431488/20190430_103010jpg-1591025337932.jpg","rotation":0,"thumbnail_gcs_filename":"/users/E58Cp71CSVVKqqxqatlb55mMTKm2/5721853146431488/thumb_20190430_103010jpg-1591025337932.jpg","version":"v3","gcs_filename":"/users/E58Cp71CSVVKqqxqatlb55mMTKm2/5721853146431488/20190430_103010jpg-1591025337932.jpg","folder":"/users/E58Cp71CSVVKqqxqatlb55mMTKm2/5721853146431488","filename":"20190430_103010jpg-1591025337932.jpg","is_stereo":false,"thumbnail_image_url":"/users/E58Cp71CSVVKqqxqatlb55mMTKm2/5721853146431488/thumb_20190430_103010jpg-1591025337932.jpg","photo_type":"360_mono","updated_date":"2020-06-01T15:28:57.932Z","created_date":"2020-06-01T15:28:57.932Z","sort_order":2,"status":"active","id":"6510823191085056","has_anaglyph":false,"title":"Photo 2"}}; 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 = "5721853146431488"; window.tourUid = "E58Cp71CSVVKqqxqatlb55mMTKm2"; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "wight-prep-virtual-tour"; window.template = ''; window.template_category = ''; window.tourShortCode = "JuAMZn8m5"; 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['5111850538631168'] = 0; window.current_image_index = 0; window.current_image_id = 5111850538631168 window.photo_indexes['6510823191085056'] = 1; 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-/AOh14GiMO_oXPlh_P9Yrmu0HtMMDutaKMgXBB4hVhOoJmWw'; window.user_profile_name = 'Michelle Krider'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://storage.googleapis.com/orbix360-prod-images/users/E58Cp71CSVVKqqxqatlb55mMTKm2/5721853146431488/thumb_unnamed-1jpg-1591025164553.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":[{"plugins":[],"infoHotspots":[],"hotspots":[],"id":5111850538631168},{"id":6510823191085056,"hotspots":[],"infoHotspots":[]}],"versionNumber":3,"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;