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":"img20250814111436932jpg-1755160886377.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/img20250814111436932jpg-1755160886377.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/img20250814111436932jpg-1755160886377.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/thumb_img20250814111436932jpg-1755160886377.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/thumb_img20250814111436932jpg-1755160886377.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-08-14T08:41:26.377Z","updated_date":"2025-08-14T08:41:26.377Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5393031144407040%2Fimg20250814111436932jpg-1755160886377.JPG&uploadType=resumable&upload_id=ABgVH8-_9nLiBW_HQBLZc9oMWZeRBZuOnyy32IANlgMvvnOR3prJt9Dgtboyh18__KWqSkoCj1RoTT38bH7skAxIl-8GJ7tumsn-yFi9due_ow","id":"5253217053048832","title":"Entrance","has_anaglyph":false,"index":0},{"filename":"img20250814111444316jpg-1755160886401.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/img20250814111444316jpg-1755160886401.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/img20250814111444316jpg-1755160886401.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/thumb_img20250814111444316jpg-1755160886401.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/thumb_img20250814111444316jpg-1755160886401.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-08-14T08:41:26.402Z","updated_date":"2025-08-14T08:41:26.402Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5393031144407040%2Fimg20250814111444316jpg-1755160886401.jpg&uploadType=resumable&upload_id=ABgVH8-GkKFmB47CNOax78UgfUcAnbq-jBYtvZ4eaYoX0m7MOUBh5xduB8bvmifCnFCDjg2pFW4R0F4Zk34K7PGDtts5YqCmDC5lztg--r-MEg","id":"6522221914750976","title":"Ballroom","has_anaglyph":false,"index":1},{"filename":"img20250814112801587jpg-1755160886531.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/img20250814112801587jpg-1755160886531.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/img20250814112801587jpg-1755160886531.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/thumb_img20250814112801587jpg-1755160886531.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/thumb_img20250814112801587jpg-1755160886531.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-08-14T08:41:26.531Z","updated_date":"2025-08-14T08:41:26.531Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5393031144407040%2Fimg20250814112801587jpg-1755160886531.jpg&uploadType=resumable&upload_id=ABgVH8-RVVBb3YgyGzNy06F8GN22vjWRSc4D3GlDQ5xn6qMv0cLF_DEHyktnTeJxx3JZAF4_TclNkUaGv9PtFdo0R4bU9lW0LLix5cHd9DjmbA","id":"5427955046023168","title":"Exercise Hall","has_anaglyph":false,"index":2},{"filename":"img20250814111423386jpg-1755160886493.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/img20250814111423386jpg-1755160886493.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/img20250814111423386jpg-1755160886493.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/thumb_img20250814111423386jpg-1755160886493.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/thumb_img20250814111423386jpg-1755160886493.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-08-14T08:41:26.494Z","updated_date":"2025-08-14T08:41:26.494Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5393031144407040%2Fimg20250814111423386jpg-1755160886493.JPG&uploadType=resumable&upload_id=ABgVH8-yaTKgt9KCex85ZuuIrFKaCBRd0aBBIZWLw5mi44vSulQRiEHMw6OQXsqi6EUhKfvW6zSxvuQn9uackfkDUttAqdJ9qZyoFdEdwpmEwF8","id":"5965931106795520","title":"Classroom","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5965931106795520":{"filename":"img20250814111423386jpg-1755160886493.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/img20250814111423386jpg-1755160886493.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/img20250814111423386jpg-1755160886493.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/thumb_img20250814111423386jpg-1755160886493.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/thumb_img20250814111423386jpg-1755160886493.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-08-14T08:41:26.494Z","updated_date":"2025-08-14T08:41:26.494Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5393031144407040%2Fimg20250814111423386jpg-1755160886493.JPG&uploadType=resumable&upload_id=ABgVH8-yaTKgt9KCex85ZuuIrFKaCBRd0aBBIZWLw5mi44vSulQRiEHMw6OQXsqi6EUhKfvW6zSxvuQn9uackfkDUttAqdJ9qZyoFdEdwpmEwF8","id":"5965931106795520","title":"Classroom","has_anaglyph":false,"index":3},"5253217053048832":{"filename":"img20250814111436932jpg-1755160886377.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/img20250814111436932jpg-1755160886377.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/img20250814111436932jpg-1755160886377.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/thumb_img20250814111436932jpg-1755160886377.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/thumb_img20250814111436932jpg-1755160886377.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-08-14T08:41:26.377Z","updated_date":"2025-08-14T08:41:26.377Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5393031144407040%2Fimg20250814111436932jpg-1755160886377.JPG&uploadType=resumable&upload_id=ABgVH8-_9nLiBW_HQBLZc9oMWZeRBZuOnyy32IANlgMvvnOR3prJt9Dgtboyh18__KWqSkoCj1RoTT38bH7skAxIl-8GJ7tumsn-yFi9due_ow","id":"5253217053048832","title":"Entrance","has_anaglyph":false,"index":0},"6522221914750976":{"filename":"img20250814111444316jpg-1755160886401.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/img20250814111444316jpg-1755160886401.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/img20250814111444316jpg-1755160886401.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/thumb_img20250814111444316jpg-1755160886401.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/thumb_img20250814111444316jpg-1755160886401.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-08-14T08:41:26.402Z","updated_date":"2025-08-14T08:41:26.402Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5393031144407040%2Fimg20250814111444316jpg-1755160886401.jpg&uploadType=resumable&upload_id=ABgVH8-GkKFmB47CNOax78UgfUcAnbq-jBYtvZ4eaYoX0m7MOUBh5xduB8bvmifCnFCDjg2pFW4R0F4Zk34K7PGDtts5YqCmDC5lztg--r-MEg","id":"6522221914750976","title":"Ballroom","has_anaglyph":false,"index":1},"5427955046023168":{"filename":"img20250814112801587jpg-1755160886531.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/img20250814112801587jpg-1755160886531.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/img20250814112801587jpg-1755160886531.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/thumb_img20250814112801587jpg-1755160886531.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5393031144407040/thumb_img20250814112801587jpg-1755160886531.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-08-14T08:41:26.531Z","updated_date":"2025-08-14T08:41:26.531Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5393031144407040%2Fimg20250814112801587jpg-1755160886531.jpg&uploadType=resumable&upload_id=ABgVH8-RVVBb3YgyGzNy06F8GN22vjWRSc4D3GlDQ5xn6qMv0cLF_DEHyktnTeJxx3JZAF4_TclNkUaGv9PtFdo0R4bU9lW0LLix5cHd9DjmbA","id":"5427955046023168","title":"Exercise 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 = "5393031144407040"; window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1"; window.customUrl = "https://kiddy123.com/"; window.tourSlug = ""; window.template = ''; window.template_category = ''; window.tourShortCode = ""; 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['5253217053048832'] = 0; window.current_image_index = 0; window.current_image_id = 5253217053048832 window.photo_indexes['6522221914750976'] = 1; window.photo_indexes['5427955046023168'] = 2; window.photo_indexes['5965931106795520'] = 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/5393031144407040/thumb_img20250814111436932jpg-1755160886377.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":5253217053048832,"hotspots":[{"id":"hotspot_5253217053048832_6522221914750976","from":5253217053048832,"to":6522221914750976,"position":{"x":0.9994926118681,"y":-0.002534301461642673,"z":0.03175052971503138},"toTitle":"Ballroom"},{"id":"hotspot_5253217053048832_5427955046023168","from":5253217053048832,"to":5427955046023168,"position":{"x":0.07095386420447407,"y":0.03213159622346959,"z":0.9969619399348127},"toTitle":"Exercise Hall"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1755161628482","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/5393031144407040/5253217053048832/plugin_4826070998056960_1755161628482/Apple King Sg.Chua Main Centre.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":6522221914750976,"hotspots":[{"id":"hotspot_6522221914750976_5253217053048832","from":6522221914750976,"to":5253217053048832,"position":{"x":-0.03180108936882574,"y":-0.07388879051395221,"z":-0.9967593176646714},"toTitle":"Entrance"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1755161600647","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/5393031144407040/6522221914750976/plugin_4826070998056960_1755161600647/Apple King Sg.Chua Main Centre.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":5427955046023168,"hotspots":[{"id":"hotspot_5427955046023168_6522221914750976","from":5427955046023168,"to":6522221914750976,"position":{"x":-0.5686798981240937,"y":-0.0008602788212111404,"z":-0.8225584680677235},"toTitle":"Ballroom"},{"id":"hotspot_5427955046023168_5253217053048832","from":5427955046023168,"to":5253217053048832,"position":{"x":-0.9905029617521186,"y":-0.06431301550708597,"z":0.12152250325213947},"toTitle":"Entrance"},{"id":"hotspot_5427955046023168_5965931106795520","from":5427955046023168,"to":5965931106795520,"position":{"x":0.8025017328582322,"y":-0.010482910676998957,"z":-0.5965576898702025},"toTitle":"Classroom"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1755161574598","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/5393031144407040/5427955046023168/plugin_4826070998056960_1755161574598/Apple King Sg.Chua Main Centre.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":5965931106795520,"hotspots":[{"id":"hotspot_5965931106795520_5427955046023168","from":5965931106795520,"to":5427955046023168,"position":{"x":-0.9842510422273117,"y":-0.06955163331104787,"z":-0.16251909481108992},"toTitle":"Exercise Hall"},{"id":"hotspot_5965931106795520_5253217053048832","from":5965931106795520,"to":5253217053048832,"position":{"x":0.28647568685111735,"y":-0.08945058114658905,"z":0.9539026545595299},"toTitle":"Entrance"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1755161539184","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/5393031144407040/5965931106795520/plugin_4826070998056960_1755161539184/Apple King Sg.Chua Main Centre.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.isUpgradeSubscriptionValid = false; window.isPro = (window.brandingAllowed || window.isUpgradeSubscriptionValid); window.nadirLogoURL = (window.brandingAllowed || isUpgradeSubscriptionValid) ? 'https://storage.googleapis.com/orbix360-prod-images/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/branding/nadir-1729253472432.png' : '/images/orbix_nadir.png'; window.editMode = false;