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%2Fvs5vX0674VPqhUd3BqHFwbUBrYz2%2F5486643607764992%2F37main1jpg-1634051438777.jpg&uploadType=resumable&upload_id=ADPycdsGcuoRwmh1ZaBVvGjEIdg8frOkqBxi5UlRNVmxUQJ1xUCLdP2AvxXws8TLHPXWR_CtuJmvQyw1M5h3uH9o0DSZvp6o7w","image_url":"/users/vs5vX0674VPqhUd3BqHFwbUBrYz2/5486643607764992/37main1jpg-1634051438777.jpg","rotation":0.9167324722093171,"thumbnail_gcs_filename":"/users/vs5vX0674VPqhUd3BqHFwbUBrYz2/5486643607764992/thumb_37main1jpg-1634051438777.jpg","title":"37 Main - Buford, GA","version":"v4","gcs_filename":"/users/vs5vX0674VPqhUd3BqHFwbUBrYz2/5486643607764992/37main1jpg-1634051438777.jpg","folder":"/users/vs5vX0674VPqhUd3BqHFwbUBrYz2/5486643607764992","filename":"37main1jpg-1634051438777.jpg","thumbnail_image_url":"/users/vs5vX0674VPqhUd3BqHFwbUBrYz2/5486643607764992/thumb_37main1jpg-1634051438777.jpg","is_stereo":true,"photo_type":"180_stereo","created_date":"2021-10-12T15:10:38.778Z","updated_date":"2021-10-12T15:10:38.778Z","id":"6068998760300544","sort_order":1,"status":"active","has_anaglyph":true}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"6068998760300544":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2Fvs5vX0674VPqhUd3BqHFwbUBrYz2%2F5486643607764992%2F37main1jpg-1634051438777.jpg&uploadType=resumable&upload_id=ADPycdsGcuoRwmh1ZaBVvGjEIdg8frOkqBxi5UlRNVmxUQJ1xUCLdP2AvxXws8TLHPXWR_CtuJmvQyw1M5h3uH9o0DSZvp6o7w","image_url":"/users/vs5vX0674VPqhUd3BqHFwbUBrYz2/5486643607764992/37main1jpg-1634051438777.jpg","rotation":0.9167324722093171,"thumbnail_gcs_filename":"/users/vs5vX0674VPqhUd3BqHFwbUBrYz2/5486643607764992/thumb_37main1jpg-1634051438777.jpg","title":"37 Main - Buford, GA","version":"v4","gcs_filename":"/users/vs5vX0674VPqhUd3BqHFwbUBrYz2/5486643607764992/37main1jpg-1634051438777.jpg","folder":"/users/vs5vX0674VPqhUd3BqHFwbUBrYz2/5486643607764992","filename":"37main1jpg-1634051438777.jpg","thumbnail_image_url":"/users/vs5vX0674VPqhUd3BqHFwbUBrYz2/5486643607764992/thumb_37main1jpg-1634051438777.jpg","is_stereo":true,"photo_type":"180_stereo","created_date":"2021-10-12T15:10:38.778Z","updated_date":"2021-10-12T15:10:38.778Z","id":"6068998760300544","sort_order":1,"status":"active","has_anaglyph":true}}; if (window.is_static) { window.photosRoot = 'https://images.orbix360.com'; // TODO: after we create all the local schema/template folders, change this to empty string window.pluginsRoot = 'plugins/'; } else { window.photosRoot = 'https://images.orbix360.com'; window.pluginsRoot = 'https://storage.googleapis.com/orbix360-prod-plugins/'; } window.minterUrl = 'https://minter.orbix360.com'; window.tourId = "5486643607764992"; window.tourUid = "vs5vX0674VPqhUd3BqHFwbUBrYz2"; window.isTourOwner = false; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "37-main-buford-ga-vr180-3d"; window.template = '180_stereo'; window.template_category = ''; window.tourShortCode = "MCXdCH13P"; 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['6068998760300544'] = 0; window.current_image_index = 0; window.current_image_id = 6068998760300544 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/ACg8ocL5qw8LNCvii_tVIYiELm_MaLFKoplv16eV1zgRuuGyUIm2fCA=s96-c'; window.user_profile_name = '[k]armic Designs'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://images.orbix360.com/users/vs5vX0674VPqhUd3BqHFwbUBrYz2/5486643607764992/thumb_37main1jpg-1634051438777.jpg.play.jpg'; window.image_url_root = 'https://images.orbix360.com'; window.cloudFunctionsRoot = 'https://us-central1-orbix360-prod.cloudfunctions.net'; window.timeSinceRestartRotation = 0; window.initialState = {"orbs":[{"id":6068998760300544,"hotspots":[],"infoHotspots":[]}],"autorotate":{"enabled":false},"versionNumber":2}; window.brandingAllowed = false; window.upgradeCheckoutSessionStatus = ''; window.isUpgradeSubscriptionValid = false; window.isPro = (window.brandingAllowed || window.isUpgradeSubscriptionValid); // 029: free-plan limits from functions/common/plan_limits.js; read by // add_photos_dropzone.js (image cap, file size), which keeps fallbacks. window.planLimits = {"freeMaxMultiImageTours":2,"freeMaxSingleImageTours":-1,"freeMaxImagesPerTour":5,"freeMaxFileBytes":20000000,"multiImageLimitCutoffDate":"2026-10-01T00:00:00Z","freeMultiImageLimitEnabled":false}; window.nadirLogoURL = (window.brandingAllowed || isUpgradeSubscriptionValid) ? 'https://images.orbix360.com/users/vs5vX0674VPqhUd3BqHFwbUBrYz2/branding/nadir-1642692574410.png' : '/images/orbix_nadir.png'; window.editMode = false; // #325 feature flag: screen-space nav hotspot dock. Environment default from // app_config.NAV_DOCK_ENABLED; overridable per page load with ?navdock=on|off // (this script runs in the viewer page's context, so location.search is the // tour page's query string). Flag off = pre-#325 world-anchored nav hotspots. window.navDockEnabled = false; (function () { try { var navdock = new URLSearchParams(window.location.search).get('navdock'); if (navdock === 'on' || navdock === 'yes') { window.navDockEnabled = true; } else if (navdock === 'off' || navdock === 'no') { window.navDockEnabled = false; } } catch (e) { /* keep the environment default */ } })();