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%2FzYUkOozPA4TRyrk5GL0dDMxpOnw1%2F6331593295659008%2F7573691529690602564574087175622687723618304njpg-1611040546221.jpg&uploadType=resumable&upload_id=ABg5-Uxf3uYP3t_sj5Hay-Fr2YtxD52Go4J3G_yqkJ_iYbjZl36plSQLzBjk8_kd7VnBIltp37gYbumFi7oDeDx3p-f8kvWvfQ","image_url":"/users/zYUkOozPA4TRyrk5GL0dDMxpOnw1/6331593295659008/7573691529690602564574087175622687723618304njpg-1611040546221.jpg","rotation":0,"thumbnail_gcs_filename":"/users/zYUkOozPA4TRyrk5GL0dDMxpOnw1/6331593295659008/thumb_7573691529690602564574087175622687723618304njpg-1611040546221.jpg","title":"1er 360","version":"v3","gcs_filename":"/users/zYUkOozPA4TRyrk5GL0dDMxpOnw1/6331593295659008/7573691529690602564574087175622687723618304njpg-1611040546221.jpg","filename":"7573691529690602564574087175622687723618304njpg-1611040546221.jpg","folder":"/users/zYUkOozPA4TRyrk5GL0dDMxpOnw1/6331593295659008","thumbnail_image_url":"/users/zYUkOozPA4TRyrk5GL0dDMxpOnw1/6331593295659008/thumb_7573691529690602564574087175622687723618304njpg-1611040546221.jpg","is_stereo":false,"photo_type":"360_mono","updated_date":"2021-01-19T07:15:46.222Z","created_date":"2021-01-19T07:15:46.222Z","id":"5014843782332416","sort_order":1,"status":"active","has_anaglyph":false},{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FzYUkOozPA4TRyrk5GL0dDMxpOnw1%2F6331593295659008%2F7646734736986808301620105245156137930140726njpg-1611040546233.jpg&uploadType=resumable&upload_id=ABg5-Uwt7UTcjt4__UIk6muhqodIi9G99XMcRQIlUMW3i3GuQthNNxdUIx5xFbu5S5fOhtTGDFKuy7t_vCwi06DrzhmGtoamYQ","image_url":"/users/zYUkOozPA4TRyrk5GL0dDMxpOnw1/6331593295659008/7646734736986808301620105245156137930140726njpg-1611040546233.jpg","rotation":0,"thumbnail_gcs_filename":"/users/zYUkOozPA4TRyrk5GL0dDMxpOnw1/6331593295659008/thumb_7646734736986808301620105245156137930140726njpg-1611040546233.jpg","title":"2do 360","version":"v3","gcs_filename":"/users/zYUkOozPA4TRyrk5GL0dDMxpOnw1/6331593295659008/7646734736986808301620105245156137930140726njpg-1611040546233.jpg","filename":"7646734736986808301620105245156137930140726njpg-1611040546233.jpg","folder":"/users/zYUkOozPA4TRyrk5GL0dDMxpOnw1/6331593295659008","is_stereo":false,"thumbnail_image_url":"/users/zYUkOozPA4TRyrk5GL0dDMxpOnw1/6331593295659008/thumb_7646734736986808301620105245156137930140726njpg-1611040546233.jpg","photo_type":"360_mono","created_date":"2021-01-19T07:15:46.234Z","updated_date":"2021-01-19T07:15:46.234Z","id":"6591807999705088","sort_order":2,"status":"active","has_anaglyph":false}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5014843782332416":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FzYUkOozPA4TRyrk5GL0dDMxpOnw1%2F6331593295659008%2F7573691529690602564574087175622687723618304njpg-1611040546221.jpg&uploadType=resumable&upload_id=ABg5-Uxf3uYP3t_sj5Hay-Fr2YtxD52Go4J3G_yqkJ_iYbjZl36plSQLzBjk8_kd7VnBIltp37gYbumFi7oDeDx3p-f8kvWvfQ","image_url":"/users/zYUkOozPA4TRyrk5GL0dDMxpOnw1/6331593295659008/7573691529690602564574087175622687723618304njpg-1611040546221.jpg","rotation":0,"thumbnail_gcs_filename":"/users/zYUkOozPA4TRyrk5GL0dDMxpOnw1/6331593295659008/thumb_7573691529690602564574087175622687723618304njpg-1611040546221.jpg","title":"1er 360","version":"v3","gcs_filename":"/users/zYUkOozPA4TRyrk5GL0dDMxpOnw1/6331593295659008/7573691529690602564574087175622687723618304njpg-1611040546221.jpg","filename":"7573691529690602564574087175622687723618304njpg-1611040546221.jpg","folder":"/users/zYUkOozPA4TRyrk5GL0dDMxpOnw1/6331593295659008","thumbnail_image_url":"/users/zYUkOozPA4TRyrk5GL0dDMxpOnw1/6331593295659008/thumb_7573691529690602564574087175622687723618304njpg-1611040546221.jpg","is_stereo":false,"photo_type":"360_mono","updated_date":"2021-01-19T07:15:46.222Z","created_date":"2021-01-19T07:15:46.222Z","id":"5014843782332416","sort_order":1,"status":"active","has_anaglyph":false},"6591807999705088":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FzYUkOozPA4TRyrk5GL0dDMxpOnw1%2F6331593295659008%2F7646734736986808301620105245156137930140726njpg-1611040546233.jpg&uploadType=resumable&upload_id=ABg5-Uwt7UTcjt4__UIk6muhqodIi9G99XMcRQIlUMW3i3GuQthNNxdUIx5xFbu5S5fOhtTGDFKuy7t_vCwi06DrzhmGtoamYQ","image_url":"/users/zYUkOozPA4TRyrk5GL0dDMxpOnw1/6331593295659008/7646734736986808301620105245156137930140726njpg-1611040546233.jpg","rotation":0,"thumbnail_gcs_filename":"/users/zYUkOozPA4TRyrk5GL0dDMxpOnw1/6331593295659008/thumb_7646734736986808301620105245156137930140726njpg-1611040546233.jpg","title":"2do 360","version":"v3","gcs_filename":"/users/zYUkOozPA4TRyrk5GL0dDMxpOnw1/6331593295659008/7646734736986808301620105245156137930140726njpg-1611040546233.jpg","filename":"7646734736986808301620105245156137930140726njpg-1611040546233.jpg","folder":"/users/zYUkOozPA4TRyrk5GL0dDMxpOnw1/6331593295659008","is_stereo":false,"thumbnail_image_url":"/users/zYUkOozPA4TRyrk5GL0dDMxpOnw1/6331593295659008/thumb_7646734736986808301620105245156137930140726njpg-1611040546233.jpg","photo_type":"360_mono","created_date":"2021-01-19T07:15:46.234Z","updated_date":"2021-01-19T07:15:46.234Z","id":"6591807999705088","sort_order":2,"status":"active","has_anaglyph":false}}; 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 = "6331593295659008"; window.tourUid = "zYUkOozPA4TRyrk5GL0dDMxpOnw1"; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "ejemplos"; window.template = '360_mono'; window.template_category = ''; window.tourShortCode = "RExxyhQmq"; 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['5014843782332416'] = 0; window.current_image_index = 0; window.current_image_id = 5014843782332416 window.photo_indexes['6591807999705088'] = 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-/AOh14GjANtNjehwBJH_YFexdjk2JLM5EEVVyahJ1p6A1sg=s96-c'; window.user_profile_name = 'Mauricio Gamarra Tolentino'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://storage.googleapis.com/orbix360-prod-images/users/zYUkOozPA4TRyrk5GL0dDMxpOnw1/6331593295659008/thumb_7573691529690602564574087175622687723618304njpg-1611040546221.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":[{"id":5014843782332416,"hotspots":[],"infoHotspots":[]},{"id":6591807999705088,"hotspots":[],"infoHotspots":[]}],"autorotate":{"enabled":false},"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;