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://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FQnCg6nKgmHfcKw69duyOmzXSXyH3%2F4932809368010752%2F31401jpg-1706609371792.jpg&uploadType=resumable&upload_id=ABPtcPoyrQXENj8l89nZ-2lm3BnvWEbt-9KU9ys_gag26oyIr3CKnfWvIfC7fb-CP_iML7HkaPtMv2PmCQ3Cn-cvDAJ2zoH2dslbq8PFUADg7tbVzg","image_url":"/users/QnCg6nKgmHfcKw69duyOmzXSXyH3/4932809368010752/31401jpg-1706609371792.jpg","rotation":0,"thumbnail_gcs_filename":"/users/QnCg6nKgmHfcKw69duyOmzXSXyH3/4932809368010752/thumb_31401jpg-1706609371792.jpg","version":"v3","gcs_filename":"/users/QnCg6nKgmHfcKw69duyOmzXSXyH3/4932809368010752/31401jpg-1706609371792.jpg","filename":"31401jpg-1706609371792.jpg","folder":"/users/QnCg6nKgmHfcKw69duyOmzXSXyH3/4932809368010752","thumbnail_image_url":"/users/QnCg6nKgmHfcKw69duyOmzXSXyH3/4932809368010752/thumb_31401jpg-1706609371792.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-01-30T10:09:31.793Z","updated_date":"2024-01-30T10:09:31.793Z","sort_order":1,"status":"active","id":"4960339420512256","has_anaglyph":false,"index":0,"title":"Photo 1"},{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FQnCg6nKgmHfcKw69duyOmzXSXyH3%2F4932809368010752%2F31402jpg-1706609371772.jpg&uploadType=resumable&upload_id=ABPtcPoNWvJB6U33kc1BAqneIbJBAgXMgQ2f0krYHGxRFzGBnAKc9wGIKXZfIfEX3piUYpBF5xnNoQ5LpV2a4htP3B0EpqKR_Z1srcRoFOtHuwM0","image_url":"/users/QnCg6nKgmHfcKw69duyOmzXSXyH3/4932809368010752/31402jpg-1706609371772.jpg","rotation":0,"thumbnail_gcs_filename":"/users/QnCg6nKgmHfcKw69duyOmzXSXyH3/4932809368010752/thumb_31402jpg-1706609371772.jpg","version":"v3","gcs_filename":"/users/QnCg6nKgmHfcKw69duyOmzXSXyH3/4932809368010752/31402jpg-1706609371772.jpg","filename":"31402jpg-1706609371772.jpg","folder":"/users/QnCg6nKgmHfcKw69duyOmzXSXyH3/4932809368010752","thumbnail_image_url":"/users/QnCg6nKgmHfcKw69duyOmzXSXyH3/4932809368010752/thumb_31402jpg-1706609371772.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-01-30T10:09:31.772Z","updated_date":"2024-01-30T10:09:31.772Z","sort_order":2,"status":"active","id":"6326242099855360","has_anaglyph":false,"index":1,"title":"Photo 2"}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"4960339420512256":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FQnCg6nKgmHfcKw69duyOmzXSXyH3%2F4932809368010752%2F31401jpg-1706609371792.jpg&uploadType=resumable&upload_id=ABPtcPoyrQXENj8l89nZ-2lm3BnvWEbt-9KU9ys_gag26oyIr3CKnfWvIfC7fb-CP_iML7HkaPtMv2PmCQ3Cn-cvDAJ2zoH2dslbq8PFUADg7tbVzg","image_url":"/users/QnCg6nKgmHfcKw69duyOmzXSXyH3/4932809368010752/31401jpg-1706609371792.jpg","rotation":0,"thumbnail_gcs_filename":"/users/QnCg6nKgmHfcKw69duyOmzXSXyH3/4932809368010752/thumb_31401jpg-1706609371792.jpg","version":"v3","gcs_filename":"/users/QnCg6nKgmHfcKw69duyOmzXSXyH3/4932809368010752/31401jpg-1706609371792.jpg","filename":"31401jpg-1706609371792.jpg","folder":"/users/QnCg6nKgmHfcKw69duyOmzXSXyH3/4932809368010752","thumbnail_image_url":"/users/QnCg6nKgmHfcKw69duyOmzXSXyH3/4932809368010752/thumb_31401jpg-1706609371792.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-01-30T10:09:31.793Z","updated_date":"2024-01-30T10:09:31.793Z","sort_order":1,"status":"active","id":"4960339420512256","has_anaglyph":false,"index":0,"title":"Photo 1"},"6326242099855360":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FQnCg6nKgmHfcKw69duyOmzXSXyH3%2F4932809368010752%2F31402jpg-1706609371772.jpg&uploadType=resumable&upload_id=ABPtcPoNWvJB6U33kc1BAqneIbJBAgXMgQ2f0krYHGxRFzGBnAKc9wGIKXZfIfEX3piUYpBF5xnNoQ5LpV2a4htP3B0EpqKR_Z1srcRoFOtHuwM0","image_url":"/users/QnCg6nKgmHfcKw69duyOmzXSXyH3/4932809368010752/31402jpg-1706609371772.jpg","rotation":0,"thumbnail_gcs_filename":"/users/QnCg6nKgmHfcKw69duyOmzXSXyH3/4932809368010752/thumb_31402jpg-1706609371772.jpg","version":"v3","gcs_filename":"/users/QnCg6nKgmHfcKw69duyOmzXSXyH3/4932809368010752/31402jpg-1706609371772.jpg","filename":"31402jpg-1706609371772.jpg","folder":"/users/QnCg6nKgmHfcKw69duyOmzXSXyH3/4932809368010752","thumbnail_image_url":"/users/QnCg6nKgmHfcKw69duyOmzXSXyH3/4932809368010752/thumb_31402jpg-1706609371772.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-01-30T10:09:31.772Z","updated_date":"2024-01-30T10:09:31.772Z","sort_order":2,"status":"active","id":"6326242099855360","has_anaglyph":false,"index":1,"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 = "4932809368010752"; window.tourUid = "QnCg6nKgmHfcKw69duyOmzXSXyH3"; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "314"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "Ob2mGysf9"; 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['4960339420512256'] = 0; window.current_image_index = 0; window.current_image_id = 4960339420512256 window.photo_indexes['6326242099855360'] = 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/ACg8ocJz2a2yAMZghvrkJl_tXMe5jBruDDIQKsESfLVOgqUy=s96-c'; window.user_profile_name = 'OFFICECENTER.CZ s.r.o.'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://storage.googleapis.com/orbix360-prod-images/users/QnCg6nKgmHfcKw69duyOmzXSXyH3/4932809368010752/thumb_31401jpg-1706609371792.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":[{"infoHotspots":[],"id":4960339420512256,"hotspots":[{"from":4960339420512256,"id":"hotspot_4960339420512256_6326242099855360","to":6326242099855360,"position":{"x":0.8253007746824806,"y":-0.319808280112157,"z":-0.46540444269495473},"toTitle":"Photo 2"}]},{"infoHotspots":[],"id":6326242099855360,"hotspots":[]}],"autorotate":{"enabled":false},"versionNumber":3}; window.brandingAllowed = false; window.upgradeCheckoutSessionStatus = 'complete'; 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;