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 = [{"image_url":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/pic_2017_07_24_16_57_27_20170925170602jpg-1506384558203.jpg","rotation":0,"thumbnail_gcs_filename":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/thumb_pic_2017_07_24_16_57_27_20170925170602jpg-1506384558203.jpg","gcs_filename":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/pic_2017_07_24_16_57_27_20170925170602jpg-1506384558203.jpg","filename":"pic_2017_07_24_16_57_27_20170925170602jpg-1506384558203.jpg","folder":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384","thumbnail_image_url":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/thumb_pic_2017_07_24_16_57_27_20170925170602jpg-1506384558203.jpg","is_stereo":false,"updated_date":"2017-09-26T00:09:18.885Z","created_date":"2017-09-26T00:09:18.885Z","sort_order":1,"status":"active","id":"5717271485874176","has_anaglyph":false,"title":"Photo 1"},{"image_url":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/pic_2017_07_24_17_21_25_20170925170605jpg-1506384560105.jpg","rotation":0,"thumbnail_gcs_filename":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/thumb_pic_2017_07_24_17_21_25_20170925170605jpg-1506384560105.jpg","gcs_filename":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/pic_2017_07_24_17_21_25_20170925170605jpg-1506384560105.jpg","folder":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384","filename":"pic_2017_07_24_17_21_25_20170925170605jpg-1506384560105.jpg","is_stereo":false,"thumbnail_image_url":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/thumb_pic_2017_07_24_17_21_25_20170925170605jpg-1506384560105.jpg","updated_date":"2017-09-26T00:09:21.450Z","created_date":"2017-09-26T00:09:21.450Z","sort_order":2,"status":"active","id":"5750085036015616","has_anaglyph":false,"title":"Photo 2"},{"image_url":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/pic_2017_07_24_17_22_56_20170925170607jpg-1506384560113.jpg","rotation":0,"thumbnail_gcs_filename":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/thumb_pic_2017_07_24_17_22_56_20170925170607jpg-1506384560113.jpg","gcs_filename":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/pic_2017_07_24_17_22_56_20170925170607jpg-1506384560113.jpg","folder":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384","filename":"pic_2017_07_24_17_22_56_20170925170607jpg-1506384560113.jpg","is_stereo":false,"thumbnail_image_url":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/thumb_pic_2017_07_24_17_22_56_20170925170607jpg-1506384560113.jpg","created_date":"2017-09-26T00:09:21.700Z","updated_date":"2017-09-26T00:09:21.700Z","sort_order":3,"status":"active","id":"5676830073815040","has_anaglyph":false,"title":"Photo 3"}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5717271485874176":{"image_url":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/pic_2017_07_24_16_57_27_20170925170602jpg-1506384558203.jpg","rotation":0,"thumbnail_gcs_filename":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/thumb_pic_2017_07_24_16_57_27_20170925170602jpg-1506384558203.jpg","gcs_filename":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/pic_2017_07_24_16_57_27_20170925170602jpg-1506384558203.jpg","filename":"pic_2017_07_24_16_57_27_20170925170602jpg-1506384558203.jpg","folder":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384","thumbnail_image_url":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/thumb_pic_2017_07_24_16_57_27_20170925170602jpg-1506384558203.jpg","is_stereo":false,"updated_date":"2017-09-26T00:09:18.885Z","created_date":"2017-09-26T00:09:18.885Z","sort_order":1,"status":"active","id":"5717271485874176","has_anaglyph":false,"title":"Photo 1"},"5750085036015616":{"image_url":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/pic_2017_07_24_17_21_25_20170925170605jpg-1506384560105.jpg","rotation":0,"thumbnail_gcs_filename":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/thumb_pic_2017_07_24_17_21_25_20170925170605jpg-1506384560105.jpg","gcs_filename":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/pic_2017_07_24_17_21_25_20170925170605jpg-1506384560105.jpg","folder":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384","filename":"pic_2017_07_24_17_21_25_20170925170605jpg-1506384560105.jpg","is_stereo":false,"thumbnail_image_url":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/thumb_pic_2017_07_24_17_21_25_20170925170605jpg-1506384560105.jpg","updated_date":"2017-09-26T00:09:21.450Z","created_date":"2017-09-26T00:09:21.450Z","sort_order":2,"status":"active","id":"5750085036015616","has_anaglyph":false,"title":"Photo 2"},"5676830073815040":{"image_url":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/pic_2017_07_24_17_22_56_20170925170607jpg-1506384560113.jpg","rotation":0,"thumbnail_gcs_filename":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/thumb_pic_2017_07_24_17_22_56_20170925170607jpg-1506384560113.jpg","gcs_filename":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/pic_2017_07_24_17_22_56_20170925170607jpg-1506384560113.jpg","folder":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384","filename":"pic_2017_07_24_17_22_56_20170925170607jpg-1506384560113.jpg","is_stereo":false,"thumbnail_image_url":"/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/thumb_pic_2017_07_24_17_22_56_20170925170607jpg-1506384560113.jpg","created_date":"2017-09-26T00:09:21.700Z","updated_date":"2017-09-26T00:09:21.700Z","sort_order":3,"status":"active","id":"5676830073815040","has_anaglyph":false,"title":"Photo 3"}}; 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 = "5685265389584384"; window.tourUid = "mfMCt9Y2IlYukhdnT7nB60SopkZ2"; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "insta360-pro-del-mar-beach"; window.template = ''; window.template_category = ''; window.tourShortCode = "GDbgWaqDo"; 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['5717271485874176'] = 0; window.current_image_index = 0; window.current_image_id = 5717271485874176 window.photo_indexes['5750085036015616'] = 1; window.photo_indexes['5676830073815040'] = 2; 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-4190320992'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://storage.googleapis.com/orbix360-prod-images/users/mfMCt9Y2IlYukhdnT7nB60SopkZ2/5685265389584384/pic_2017_07_24_16_57_27_20170925170602jpg-1506384558203.jpg.tiles/thumb_f.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 = {"version":"v2","versionNumber":2,"autorotate":{"enabled":false},"orbs":[{"id":5717271485874176,"hotspots":[],"infoHotspots":[]},{"id":5750085036015616,"hotspots":[],"infoHotspots":[]},{"id":5676830073815040,"hotspots":[],"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;