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/h8h3eOiMFTVUooRZ86teiHO914m1/5177707520327680/preview_80eae7d5-dc40-4d99-9587-3361c4d6f5b6jpeg-1560525654747.jpeg","resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2Fh8h3eOiMFTVUooRZ86teiHO914m1%2F5177707520327680%2F80eae7d5-dc40-4d99-9587-3361c4d6f5b6jpeg-1560525654747.jpeg&uploadType=resumable&upload_id=AEnB2Urbv11FbAJowe0LaPcuBCCX3bfMuvUazAOUrAMY9rEvFTUCSnKDczSetc2zY2B3HXgPzR0eGoC8plsmFrkDihFoVEkfVQ","image_url":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5177707520327680/80eae7d5-dc40-4d99-9587-3361c4d6f5b6jpeg-1560525654747.jpeg","rotation":181.0546632613406,"thumbnail_gcs_filename":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5177707520327680/thumb_80eae7d5-dc40-4d99-9587-3361c4d6f5b6jpeg-1560525654747.jpeg","version":"v4","gcs_filename":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5177707520327680/80eae7d5-dc40-4d99-9587-3361c4d6f5b6jpeg-1560525654747.jpeg","filename":"80eae7d5-dc40-4d99-9587-3361c4d6f5b6jpeg-1560525654747.jpeg","folder":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5177707520327680","thumbnail_image_url":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5177707520327680/thumb_80eae7d5-dc40-4d99-9587-3361c4d6f5b6jpeg-1560525654747.jpeg","is_stereo":false,"preview_image_url":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5177707520327680/preview_80eae7d5-dc40-4d99-9587-3361c4d6f5b6jpeg-1560525654747.jpeg","photo_type":"360_mono","updated_date":"2019-06-14T15:20:54.747Z","created_date":"2019-06-14T15:20:54.747Z","sort_order":1,"status":"active","id":"5118227457769472","has_anaglyph":false,"index":0,"title":"Photo 1"}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5118227457769472":{"preview_gcs_filename":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5177707520327680/preview_80eae7d5-dc40-4d99-9587-3361c4d6f5b6jpeg-1560525654747.jpeg","resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2Fh8h3eOiMFTVUooRZ86teiHO914m1%2F5177707520327680%2F80eae7d5-dc40-4d99-9587-3361c4d6f5b6jpeg-1560525654747.jpeg&uploadType=resumable&upload_id=AEnB2Urbv11FbAJowe0LaPcuBCCX3bfMuvUazAOUrAMY9rEvFTUCSnKDczSetc2zY2B3HXgPzR0eGoC8plsmFrkDihFoVEkfVQ","image_url":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5177707520327680/80eae7d5-dc40-4d99-9587-3361c4d6f5b6jpeg-1560525654747.jpeg","rotation":181.0546632613406,"thumbnail_gcs_filename":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5177707520327680/thumb_80eae7d5-dc40-4d99-9587-3361c4d6f5b6jpeg-1560525654747.jpeg","version":"v4","gcs_filename":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5177707520327680/80eae7d5-dc40-4d99-9587-3361c4d6f5b6jpeg-1560525654747.jpeg","filename":"80eae7d5-dc40-4d99-9587-3361c4d6f5b6jpeg-1560525654747.jpeg","folder":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5177707520327680","thumbnail_image_url":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5177707520327680/thumb_80eae7d5-dc40-4d99-9587-3361c4d6f5b6jpeg-1560525654747.jpeg","is_stereo":false,"preview_image_url":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5177707520327680/preview_80eae7d5-dc40-4d99-9587-3361c4d6f5b6jpeg-1560525654747.jpeg","photo_type":"360_mono","updated_date":"2019-06-14T15:20:54.747Z","created_date":"2019-06-14T15:20:54.747Z","sort_order":1,"status":"active","id":"5118227457769472","has_anaglyph":false,"index":0,"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 = "5177707520327680"; window.tourUid = "h8h3eOiMFTVUooRZ86teiHO914m1"; window.customUrl = "https://linktr.ee/pareidoliaist"; window.tourSlug = "small-plane-w-cardboardcamera"; window.template = ''; window.template_category = ''; window.tourShortCode = "GjVr8fLyh"; 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 = true; window.photo_indexes['5118227457769472'] = 0; window.current_image_index = 0; window.current_image_id = 5118227457769472 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/-PSggI1QTKnM/AAAAAAAAAAI/AAAAAAAAAnE/ACRKs6XJbMU/photo.jpg'; window.user_profile_name = 'Perry Dolia'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://storage.googleapis.com/orbix360-prod-images/users/h8h3eOiMFTVUooRZ86teiHO914m1/5177707520327680/thumb_80eae7d5-dc40-4d99-9587-3361c4d6f5b6jpeg-1560525654747.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 = {"orbs":[{"infoHotspots":[{"description":"Used to take this pano","from":5118227457769472,"id":"hotspot_5118227457769472_info_1572131118562","position":{"x":0.595280207114697,"y":0.08518127814659529,"z":0.7989903784594629},"to":"info","title":"google cardboard camera"}],"id":5118227457769472,"hotspots":[]}],"autorotate":{"enabled":false},"version":"v2","versionNumber":3}; window.brandingAllowed = true; window.upgradeCheckoutSessionStatus = ''; window.isPro = (window.brandingAllowed || window.upgradeCheckoutSessionStatus == 'complete'); window.nadirLogoURL = (window.brandingAllowed || window.upgradeCheckoutSessionStatus == 'complete') ? 'https://storage.googleapis.com/orbix360-prod-images/users/h8h3eOiMFTVUooRZ86teiHO914m1/branding/nadir.png' : '/images/orbix_nadir.png'; window.editMode = false;