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/hS6TTlaEZkYNBio957Yu6bb5Ncr1/5070286965702656/preview_360png-1550549856065.png","resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FhS6TTlaEZkYNBio957Yu6bb5Ncr1%2F5070286965702656%2F360png-1550549856065.png&uploadType=resumable&upload_id=AEnB2UpEoORfV-1NLu-K9XMsRZLGrzMumhzAQeDAT1qF068BfJnfizLzBE2PjmJzW5Cib6D81UPQV9qWSbAHCuLcIRUr_-NUDQ","image_url":"/users/hS6TTlaEZkYNBio957Yu6bb5Ncr1/5070286965702656/360png-1550549856065.png","rotation":2.1772396214970655,"thumbnail_gcs_filename":"/users/hS6TTlaEZkYNBio957Yu6bb5Ncr1/5070286965702656/thumb_360png-1550549856065.png","version":"v4","gcs_filename":"/users/hS6TTlaEZkYNBio957Yu6bb5Ncr1/5070286965702656/360png-1550549856065.png","folder":"/users/hS6TTlaEZkYNBio957Yu6bb5Ncr1/5070286965702656","filename":"360png-1550549856065.png","is_stereo":false,"thumbnail_image_url":"/users/hS6TTlaEZkYNBio957Yu6bb5Ncr1/5070286965702656/thumb_360png-1550549856065.png","preview_image_url":"/users/hS6TTlaEZkYNBio957Yu6bb5Ncr1/5070286965702656/preview_360png-1550549856065.png","photo_type":"360_mono","created_date":"2019-02-19T04:17:36.066Z","updated_date":"2019-02-19T04:17:36.066Z","sort_order":1,"status":"active","id":"5101973019820032","has_anaglyph":false,"index":0,"title":"Photo 1"}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5101973019820032":{"preview_gcs_filename":"/users/hS6TTlaEZkYNBio957Yu6bb5Ncr1/5070286965702656/preview_360png-1550549856065.png","resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FhS6TTlaEZkYNBio957Yu6bb5Ncr1%2F5070286965702656%2F360png-1550549856065.png&uploadType=resumable&upload_id=AEnB2UpEoORfV-1NLu-K9XMsRZLGrzMumhzAQeDAT1qF068BfJnfizLzBE2PjmJzW5Cib6D81UPQV9qWSbAHCuLcIRUr_-NUDQ","image_url":"/users/hS6TTlaEZkYNBio957Yu6bb5Ncr1/5070286965702656/360png-1550549856065.png","rotation":2.1772396214970655,"thumbnail_gcs_filename":"/users/hS6TTlaEZkYNBio957Yu6bb5Ncr1/5070286965702656/thumb_360png-1550549856065.png","version":"v4","gcs_filename":"/users/hS6TTlaEZkYNBio957Yu6bb5Ncr1/5070286965702656/360png-1550549856065.png","folder":"/users/hS6TTlaEZkYNBio957Yu6bb5Ncr1/5070286965702656","filename":"360png-1550549856065.png","is_stereo":false,"thumbnail_image_url":"/users/hS6TTlaEZkYNBio957Yu6bb5Ncr1/5070286965702656/thumb_360png-1550549856065.png","preview_image_url":"/users/hS6TTlaEZkYNBio957Yu6bb5Ncr1/5070286965702656/preview_360png-1550549856065.png","photo_type":"360_mono","created_date":"2019-02-19T04:17:36.066Z","updated_date":"2019-02-19T04:17:36.066Z","sort_order":1,"status":"active","id":"5101973019820032","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 = "5070286965702656"; window.tourUid = "hS6TTlaEZkYNBio957Yu6bb5Ncr1"; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "mini-apartment-nguyen-van-dau"; window.template = ''; window.template_category = ''; window.tourShortCode = "Gd3QdqjbU"; 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['5101973019820032'] = 0; window.current_image_index = 0; window.current_image_id = 5101973019820032 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://graph.facebook.com/1765366026909004/picture'; window.user_profile_name = 'Luân Tran'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://storage.googleapis.com/orbix360-prod-images/users/hS6TTlaEZkYNBio957Yu6bb5Ncr1/5070286965702656/thumb_360png-1550549856065.png.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":"","from":5101973019820032,"id":"hotspot_5101973019820032_info_1550549976092","position":{"x":-0.8047385668677691,"y":-0.1306506599975815,"z":0.5790736084797903},"to":"info","title":"ENTRY"},{"description":"","from":5101973019820032,"to":"info","id":"hotspot_5101973019820032_info_1550549986146","position":{"x":-0.9309080948818536,"y":-0.3417977382870344,"z":0.12878053030371442},"title":"KITCHEN"},{"description":"","from":5101973019820032,"to":"info","id":"hotspot_5101973019820032_info_1550549994986","position":{"x":-0.2206762741486291,"y":-0.6626775567928804,"z":-0.7156538533054215},"title":"LIVING"},{"description":"","from":5101973019820032,"to":"info","id":"hotspot_5101973019820032_info_1550550006698","position":{"x":0.5198717670256597,"y":-0.3399193063396574,"z":-0.7837016084117632},"title":"BED"},{"description":"","from":5101973019820032,"to":"info","position":{"x":0.8109007718843662,"y":-0.07101661792574755,"z":-0.5808584837425789},"id":"hotspot_5101973019820032_info_1550550012454","title":"CLOSET"},{"description":"","from":5101973019820032,"id":"hotspot_5101973019820032_info_1550550022427","position":{"x":-0.48210570867777264,"y":-0.594393870760512,"z":-0.6436381064407531},"to":"info","title":"BATHROOM"}],"id":5101973019820032,"hotspots":[]}],"autorotate":{"enabled":false},"version":"v2","versionNumber":2}; 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;