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%2FyA3SeQ00dOSpYhXjmw4wbQsclLd2%2F5399023238250496%2F3602jpg-1605416630543.jpg&uploadType=resumable&upload_id=ABg5-UxuW-OQif22fuulwsD4CevBgTuI7iPeqZXLVfGS7TtczxsmGEUFNDNDht3OOe7t0qStjLTAyvBA449u67kKOKqFofuiyQ","image_url":"/users/yA3SeQ00dOSpYhXjmw4wbQsclLd2/5399023238250496/3602jpg-1605416630543.jpg","rotation":0,"thumbnail_gcs_filename":"/users/yA3SeQ00dOSpYhXjmw4wbQsclLd2/5399023238250496/thumb_3602jpg-1605416630543.jpg","version":"v3","gcs_filename":"/users/yA3SeQ00dOSpYhXjmw4wbQsclLd2/5399023238250496/3602jpg-1605416630543.jpg","filename":"3602jpg-1605416630543.jpg","folder":"/users/yA3SeQ00dOSpYhXjmw4wbQsclLd2/5399023238250496","thumbnail_image_url":"/users/yA3SeQ00dOSpYhXjmw4wbQsclLd2/5399023238250496/thumb_3602jpg-1605416630543.jpg","is_stereo":false,"photo_type":"360_mono","updated_date":"2020-11-15T05:03:50.543Z","created_date":"2020-11-15T05:03:50.543Z","sort_order":2,"status":"active","id":"5082680911724544","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%2FyA3SeQ00dOSpYhXjmw4wbQsclLd2%2F5399023238250496%2Fhanaa-360jpg-1608382916650.jpg&uploadType=resumable&upload_id=ABg5-UyA0tT_SwcvuuS39ZjsQhejnsVYp85twpZXdqeWqo93R1ZnTxnIrmNlQoAmqnn35otaZEqPMmfEYSes2-0auOjkCiX46g","image_url":"/users/yA3SeQ00dOSpYhXjmw4wbQsclLd2/5399023238250496/hanaa-360jpg-1608382916650.jpg","rotation":0,"thumbnail_gcs_filename":"/users/yA3SeQ00dOSpYhXjmw4wbQsclLd2/5399023238250496/thumb_hanaa-360jpg-1608382916650.jpg","version":"v3","gcs_filename":"/users/yA3SeQ00dOSpYhXjmw4wbQsclLd2/5399023238250496/hanaa-360jpg-1608382916650.jpg","filename":"hanaa-360jpg-1608382916650.jpg","folder":"/users/yA3SeQ00dOSpYhXjmw4wbQsclLd2/5399023238250496","thumbnail_image_url":"/users/yA3SeQ00dOSpYhXjmw4wbQsclLd2/5399023238250496/thumb_hanaa-360jpg-1608382916650.jpg","is_stereo":false,"photo_type":"360_pano","created_date":"2020-12-19T13:01:56.651Z","updated_date":"2020-12-19T13:01:56.651Z","sort_order":2,"status":"active","id":"6395253519024128","has_anaglyph":false,"title":"Photo 2"}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5082680911724544":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FyA3SeQ00dOSpYhXjmw4wbQsclLd2%2F5399023238250496%2F3602jpg-1605416630543.jpg&uploadType=resumable&upload_id=ABg5-UxuW-OQif22fuulwsD4CevBgTuI7iPeqZXLVfGS7TtczxsmGEUFNDNDht3OOe7t0qStjLTAyvBA449u67kKOKqFofuiyQ","image_url":"/users/yA3SeQ00dOSpYhXjmw4wbQsclLd2/5399023238250496/3602jpg-1605416630543.jpg","rotation":0,"thumbnail_gcs_filename":"/users/yA3SeQ00dOSpYhXjmw4wbQsclLd2/5399023238250496/thumb_3602jpg-1605416630543.jpg","version":"v3","gcs_filename":"/users/yA3SeQ00dOSpYhXjmw4wbQsclLd2/5399023238250496/3602jpg-1605416630543.jpg","filename":"3602jpg-1605416630543.jpg","folder":"/users/yA3SeQ00dOSpYhXjmw4wbQsclLd2/5399023238250496","thumbnail_image_url":"/users/yA3SeQ00dOSpYhXjmw4wbQsclLd2/5399023238250496/thumb_3602jpg-1605416630543.jpg","is_stereo":false,"photo_type":"360_mono","updated_date":"2020-11-15T05:03:50.543Z","created_date":"2020-11-15T05:03:50.543Z","sort_order":2,"status":"active","id":"5082680911724544","has_anaglyph":false,"index":0,"title":"Photo 1"},"6395253519024128":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FyA3SeQ00dOSpYhXjmw4wbQsclLd2%2F5399023238250496%2Fhanaa-360jpg-1608382916650.jpg&uploadType=resumable&upload_id=ABg5-UyA0tT_SwcvuuS39ZjsQhejnsVYp85twpZXdqeWqo93R1ZnTxnIrmNlQoAmqnn35otaZEqPMmfEYSes2-0auOjkCiX46g","image_url":"/users/yA3SeQ00dOSpYhXjmw4wbQsclLd2/5399023238250496/hanaa-360jpg-1608382916650.jpg","rotation":0,"thumbnail_gcs_filename":"/users/yA3SeQ00dOSpYhXjmw4wbQsclLd2/5399023238250496/thumb_hanaa-360jpg-1608382916650.jpg","version":"v3","gcs_filename":"/users/yA3SeQ00dOSpYhXjmw4wbQsclLd2/5399023238250496/hanaa-360jpg-1608382916650.jpg","filename":"hanaa-360jpg-1608382916650.jpg","folder":"/users/yA3SeQ00dOSpYhXjmw4wbQsclLd2/5399023238250496","thumbnail_image_url":"/users/yA3SeQ00dOSpYhXjmw4wbQsclLd2/5399023238250496/thumb_hanaa-360jpg-1608382916650.jpg","is_stereo":false,"photo_type":"360_pano","created_date":"2020-12-19T13:01:56.651Z","updated_date":"2020-12-19T13:01:56.651Z","sort_order":2,"status":"active","id":"6395253519024128","has_anaglyph":false,"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 = "5399023238250496"; window.tourUid = "yA3SeQ00dOSpYhXjmw4wbQsclLd2"; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "360"; window.template = '360_mono'; window.template_category = ''; window.tourShortCode = "RmLEEzt9u"; 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['5082680911724544'] = 0; window.current_image_index = 0; window.current_image_id = 5082680911724544 window.photo_indexes['6395253519024128'] = 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://graph.facebook.com/10159212777847755/picture'; window.user_profile_name = 'Abdallah Irsheid'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://storage.googleapis.com/orbix360-prod-images/users/yA3SeQ00dOSpYhXjmw4wbQsclLd2/5399023238250496/thumb_3602jpg-1605416630543.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":[],"flatImages":[],"id":5082680911724544,"hotspots":[]},{"id":6395253519024128,"hotspots":[],"infoHotspots":[]}],"autorotate":{"enabled":true},"versionNumber":3}; 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;