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 = [{"filename":"3601244stitchyhcjpg-1773280022600.jpg","folder":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400","gcs_filename":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/3601244stitchyhcjpg-1773280022600.jpg","image_url":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/3601244stitchyhcjpg-1773280022600.jpg","thumbnail_gcs_filename":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/thumb_3601244stitchyhcjpg-1773280022600.jpg","thumbnail_image_url":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/thumb_3601244stitchyhcjpg-1773280022600.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2026-03-12T01:47:02.600Z","updated_date":"2026-03-12T01:47:02.600Z","version":"v3","id":"4879718258049024","title":"Pool 1","has_anaglyph":false,"index":0},{"filename":"3601238stitchyhcjpg-1773280022589.jpg","folder":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400","gcs_filename":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/3601238stitchyhcjpg-1773280022589.jpg","image_url":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/3601238stitchyhcjpg-1773280022589.jpg","thumbnail_gcs_filename":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/thumb_3601238stitchyhcjpg-1773280022589.jpg","thumbnail_image_url":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/thumb_3601238stitchyhcjpg-1773280022589.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2026-03-12T01:47:02.589Z","updated_date":"2026-03-12T01:47:02.589Z","version":"v3","id":"4898697651421184","title":"Restroom","has_anaglyph":false,"index":1},{"filename":"3601245stitchyhcjpg-1773280022756.jpg","folder":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400","gcs_filename":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/3601245stitchyhcjpg-1773280022756.jpg","image_url":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/3601245stitchyhcjpg-1773280022756.jpg","thumbnail_gcs_filename":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/thumb_3601245stitchyhcjpg-1773280022756.jpg","thumbnail_image_url":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/thumb_3601245stitchyhcjpg-1773280022756.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2026-03-12T01:47:02.757Z","updated_date":"2026-03-12T01:47:02.757Z","version":"v3","id":"5797314264301568","title":"Pool 3","has_anaglyph":false,"index":2},{"filename":"3601241stitchyhcjpg-1773280022710.jpg","folder":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400","gcs_filename":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/3601241stitchyhcjpg-1773280022710.jpg","image_url":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/3601241stitchyhcjpg-1773280022710.jpg","thumbnail_gcs_filename":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/thumb_3601241stitchyhcjpg-1773280022710.jpg","thumbnail_image_url":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/thumb_3601241stitchyhcjpg-1773280022710.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":5,"status":"active","created_date":"2026-03-12T01:47:02.710Z","updated_date":"2026-03-12T01:47:02.710Z","version":"v3","id":"5308594767527936","title":"Jacuzzi","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"4898697651421184":{"filename":"3601238stitchyhcjpg-1773280022589.jpg","folder":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400","gcs_filename":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/3601238stitchyhcjpg-1773280022589.jpg","image_url":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/3601238stitchyhcjpg-1773280022589.jpg","thumbnail_gcs_filename":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/thumb_3601238stitchyhcjpg-1773280022589.jpg","thumbnail_image_url":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/thumb_3601238stitchyhcjpg-1773280022589.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2026-03-12T01:47:02.589Z","updated_date":"2026-03-12T01:47:02.589Z","version":"v3","id":"4898697651421184","title":"Restroom","has_anaglyph":false,"index":1},"4879718258049024":{"filename":"3601244stitchyhcjpg-1773280022600.jpg","folder":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400","gcs_filename":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/3601244stitchyhcjpg-1773280022600.jpg","image_url":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/3601244stitchyhcjpg-1773280022600.jpg","thumbnail_gcs_filename":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/thumb_3601244stitchyhcjpg-1773280022600.jpg","thumbnail_image_url":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/thumb_3601244stitchyhcjpg-1773280022600.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2026-03-12T01:47:02.600Z","updated_date":"2026-03-12T01:47:02.600Z","version":"v3","id":"4879718258049024","title":"Pool 1","has_anaglyph":false,"index":0},"5797314264301568":{"filename":"3601245stitchyhcjpg-1773280022756.jpg","folder":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400","gcs_filename":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/3601245stitchyhcjpg-1773280022756.jpg","image_url":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/3601245stitchyhcjpg-1773280022756.jpg","thumbnail_gcs_filename":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/thumb_3601245stitchyhcjpg-1773280022756.jpg","thumbnail_image_url":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/thumb_3601245stitchyhcjpg-1773280022756.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2026-03-12T01:47:02.757Z","updated_date":"2026-03-12T01:47:02.757Z","version":"v3","id":"5797314264301568","title":"Pool 3","has_anaglyph":false,"index":2},"5308594767527936":{"filename":"3601241stitchyhcjpg-1773280022710.jpg","folder":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400","gcs_filename":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/3601241stitchyhcjpg-1773280022710.jpg","image_url":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/3601241stitchyhcjpg-1773280022710.jpg","thumbnail_gcs_filename":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/thumb_3601241stitchyhcjpg-1773280022710.jpg","thumbnail_image_url":"/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/thumb_3601241stitchyhcjpg-1773280022710.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":5,"status":"active","created_date":"2026-03-12T01:47:02.710Z","updated_date":"2026-03-12T01:47:02.710Z","version":"v3","id":"5308594767527936","title":"Jacuzzi","has_anaglyph":false,"index":3}}; 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 = "4833188931174400"; // 052: the tour sound's Loop / Play once choice (absent = loop). window.tourAudioLoop = true; window.tourUid = "fh6MPVau1YVvA7toWGFiZQkpHVj1"; window.isTourOwner = false; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "pool"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "o07TVg6OJ"; 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['4879718258049024'] = 0; window.current_image_index = 0; window.current_image_id = 4879718258049024 window.photo_indexes['4898697651421184'] = 1; window.photo_indexes['5797314264301568'] = 2; window.photo_indexes['5308594767527936'] = 3; 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/10157623656887820/picture'; window.user_profile_name = 'ImageIN'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://images.orbix360.com/users/fh6MPVau1YVvA7toWGFiZQkpHVj1/4833188931174400/thumb_3601244stitchyhcjpg-1773280022600.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 = {"versionNumber":3,"autorotate":{"enabled":false},"orbs":[{"id":4879718258049024,"hotspots":[{"id":"hotspot_4879718258049024_4898697651421184","from":4879718258049024,"to":4898697651421184,"position":{"x":-0.9963482822653378,"y":-0.04754658181888528,"z":-0.07091842485737083},"toTitle":"Restroom"},{"id":"hotspot_4879718258049024_5797314264301568","from":4879718258049024,"to":5797314264301568,"position":{"x":-0.18428173118360397,"y":-0.2282279671215711,"z":0.9560084929411083},"toTitle":"Pool 3"},{"id":"hotspot_4879718258049024_5308594767527936","from":4879718258049024,"to":5308594767527936,"position":{"x":-0.7428944986847181,"y":-0.02918828422398548,"z":0.6687718653532316},"toTitle":"Jacuzzi"}],"infoHotspots":[]},{"id":4898697651421184,"hotspots":[{"id":"hotspot_4898697651421184_4879718258049024","from":4898697651421184,"to":4879718258049024,"position":{"x":0.8255802286958707,"y":-0.24891426934184438,"z":0.5064177845460107},"toTitle":"Pool 1"},{"id":"hotspot_4898697651421184_5797314264301568","from":4898697651421184,"to":5797314264301568,"position":{"x":-0.05091421384577827,"y":-0.10882183539343895,"z":0.9927565416405321},"toTitle":"Pool 3"}],"infoHotspots":[]},{"id":5797314264301568,"hotspots":[{"id":"hotspot_5797314264301568_4879718258049024","from":5797314264301568,"to":4879718258049024,"position":{"x":-0.4462692125511981,"y":-0.3545824432049701,"z":-0.8216538692781332},"toTitle":"Pool 1"},{"id":"hotspot_5797314264301568_4898697651421184","from":5797314264301568,"to":4898697651421184,"position":{"x":-0.9719615330007351,"y":-0.20458241008714667,"z":-0.11591728020358198},"toTitle":"Restroom"}],"infoHotspots":[]},{"id":5308594767527936,"hotspots":[{"id":"hotspot_5308594767527936_4879718258049024","from":5308594767527936,"to":4879718258049024,"position":{"x":0.2626316390948681,"y":-0.0711225207380471,"z":0.9622713802198468},"toTitle":"Pool 1"},{"id":"hotspot_5308594767527936_5797314264301568","from":5308594767527936,"to":5797314264301568,"position":{"x":-0.278787543255057,"y":-0.1386592495727052,"z":0.9502900179596457},"toTitle":"Pool 3"}],"infoHotspots":[]}]}; window.brandingAllowed = false; window.isOwner = false; // 045: owner-only prompts route to the Premium Tour page window.upgradeCheckoutSessionStatus = ''; window.isUpgradeSubscriptionValid = false; window.isPro = false; // 072: the shared entitlement rule // 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-11T00:00:00Z","freeMultiImageBonusPerUpgradedTour":2,"freeMultiImageBonusPerSharedTour":1,"freeMultiImageShareCreditVisitors":1,"freeMultiImageBonusForUseCase":1,"freeMaxMultiImageToursWithBonus":10,"freeMultiImageShareBonusEnabled":true,"freeMultiImageLimitEnabled":true}; // 038: offer prices from functions/common/prices.js (display strings, cents); read by nothing yet. window.prices = {"currency":"usd","proMonthly":{"amount":999,"interval":"month","perMonth":999,"display":"$9.99","perMonthDisplay":"$9.99"},"proYearly":{"amount":9900,"interval":"year","perMonth":825,"display":"$99.00","perMonthDisplay":"$8.25"},"tourMonthly":{"amount":299,"interval":"month","perMonth":299,"display":"$2.99","perMonthDisplay":"$2.99"},"tourConversionCredit":{"amount":300,"display":"$3.00"},"tourComparison":{"count":4,"total":1196,"totalDisplay":"$11.96"}}; window.nadirLogoURL = window.isPro ? '/images/powered-by-orbix_nadir.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 */ } })();