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/ZkhzjZV7a5TrTJp1qt6effr5ad43/5102773930557440/preview_het_0091jpg-1555152333755.JPG","resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FZkhzjZV7a5TrTJp1qt6effr5ad43%2F5102773930557440%2Fhet_0091jpg-1555152333755.JPG&uploadType=resumable&upload_id=AEnB2Upxe_5A3V9x6cYCsnF6yFWMhEPk82klcOvvCXqN29oHC1DUMOt6EYhdSLic5O2nwWFAZDoWYp1b2euEisHeWYcEc_cUwA","image_url":"/users/ZkhzjZV7a5TrTJp1qt6effr5ad43/5102773930557440/het_0091jpg-1555152333755.JPG","rotation":0,"thumbnail_gcs_filename":"/users/ZkhzjZV7a5TrTJp1qt6effr5ad43/5102773930557440/thumb_het_0091jpg-1555152333755.JPG","title":"MEGAMEGAMI 2019-03-14 1","version":"v3","gcs_filename":"/users/ZkhzjZV7a5TrTJp1qt6effr5ad43/5102773930557440/het_0091jpg-1555152333755.JPG","filename":"het_0091jpg-1555152333755.JPG","folder":"/users/ZkhzjZV7a5TrTJp1qt6effr5ad43/5102773930557440","thumbnail_image_url":"/users/ZkhzjZV7a5TrTJp1qt6effr5ad43/5102773930557440/thumb_het_0091jpg-1555152333755.JPG","is_stereo":true,"preview_image_url":"/users/ZkhzjZV7a5TrTJp1qt6effr5ad43/5102773930557440/preview_het_0091jpg-1555152333755.JPG","photo_type":"180_stereo","updated_date":"2019-04-13T10:45:33.756Z","created_date":"2019-04-13T10:45:33.756Z","sort_order":1,"status":"active","id":"5205971022381056","has_anaglyph":true}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5205971022381056":{"preview_gcs_filename":"/users/ZkhzjZV7a5TrTJp1qt6effr5ad43/5102773930557440/preview_het_0091jpg-1555152333755.JPG","resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FZkhzjZV7a5TrTJp1qt6effr5ad43%2F5102773930557440%2Fhet_0091jpg-1555152333755.JPG&uploadType=resumable&upload_id=AEnB2Upxe_5A3V9x6cYCsnF6yFWMhEPk82klcOvvCXqN29oHC1DUMOt6EYhdSLic5O2nwWFAZDoWYp1b2euEisHeWYcEc_cUwA","image_url":"/users/ZkhzjZV7a5TrTJp1qt6effr5ad43/5102773930557440/het_0091jpg-1555152333755.JPG","rotation":0,"thumbnail_gcs_filename":"/users/ZkhzjZV7a5TrTJp1qt6effr5ad43/5102773930557440/thumb_het_0091jpg-1555152333755.JPG","title":"MEGAMEGAMI 2019-03-14 1","version":"v3","gcs_filename":"/users/ZkhzjZV7a5TrTJp1qt6effr5ad43/5102773930557440/het_0091jpg-1555152333755.JPG","filename":"het_0091jpg-1555152333755.JPG","folder":"/users/ZkhzjZV7a5TrTJp1qt6effr5ad43/5102773930557440","thumbnail_image_url":"/users/ZkhzjZV7a5TrTJp1qt6effr5ad43/5102773930557440/thumb_het_0091jpg-1555152333755.JPG","is_stereo":true,"preview_image_url":"/users/ZkhzjZV7a5TrTJp1qt6effr5ad43/5102773930557440/preview_het_0091jpg-1555152333755.JPG","photo_type":"180_stereo","updated_date":"2019-04-13T10:45:33.756Z","created_date":"2019-04-13T10:45:33.756Z","sort_order":1,"status":"active","id":"5205971022381056","has_anaglyph":true}}; 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 = "5102773930557440"; window.tourUid = "ZkhzjZV7a5TrTJp1qt6effr5ad43"; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "megamegami-2019-03-14-01"; window.template = ''; window.template_category = ''; window.tourShortCode = "G4qUNsCiE"; 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['5205971022381056'] = 0; window.current_image_index = 0; window.current_image_id = 5205971022381056 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-4237861481'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://storage.googleapis.com/orbix360-prod-images/users/ZkhzjZV7a5TrTJp1qt6effr5ad43/5102773930557440/thumb_het_0091jpg-1555152333755.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":5205971022381056,"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;