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":"img20250107115639070jpg-1736352526947.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/img20250107115639070jpg-1736352526947.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/img20250107115639070jpg-1736352526947.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/thumb_img20250107115639070jpg-1736352526947.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/thumb_img20250107115639070jpg-1736352526947.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-01-08T16:08:46.947Z","updated_date":"2025-01-08T16:08:46.947Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4839948693798912%2Fimg20250107115639070jpg-1736352526947.JPG&uploadType=resumable&upload_id=AFiumC6VL_uJPKqa7HxqJr8evsgCHf_KNNWr6qBiuu1CYHKG8dQmknwxnSRu03kHxar9aQrtAORa7xk7EXKqBZVHPBlphJwvOrZEmo6hxwcSn0E","id":"4853839893102592","title":"Canteen","has_anaglyph":false,"index":0},{"filename":"img20250107115642692jpg-1736352527156.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/img20250107115642692jpg-1736352527156.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/img20250107115642692jpg-1736352527156.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/thumb_img20250107115642692jpg-1736352527156.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/thumb_img20250107115642692jpg-1736352527156.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-01-08T16:08:47.156Z","updated_date":"2025-01-08T16:08:47.156Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4839948693798912%2Fimg20250107115642692jpg-1736352527156.JPG&uploadType=resumable&upload_id=AFiumC5b4UwK0GKHOEXdPEDGdDg6rrJ0fHFR5GjojRbJKxxmbRDrnKUTMy6IwSGBljatpJvHZRnuMuXSeJ1N6lx-B_J2gcOuexazzrxO3WvtK8Y","id":"4888196074700800","title":"Garden","has_anaglyph":false,"index":1},{"filename":"img20250107115644380jpg-1736352526955.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/img20250107115644380jpg-1736352526955.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/img20250107115644380jpg-1736352526955.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/thumb_img20250107115644380jpg-1736352526955.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/thumb_img20250107115644380jpg-1736352526955.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-01-08T16:08:46.955Z","updated_date":"2025-01-08T16:08:46.955Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4839948693798912%2Fimg20250107115644380jpg-1736352526955.JPG&uploadType=resumable&upload_id=AFiumC7HsHnn9OkrrZrbaLvPz81f_o6Pin0afhIFFKfxV2II6D9juD5f3ZxM0Vm8w84EcINv7Ebec40YJPnex2H0FpZH4zwpryBxKOEJBneAZnU","id":"6477108354220032","title":"Hall","has_anaglyph":false,"index":2},{"filename":"img20250107115640793jpg-1736352526949.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/img20250107115640793jpg-1736352526949.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/img20250107115640793jpg-1736352526949.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/thumb_img20250107115640793jpg-1736352526949.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/thumb_img20250107115640793jpg-1736352526949.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-01-08T16:08:46.949Z","updated_date":"2025-01-08T16:08:46.949Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4839948693798912%2Fimg20250107115640793jpg-1736352526949.JPG&uploadType=resumable&upload_id=AFiumC70AApTpw2qFGDxF7KtvhJJcJ_uYfKQvrGL_Fk3RquzQ7SVqo4zLNj1PFEt0QvsQVrd81eaWkSVX5rp6FUO-juz9XH_YbUgDX-WMw6tYrQ","id":"6406692969381888","title":"Classroom","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"4853839893102592":{"filename":"img20250107115639070jpg-1736352526947.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/img20250107115639070jpg-1736352526947.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/img20250107115639070jpg-1736352526947.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/thumb_img20250107115639070jpg-1736352526947.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/thumb_img20250107115639070jpg-1736352526947.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-01-08T16:08:46.947Z","updated_date":"2025-01-08T16:08:46.947Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4839948693798912%2Fimg20250107115639070jpg-1736352526947.JPG&uploadType=resumable&upload_id=AFiumC6VL_uJPKqa7HxqJr8evsgCHf_KNNWr6qBiuu1CYHKG8dQmknwxnSRu03kHxar9aQrtAORa7xk7EXKqBZVHPBlphJwvOrZEmo6hxwcSn0E","id":"4853839893102592","title":"Canteen","has_anaglyph":false,"index":0},"6406692969381888":{"filename":"img20250107115640793jpg-1736352526949.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/img20250107115640793jpg-1736352526949.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/img20250107115640793jpg-1736352526949.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/thumb_img20250107115640793jpg-1736352526949.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/thumb_img20250107115640793jpg-1736352526949.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-01-08T16:08:46.949Z","updated_date":"2025-01-08T16:08:46.949Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4839948693798912%2Fimg20250107115640793jpg-1736352526949.JPG&uploadType=resumable&upload_id=AFiumC70AApTpw2qFGDxF7KtvhJJcJ_uYfKQvrGL_Fk3RquzQ7SVqo4zLNj1PFEt0QvsQVrd81eaWkSVX5rp6FUO-juz9XH_YbUgDX-WMw6tYrQ","id":"6406692969381888","title":"Classroom","has_anaglyph":false,"index":3},"4888196074700800":{"filename":"img20250107115642692jpg-1736352527156.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/img20250107115642692jpg-1736352527156.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/img20250107115642692jpg-1736352527156.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/thumb_img20250107115642692jpg-1736352527156.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/thumb_img20250107115642692jpg-1736352527156.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-01-08T16:08:47.156Z","updated_date":"2025-01-08T16:08:47.156Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4839948693798912%2Fimg20250107115642692jpg-1736352527156.JPG&uploadType=resumable&upload_id=AFiumC5b4UwK0GKHOEXdPEDGdDg6rrJ0fHFR5GjojRbJKxxmbRDrnKUTMy6IwSGBljatpJvHZRnuMuXSeJ1N6lx-B_J2gcOuexazzrxO3WvtK8Y","id":"4888196074700800","title":"Garden","has_anaglyph":false,"index":1},"6477108354220032":{"filename":"img20250107115644380jpg-1736352526955.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/img20250107115644380jpg-1736352526955.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/img20250107115644380jpg-1736352526955.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/thumb_img20250107115644380jpg-1736352526955.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/thumb_img20250107115644380jpg-1736352526955.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-01-08T16:08:46.955Z","updated_date":"2025-01-08T16:08:46.955Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4839948693798912%2Fimg20250107115644380jpg-1736352526955.JPG&uploadType=resumable&upload_id=AFiumC7HsHnn9OkrrZrbaLvPz81f_o6Pin0afhIFFKfxV2II6D9juD5f3ZxM0Vm8w84EcINv7Ebec40YJPnex2H0FpZH4zwpryBxKOEJBneAZnU","id":"6477108354220032","title":"Hall","has_anaglyph":false,"index":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 = "4839948693798912"; window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1"; window.customUrl = "https://kiddy123.com/"; window.tourSlug = "sunshower-preschool-tuition-centre-happy-garden"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "Ogbvywz8a"; 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['4853839893102592'] = 0; window.current_image_index = 0; window.current_image_id = 4853839893102592 window.photo_indexes['4888196074700800'] = 1; window.photo_indexes['6477108354220032'] = 2; window.photo_indexes['6406692969381888'] = 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 = '/images/profile-icon.png'; window.user_profile_name = 'Orbi-3310788280'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://storage.googleapis.com/orbix360-prod-images/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/thumb_img20250107115639070jpg-1736352526947.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 = {"versionNumber":3,"autorotate":{"enabled":true},"orbs":[{"id":4853839893102592,"hotspots":[{"id":"hotspot_4853839893102592_6477108354220032","from":4853839893102592,"to":6477108354220032,"position":{"x":-0.6174836328658847,"y":0.03946569664482369,"z":0.7855930383672505},"toTitle":"Hall"},{"id":"hotspot_4853839893102592_4888196074700800","from":4853839893102592,"to":4888196074700800,"position":{"x":0.27761860324442883,"y":0.022328487546897365,"z":0.9604318558734298},"toTitle":"Garden"},{"id":"hotspot_4853839893102592_6406692969381888","from":4853839893102592,"to":6406692969381888,"position":{"x":-0.04856697402421526,"y":0.10013069977064196,"z":-0.9937882530990054},"toTitle":"Classroom"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1736353211918","instanceName":"Image","templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/template.html","schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/schema.json","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/script.js","position":{"x":"0.1","y":"-0.9","z":"0.01"},"rotation":{"x":"-100","y":"65","z":"0"},"scale":{"x":"1","y":"1","z":"1"},"src":"https://storage.googleapis.com/orbix360-prod-assets/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/4853839893102592/plugin_4826070998056960_1736353211918/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4888196074700800,"hotspots":[{"id":"hotspot_4888196074700800_6477108354220032","from":4888196074700800,"to":6477108354220032,"position":{"x":-0.010939041420982336,"y":0.024389508457401555,"z":-0.9996426807864879},"toTitle":"Hall"},{"id":"hotspot_4888196074700800_6406692969381888","from":4888196074700800,"to":6406692969381888,"position":{"x":0.0007204184444027912,"y":0.26170593682917453,"z":-0.9651473895864968},"toTitle":"Classroom"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1736353246841","instanceName":"Image","templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/template.html","schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/schema.json","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/script.js","position":{"x":"0.1","y":"-0.9","z":"0.01"},"rotation":{"x":"-100","y":"65","z":"0"},"scale":{"x":"1","y":"1","z":"1"},"src":"https://storage.googleapis.com/orbix360-prod-assets/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/4888196074700800/plugin_4826070998056960_1736353246841/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":6477108354220032,"hotspots":[{"id":"hotspot_6477108354220032_4853839893102592","from":6477108354220032,"to":4853839893102592,"position":{"x":-0.18334847553903297,"y":0.012468244355937247,"z":-0.9829689106987023},"toTitle":"Canteen"},{"id":"hotspot_6477108354220032_4888196074700800","from":6477108354220032,"to":4888196074700800,"position":{"x":0.8596180177908175,"y":0.007718204609915109,"z":-0.5108789414401274},"toTitle":"Garden"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1736353277239","instanceName":"Image","templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/template.html","schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/schema.json","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/script.js","position":{"x":"0.1","y":"-0.9","z":"0.01"},"rotation":{"x":"-100","y":"65","z":"0"},"scale":{"x":"1","y":"1","z":"1"},"src":"https://storage.googleapis.com/orbix360-prod-assets/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/6477108354220032/plugin_4826070998056960_1736353277239/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":6406692969381888,"hotspots":[{"id":"hotspot_6406692969381888_4853839893102592","from":6406692969381888,"to":4853839893102592,"position":{"x":-0.7140682310294244,"y":0.03795038964001744,"z":0.6990467290250914},"toTitle":"Canteen"},{"id":"hotspot_6406692969381888_4888196074700800","from":6406692969381888,"to":4888196074700800,"position":{"x":-0.37771338379907254,"y":-0.12212938589395465,"z":-0.9178327804127613},"toTitle":"Garden"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1736353310841","instanceName":"Image","templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/template.html","schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/schema.json","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/script.js","position":{"x":"0.1","y":"-0.9","z":"0.01"},"rotation":{"x":"-100","y":"65","z":"0"},"scale":{"x":"1","y":"1","z":"1"},"src":"https://storage.googleapis.com/orbix360-prod-assets/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4839948693798912/6406692969381888/plugin_4826070998056960_1736353310841/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]}]}; window.brandingAllowed = true; window.upgradeCheckoutSessionStatus = ''; window.isPro = (window.brandingAllowed || window.upgradeCheckoutSessionStatus == 'complete'); window.nadirLogoURL = (window.brandingAllowed || window.upgradeCheckoutSessionStatus == 'complete') ? 'https://storage.googleapis.com/orbix360-prod-images/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/branding/nadir-1729253472432.png' : '/images/orbix_nadir.png'; window.editMode = false;