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/s7yDWiXGDWaj3FoPvxIrJasRpTg1/6014445532741632/360blackjpg-1629332022355.jpg","rotation":0,"thumbnail_gcs_filename":"/users/s7yDWiXGDWaj3FoPvxIrJasRpTg1/6014445532741632/thumb_360blackjpg-1629332022355.jpg","version":"v3","gcs_filename":"/users/s7yDWiXGDWaj3FoPvxIrJasRpTg1/6014445532741632/360blackjpg-1629332022355.jpg","filename":"360blackjpg-1629332022355.jpg","folder":"/users/s7yDWiXGDWaj3FoPvxIrJasRpTg1/6014445532741632","is_stereo":false,"thumbnail_image_url":"/users/s7yDWiXGDWaj3FoPvxIrJasRpTg1/6014445532741632/thumb_360blackjpg-1629332022355.jpg","photo_type":"360_mono","created_date":"2021-08-19T00:13:42.355Z","updated_date":"2021-08-19T00:13:42.355Z","sort_order":1,"status":"active","id":"5453097400795136","has_anaglyph":false,"index":0,"title":"Photo 1"}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5453097400795136":{"image_url":"/users/s7yDWiXGDWaj3FoPvxIrJasRpTg1/6014445532741632/360blackjpg-1629332022355.jpg","rotation":0,"thumbnail_gcs_filename":"/users/s7yDWiXGDWaj3FoPvxIrJasRpTg1/6014445532741632/thumb_360blackjpg-1629332022355.jpg","version":"v3","gcs_filename":"/users/s7yDWiXGDWaj3FoPvxIrJasRpTg1/6014445532741632/360blackjpg-1629332022355.jpg","filename":"360blackjpg-1629332022355.jpg","folder":"/users/s7yDWiXGDWaj3FoPvxIrJasRpTg1/6014445532741632","is_stereo":false,"thumbnail_image_url":"/users/s7yDWiXGDWaj3FoPvxIrJasRpTg1/6014445532741632/thumb_360blackjpg-1629332022355.jpg","photo_type":"360_mono","created_date":"2021-08-19T00:13:42.355Z","updated_date":"2021-08-19T00:13:42.355Z","sort_order":1,"status":"active","id":"5453097400795136","has_anaglyph":false,"index":0,"title":"Photo 1"}}; if (window.is_static) { window.photosRoot = 'https://storage.googleapis.com/orbix360-qa-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-qa-images'; window.pluginsRoot = 'https://storage.googleapis.com/orbix360-qa-plugins/'; } window.minterUrl = 'https://minter-qa.orbix360.com'; window.tourId = "6014445532741632"; window.tourUid = "s7yDWiXGDWaj3FoPvxIrJasRpTg1"; window.customUrl = "brunomatheusc.com"; window.tourSlug = "test"; window.template = ''; window.template_category = ''; window.tourShortCode = "HSZ1Xkw1v"; 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['5453097400795136'] = 0; window.current_image_index = 0; window.current_image_id = 5453097400795136 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 = 'Bruno Teste'; window.shortURLRoot = 'https://qa.orbix360.com'; window.image_url = 'https://storage.googleapis.com/orbix360-qa-images/users/s7yDWiXGDWaj3FoPvxIrJasRpTg1/6014445532741632/thumb_360blackjpg-1629332022355.jpg.play.jpg'; window.image_url_root = 'https://storage.googleapis.com/orbix360-qa-images'; window.cloudFunctionsRoot = 'https://us-central1-orbix360-qa.cloudfunctions.net'; window.timeSinceRestartRotation = 0; window.initialState = {"orbs":[{"flatImages":[{"is_stereo":false,"src":"https://storage.googleapis.com/orbix360-qa-images/users/s7yDWiXGDWaj3FoPvxIrJasRpTg1/6014445532741632/1200x630wa.png","width":1200,"scale_multiplier":1,"position":{"x":0,"y":0,"z":-1},"id":"flat_image_5453097400795136_1629332026594","height":630},{"src":"https://storage.googleapis.com/orbix360-qa-images/users/s7yDWiXGDWaj3FoPvxIrJasRpTg1/6014445532741632/39319928-developer-wallpapers.png","is_stereo":false,"width":1680,"scale_multiplier":1,"position":{"x":null,"y":0,"z":null},"id":"flat_image_5453097400795136_1629332026594","height":1050}],"id":5453097400795136,"hotspots":[]}],"autorotate":{"enabled":false},"versionNumber":2}; window.brandingAllowed = true; window.upgradeCheckoutSessionStatus = ''; window.isUpgradeSubscriptionValid = false; window.isPro = (window.brandingAllowed || window.isUpgradeSubscriptionValid); window.nadirLogoURL = (window.brandingAllowed || isUpgradeSubscriptionValid) ? 'https://storage.googleapis.com/orbix360-qa-images/users/s7yDWiXGDWaj3FoPvxIrJasRpTg1/branding/nadir.png' : '/images/orbix_nadir.png'; window.editMode = false;