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":"img20250829105425377jpg-1756712672458.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/img20250829105425377jpg-1756712672458.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/img20250829105425377jpg-1756712672458.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/thumb_img20250829105425377jpg-1756712672458.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/thumb_img20250829105425377jpg-1756712672458.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-09-01T07:44:32.459Z","updated_date":"2025-09-01T07:44:32.459Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5985829891604480%2Fimg20250829105425377jpg-1756712672458.JPG&uploadType=resumable&upload_id=ABgVH89KUGqYE2UL_XRQXKaEIC3ZtrVdoJ3ryVTjBiRjIhJzfYY3DfvvxdNGJ90GiluUVf9AHzPeVzRa5SulU_tcmp-v41Sbo_JIAOoCBfodEA","id":"6010616483414016","title":"Fitness & Dance Studio","has_anaglyph":false,"index":0},{"filename":"img20250829110659180jpg-1756712672561.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/img20250829110659180jpg-1756712672561.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/img20250829110659180jpg-1756712672561.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/thumb_img20250829110659180jpg-1756712672561.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/thumb_img20250829110659180jpg-1756712672561.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-09-01T07:44:32.561Z","updated_date":"2025-09-01T07:44:32.561Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5985829891604480%2Fimg20250829110659180jpg-1756712672561.jpg&uploadType=resumable&upload_id=ABgVH88inS5Tq3ETcvFNSkEwvYeUmYDPp8OOYl-umGp2BjbZiM0LINwEAP8Qdv4EsL0ba4geYPuSn0tUP_I5md_RxKZFIjGiClg5nm7CkpjIbBo","id":"6023161881559040","title":"Synthetic skating ring & Bouldering wall","has_anaglyph":false,"index":1},{"filename":"img20250829124700607jpg-1756712672746.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/img20250829124700607jpg-1756712672746.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/img20250829124700607jpg-1756712672746.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/thumb_img20250829124700607jpg-1756712672746.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/thumb_img20250829124700607jpg-1756712672746.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-09-01T07:44:32.746Z","updated_date":"2025-09-01T07:44:32.746Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5985829891604480%2Fimg20250829124700607jpg-1756712672746.jpg&uploadType=resumable&upload_id=ABgVH8_TqlOFXcyDRYOtNvYxjlEUJ19KcrfcGuF6ctaR4MtaWm2swcvUATn8BwzZ4thdipcm_LDvNmE-RcYD9q8KiuxFWtt2jbpvr7myHYjWug","id":"5901956092526592","title":"Gifted Kid's Department","has_anaglyph":false,"index":2},{"filename":"img20251002140811348jpg-1759413497524.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/img20251002140811348jpg-1759413497524.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/img20251002140811348jpg-1759413497524.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/thumb_img20251002140811348jpg-1759413497524.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/thumb_img20251002140811348jpg-1759413497524.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":5,"status":"active","created_date":"2025-10-02T13:58:17.524Z","updated_date":"2025-10-02T13:58:17.524Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5985829891604480%2Fimg20251002140811348jpg-1759413497524.JPG&uploadType=resumable&upload_id=AAwnv3LgBcn0p5Zj6Pfp47a2t7FoqpGJuJic7nwfCjuPvIf_vqax8cOlgqzk1sIg6fFMqfxXs8dHlWoHIZUxzPFifclyOGEBOc3USbN8hOPsgg","id":"5984712126365696","title":"Sensory & Calming Room","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"6010616483414016":{"filename":"img20250829105425377jpg-1756712672458.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/img20250829105425377jpg-1756712672458.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/img20250829105425377jpg-1756712672458.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/thumb_img20250829105425377jpg-1756712672458.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/thumb_img20250829105425377jpg-1756712672458.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-09-01T07:44:32.459Z","updated_date":"2025-09-01T07:44:32.459Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5985829891604480%2Fimg20250829105425377jpg-1756712672458.JPG&uploadType=resumable&upload_id=ABgVH89KUGqYE2UL_XRQXKaEIC3ZtrVdoJ3ryVTjBiRjIhJzfYY3DfvvxdNGJ90GiluUVf9AHzPeVzRa5SulU_tcmp-v41Sbo_JIAOoCBfodEA","id":"6010616483414016","title":"Fitness & Dance Studio","has_anaglyph":false,"index":0},"6023161881559040":{"filename":"img20250829110659180jpg-1756712672561.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/img20250829110659180jpg-1756712672561.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/img20250829110659180jpg-1756712672561.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/thumb_img20250829110659180jpg-1756712672561.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/thumb_img20250829110659180jpg-1756712672561.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-09-01T07:44:32.561Z","updated_date":"2025-09-01T07:44:32.561Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5985829891604480%2Fimg20250829110659180jpg-1756712672561.jpg&uploadType=resumable&upload_id=ABgVH88inS5Tq3ETcvFNSkEwvYeUmYDPp8OOYl-umGp2BjbZiM0LINwEAP8Qdv4EsL0ba4geYPuSn0tUP_I5md_RxKZFIjGiClg5nm7CkpjIbBo","id":"6023161881559040","title":"Synthetic skating ring & Bouldering wall","has_anaglyph":false,"index":1},"5901956092526592":{"filename":"img20250829124700607jpg-1756712672746.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/img20250829124700607jpg-1756712672746.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/img20250829124700607jpg-1756712672746.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/thumb_img20250829124700607jpg-1756712672746.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/thumb_img20250829124700607jpg-1756712672746.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-09-01T07:44:32.746Z","updated_date":"2025-09-01T07:44:32.746Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5985829891604480%2Fimg20250829124700607jpg-1756712672746.jpg&uploadType=resumable&upload_id=ABgVH8_TqlOFXcyDRYOtNvYxjlEUJ19KcrfcGuF6ctaR4MtaWm2swcvUATn8BwzZ4thdipcm_LDvNmE-RcYD9q8KiuxFWtt2jbpvr7myHYjWug","id":"5901956092526592","title":"Gifted Kid's Department","has_anaglyph":false,"index":2},"5984712126365696":{"filename":"img20251002140811348jpg-1759413497524.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/img20251002140811348jpg-1759413497524.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/img20251002140811348jpg-1759413497524.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/thumb_img20251002140811348jpg-1759413497524.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5985829891604480/thumb_img20251002140811348jpg-1759413497524.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":5,"status":"active","created_date":"2025-10-02T13:58:17.524Z","updated_date":"2025-10-02T13:58:17.524Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5985829891604480%2Fimg20251002140811348jpg-1759413497524.JPG&uploadType=resumable&upload_id=AAwnv3LgBcn0p5Zj6Pfp47a2t7FoqpGJuJic7nwfCjuPvIf_vqax8cOlgqzk1sIg6fFMqfxXs8dHlWoHIZUxzPFifclyOGEBOc3USbN8hOPsgg","id":"5984712126365696","title":"Sensory & Calming Room","has_anaglyph":false,"index":3}}; 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 = "5985829891604480"; 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['6010616483414016'] = 0; window.current_image_index = 0; window.current_image_id = 6010616483414016 window.photo_indexes['6023161881559040'] = 1; window.photo_indexes['5901956092526592'] = 2; window.photo_indexes['5984712126365696'] = 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/5985829891604480/thumb_img20250829105425377jpg-1756712672458.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":6010616483414016,"hotspots":[{"id":"hotspot_6010616483414016_6023161881559040","from":6010616483414016,"to":6023161881559040,"position":{"x":0.9945756805174989,"y":0.0023467970878532996,"z":-0.1039889814671852},"toTitle":"Synthetic skating ring & Bouldering wall"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1756713180839","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/5985829891604480/6010616483414016/plugin_4826070998056960_1756713180839/Pine Hills International School, Old Klang Road.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":6023161881559040,"hotspots":[{"id":"hotspot_6023161881559040_6010616483414016","from":6023161881559040,"to":6010616483414016,"position":{"x":0.365055467059772,"y":0.006995146483428146,"z":-0.9309594910066963},"toTitle":"Fitness & Dance Studio"},{"id":"hotspot_6023161881559040_5901956092526592","from":6023161881559040,"to":5901956092526592,"position":{"x":-0.5251588500671189,"y":0.05312016753271142,"z":0.8493447062279708},"toTitle":"Gifted Kid's Department"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1756713216690","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/5985829891604480/6023161881559040/plugin_4826070998056960_1756713216690/Pine Hills International School, Old Klang Road.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":5901956092526592,"hotspots":[{"id":"hotspot_5901956092526592_6023161881559040","from":5901956092526592,"to":6023161881559040,"position":{"x":0.4243739010202447,"y":0.028638417864213592,"z":0.9050340508263179},"toTitle":"Synthetic skating ring & Bouldering wall"},{"id":"hotspot_5901956092526592_5984712126365696","from":5901956092526592,"to":5984712126365696,"position":{"x":0.965349477844792,"y":-0.01224635781511814,"z":-0.2606729988799211},"toTitle":"Sensory & Calming Room"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1756713247069","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/5985829891604480/5901956092526592/plugin_4826070998056960_1756713247069/Pine Hills International School, Old Klang Road.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":5984712126365696,"hotspots":[{"id":"hotspot_5984712126365696_5901956092526592","from":5984712126365696,"to":5901956092526592,"position":{"x":-0.8240786305738406,"y":-0.024404964046548076,"z":0.5659494750959932},"toTitle":"Gifted Kid's Department"}],"infoHotspots":[]}]}; 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;