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":"img20250520110110470jpg-1747818902739.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/img20250520110110470jpg-1747818902739.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/img20250520110110470jpg-1747818902739.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/thumb_img20250520110110470jpg-1747818902739.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/thumb_img20250520110110470jpg-1747818902739.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-05-21T09:15:02.740Z","updated_date":"2025-05-21T09:15:02.740Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5837535194382336%2Fimg20250520110110470jpg-1747818902739.JPG&uploadType=resumable&upload_id=AAO2Vwp3QoCyVx-jzFjYfsPIT2brY7aIafq9TgrSSNovSUmFXs7PajBVZPjZ_pG5uVr4kWzcmRZZNtM2o4MSQqlz6lQsRclJAIl-VV1Af-5WRA","id":"6733184353959936","title":"Waiting Area","has_anaglyph":false,"index":0},{"filename":"img20250520110112956jpg-1747818902656.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/img20250520110112956jpg-1747818902656.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/img20250520110112956jpg-1747818902656.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/thumb_img20250520110112956jpg-1747818902656.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/thumb_img20250520110112956jpg-1747818902656.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-05-21T09:15:02.657Z","updated_date":"2025-05-21T09:15:02.657Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5837535194382336%2Fimg20250520110112956jpg-1747818902656.JPG&uploadType=resumable&upload_id=AAO2VwqA8qMlHVGS_nW6bN7oEk2HWJh5lfoNl1mi5PxhhyoFi-0k8vgBD048J2UY2l0QAnV11nRvBMmH1gFthX8pr8gFA7eRjrbTqLWGj4OAZgU","id":"4546473259696128","title":"Hall","has_anaglyph":false,"index":1},{"filename":"img20250520110114040jpg-1747818902667.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/img20250520110114040jpg-1747818902667.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/img20250520110114040jpg-1747818902667.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/thumb_img20250520110114040jpg-1747818902667.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/thumb_img20250520110114040jpg-1747818902667.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-05-21T09:15:02.667Z","updated_date":"2025-05-21T09:15:02.667Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5837535194382336%2Fimg20250520110114040jpg-1747818902667.JPG&uploadType=resumable&upload_id=AAO2VwrEWrbybmlWIaOKGcd9V6_GhdEfsQBQNl7zV4VHiXe0WfzXr-xhuop2dSja7p8soZAMPhNl_KZz2iVgLy1-6ZpQKwC-opRxFkS9OhUBmA","id":"5329790770872320","title":"Classroom","has_anaglyph":false,"index":2},{"filename":"img20250520110115182jpg-1747818902642.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/img20250520110115182jpg-1747818902642.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/img20250520110115182jpg-1747818902642.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/thumb_img20250520110115182jpg-1747818902642.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/thumb_img20250520110115182jpg-1747818902642.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-05-21T09:15:02.643Z","updated_date":"2025-05-21T09:15:02.643Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5837535194382336%2Fimg20250520110115182jpg-1747818902642.JPG&uploadType=resumable&upload_id=AAO2VwrFinyGB0WaHbhLuUAv3PepA7ywrKGbOmuPoa0jWdhlHbdJ5ROdnU3ICoOZ524IKg4AaoVqVjRNkuYsS-yD-7A2zPZmcmKiw_chM2TuKA","id":"6692719957114880","title":"Reading Area","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"6733184353959936":{"filename":"img20250520110110470jpg-1747818902739.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/img20250520110110470jpg-1747818902739.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/img20250520110110470jpg-1747818902739.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/thumb_img20250520110110470jpg-1747818902739.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/thumb_img20250520110110470jpg-1747818902739.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-05-21T09:15:02.740Z","updated_date":"2025-05-21T09:15:02.740Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5837535194382336%2Fimg20250520110110470jpg-1747818902739.JPG&uploadType=resumable&upload_id=AAO2Vwp3QoCyVx-jzFjYfsPIT2brY7aIafq9TgrSSNovSUmFXs7PajBVZPjZ_pG5uVr4kWzcmRZZNtM2o4MSQqlz6lQsRclJAIl-VV1Af-5WRA","id":"6733184353959936","title":"Waiting Area","has_anaglyph":false,"index":0},"4546473259696128":{"filename":"img20250520110112956jpg-1747818902656.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/img20250520110112956jpg-1747818902656.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/img20250520110112956jpg-1747818902656.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/thumb_img20250520110112956jpg-1747818902656.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/thumb_img20250520110112956jpg-1747818902656.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-05-21T09:15:02.657Z","updated_date":"2025-05-21T09:15:02.657Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5837535194382336%2Fimg20250520110112956jpg-1747818902656.JPG&uploadType=resumable&upload_id=AAO2VwqA8qMlHVGS_nW6bN7oEk2HWJh5lfoNl1mi5PxhhyoFi-0k8vgBD048J2UY2l0QAnV11nRvBMmH1gFthX8pr8gFA7eRjrbTqLWGj4OAZgU","id":"4546473259696128","title":"Hall","has_anaglyph":false,"index":1},"5329790770872320":{"filename":"img20250520110114040jpg-1747818902667.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/img20250520110114040jpg-1747818902667.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/img20250520110114040jpg-1747818902667.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/thumb_img20250520110114040jpg-1747818902667.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/thumb_img20250520110114040jpg-1747818902667.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-05-21T09:15:02.667Z","updated_date":"2025-05-21T09:15:02.667Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5837535194382336%2Fimg20250520110114040jpg-1747818902667.JPG&uploadType=resumable&upload_id=AAO2VwrEWrbybmlWIaOKGcd9V6_GhdEfsQBQNl7zV4VHiXe0WfzXr-xhuop2dSja7p8soZAMPhNl_KZz2iVgLy1-6ZpQKwC-opRxFkS9OhUBmA","id":"5329790770872320","title":"Classroom","has_anaglyph":false,"index":2},"6692719957114880":{"filename":"img20250520110115182jpg-1747818902642.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/img20250520110115182jpg-1747818902642.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/img20250520110115182jpg-1747818902642.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/thumb_img20250520110115182jpg-1747818902642.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5837535194382336/thumb_img20250520110115182jpg-1747818902642.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-05-21T09:15:02.643Z","updated_date":"2025-05-21T09:15:02.643Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5837535194382336%2Fimg20250520110115182jpg-1747818902642.JPG&uploadType=resumable&upload_id=AAO2VwrFinyGB0WaHbhLuUAv3PepA7ywrKGbOmuPoa0jWdhlHbdJ5ROdnU3ICoOZ524IKg4AaoVqVjRNkuYsS-yD-7A2zPZmcmKiw_chM2TuKA","id":"6692719957114880","title":"Reading Area","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 = "5837535194382336"; window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1"; window.customUrl = "https://kiddy123.com/"; window.tourSlug = "little-mandarin-house-jalan-ara-bangsar"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "L9bAPOre-"; 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['6733184353959936'] = 0; window.current_image_index = 0; window.current_image_id = 6733184353959936 window.photo_indexes['4546473259696128'] = 1; window.photo_indexes['5329790770872320'] = 2; window.photo_indexes['6692719957114880'] = 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/5837535194382336/thumb_img20250520110110470jpg-1747818902739.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":6733184353959936,"hotspots":[{"id":"hotspot_6733184353959936_4546473259696128","from":6733184353959936,"to":4546473259696128,"position":{"x":0.9991108443472916,"y":-0.026843283874579786,"z":-0.032510903070672864},"toTitle":"Hall"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1747929631209","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/5837535194382336/6733184353959936/plugin_4826070998056960_1747929631209/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4546473259696128,"hotspots":[{"id":"hotspot_4546473259696128_5329790770872320","from":4546473259696128,"to":5329790770872320,"position":{"x":0.38789592690345315,"y":0.002141453452165205,"z":0.9217006911513212},"toTitle":"Classroom"},{"id":"hotspot_4546473259696128_6692719957114880","from":4546473259696128,"to":6692719957114880,"position":{"x":-0.013176907675924474,"y":0.20673260649074648,"z":0.9783087439646251},"toTitle":"Reading Area"},{"id":"hotspot_4546473259696128_6733184353959936","from":4546473259696128,"to":6733184353959936,"position":{"x":-0.7933019694156568,"y":0.11962374540517677,"z":0.596960756546423},"toTitle":"Waiting Area"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1747929703811","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/5837535194382336/4546473259696128/plugin_4826070998056960_1747929703811/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":5329790770872320,"hotspots":[{"id":"hotspot_5329790770872320_4546473259696128","from":5329790770872320,"to":4546473259696128,"position":{"x":-0.8759589696321702,"y":-0.10581813588190551,"z":0.4706361711974817},"toTitle":"Hall"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1747929734294","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/5837535194382336/5329790770872320/plugin_4826070998056960_1747929734294/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":6692719957114880,"hotspots":[{"id":"hotspot_6692719957114880_4546473259696128","from":6692719957114880,"to":4546473259696128,"position":{"x":-0.9456124099767083,"y":-0.18973350453139065,"z":-0.26423165472039617},"toTitle":"Hall"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1747929763073","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/5837535194382336/6692719957114880/plugin_4826070998056960_1747929763073/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;