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":"img20250227144045682-2jpg-1740729915007.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/img20250227144045682-2jpg-1740729915007.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/img20250227144045682-2jpg-1740729915007.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/thumb_img20250227144045682-2jpg-1740729915007.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/thumb_img20250227144045682-2jpg-1740729915007.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-02-28T08:05:15.007Z","updated_date":"2025-02-28T08:05:15.007Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4838177606991872%2Fimg20250227144045682-2jpg-1740729915007.JPG&uploadType=resumable&upload_id=AHMx-iFpavNqcACB-remGAzIKdSHN9o4tRMPvYqlfDgPfdedxzlUxU_yWzcLXVsau41E8q25IduAtJZVGh-MiDS_5p4G4zmP6vjSfBaZR3S7Kq4","id":"6025552320266240","title":"Reception","has_anaglyph":false,"index":0},{"filename":"img20250227144050206-2jpg-1740729918784.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/img20250227144050206-2jpg-1740729918784.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/img20250227144050206-2jpg-1740729918784.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/thumb_img20250227144050206-2jpg-1740729918784.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/thumb_img20250227144050206-2jpg-1740729918784.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-02-28T08:05:18.787Z","updated_date":"2025-02-28T08:05:18.787Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4838177606991872%2Fimg20250227144050206-2jpg-1740729918784.JPG&uploadType=resumable&upload_id=AHMx-iHFfIyhCCz8UlnePEbDclcm1thmV76NMH5jtf2blnF8ZzntJXSpHGYGWM5X3hXTombXVpg5uarqEzdoZFJIz2DYyWyHyqPAR782X1e7nwA","id":"4852709091966976","title":"Classroom 1","has_anaglyph":false,"index":1},{"filename":"img20250227144048739-2jpg-1740729918728.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/img20250227144048739-2jpg-1740729918728.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/img20250227144048739-2jpg-1740729918728.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/thumb_img20250227144048739-2jpg-1740729918728.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/thumb_img20250227144048739-2jpg-1740729918728.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-02-28T08:05:18.731Z","updated_date":"2025-02-28T08:05:18.731Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4838177606991872%2Fimg20250227144048739-2jpg-1740729918728.JPG&uploadType=resumable&upload_id=AHMx-iG0_7H439ou1ZyMWy6sIILLOk6u4YD4PIAC2s3yyKKN6smUExNXJeGrFo_o1C5_1hIPfy4--p5XQCjN9DduIoF8c4mlCESkaoVRoG8fHA","id":"6022295325769728","title":"Hall","has_anaglyph":false,"index":2},{"filename":"img20250227144047246-2jpg-1740729915096.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/img20250227144047246-2jpg-1740729915096.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/img20250227144047246-2jpg-1740729915096.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/thumb_img20250227144047246-2jpg-1740729915096.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/thumb_img20250227144047246-2jpg-1740729915096.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-02-28T08:05:15.097Z","updated_date":"2025-02-28T08:05:15.097Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4838177606991872%2Fimg20250227144047246-2jpg-1740729915096.JPG&uploadType=resumable&upload_id=AHMx-iEUU_UqwC2-2RDkDZwSX09uFPy7Z-1v84VWNgO_N1C-eUa_2J_ALdi4jpv0-pnouePDJSxaFz4uDHKbra1WPJJEY_MedfDrW34GaX6tw2Q","id":"5462602366844928","title":"Classroom 2","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"6025552320266240":{"filename":"img20250227144045682-2jpg-1740729915007.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/img20250227144045682-2jpg-1740729915007.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/img20250227144045682-2jpg-1740729915007.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/thumb_img20250227144045682-2jpg-1740729915007.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/thumb_img20250227144045682-2jpg-1740729915007.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-02-28T08:05:15.007Z","updated_date":"2025-02-28T08:05:15.007Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4838177606991872%2Fimg20250227144045682-2jpg-1740729915007.JPG&uploadType=resumable&upload_id=AHMx-iFpavNqcACB-remGAzIKdSHN9o4tRMPvYqlfDgPfdedxzlUxU_yWzcLXVsau41E8q25IduAtJZVGh-MiDS_5p4G4zmP6vjSfBaZR3S7Kq4","id":"6025552320266240","title":"Reception","has_anaglyph":false,"index":0},"5462602366844928":{"filename":"img20250227144047246-2jpg-1740729915096.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/img20250227144047246-2jpg-1740729915096.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/img20250227144047246-2jpg-1740729915096.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/thumb_img20250227144047246-2jpg-1740729915096.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/thumb_img20250227144047246-2jpg-1740729915096.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-02-28T08:05:15.097Z","updated_date":"2025-02-28T08:05:15.097Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4838177606991872%2Fimg20250227144047246-2jpg-1740729915096.JPG&uploadType=resumable&upload_id=AHMx-iEUU_UqwC2-2RDkDZwSX09uFPy7Z-1v84VWNgO_N1C-eUa_2J_ALdi4jpv0-pnouePDJSxaFz4uDHKbra1WPJJEY_MedfDrW34GaX6tw2Q","id":"5462602366844928","title":"Classroom 2","has_anaglyph":false,"index":3},"6022295325769728":{"filename":"img20250227144048739-2jpg-1740729918728.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/img20250227144048739-2jpg-1740729918728.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/img20250227144048739-2jpg-1740729918728.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/thumb_img20250227144048739-2jpg-1740729918728.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/thumb_img20250227144048739-2jpg-1740729918728.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-02-28T08:05:18.731Z","updated_date":"2025-02-28T08:05:18.731Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4838177606991872%2Fimg20250227144048739-2jpg-1740729918728.JPG&uploadType=resumable&upload_id=AHMx-iG0_7H439ou1ZyMWy6sIILLOk6u4YD4PIAC2s3yyKKN6smUExNXJeGrFo_o1C5_1hIPfy4--p5XQCjN9DduIoF8c4mlCESkaoVRoG8fHA","id":"6022295325769728","title":"Hall","has_anaglyph":false,"index":2},"4852709091966976":{"filename":"img20250227144050206-2jpg-1740729918784.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/img20250227144050206-2jpg-1740729918784.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/img20250227144050206-2jpg-1740729918784.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/thumb_img20250227144050206-2jpg-1740729918784.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4838177606991872/thumb_img20250227144050206-2jpg-1740729918784.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-02-28T08:05:18.787Z","updated_date":"2025-02-28T08:05:18.787Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4838177606991872%2Fimg20250227144050206-2jpg-1740729918784.JPG&uploadType=resumable&upload_id=AHMx-iHFfIyhCCz8UlnePEbDclcm1thmV76NMH5jtf2blnF8ZzntJXSpHGYGWM5X3hXTombXVpg5uarqEzdoZFJIz2DYyWyHyqPAR782X1e7nwA","id":"4852709091966976","title":"Classroom 1","has_anaglyph":false,"index":1}}; 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 = "4838177606991872"; window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1"; window.customUrl = "https://kiddy123.com/"; window.tourSlug = "mrc-jsp-bdr-sri-damansara"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "964JbujRK"; 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['6025552320266240'] = 0; window.current_image_index = 0; window.current_image_id = 6025552320266240 window.photo_indexes['4852709091966976'] = 1; window.photo_indexes['6022295325769728'] = 2; window.photo_indexes['5462602366844928'] = 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/4838177606991872/thumb_img20250227144045682-2jpg-1740729915007.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":6025552320266240,"hotspots":[{"id":"hotspot_6025552320266240_5462602366844928","from":6025552320266240,"to":5462602366844928,"position":{"x":0.6411850868166499,"y":-0.04864409162639123,"z":0.7658429583104934},"toTitle":"Classroom 2"},{"id":"hotspot_6025552320266240_6022295325769728","from":6025552320266240,"to":6022295325769728,"position":{"x":0.6812638372852797,"y":-0.03202677023989061,"z":-0.7313370426795959},"toTitle":"Hall"},{"id":"hotspot_6025552320266240_4852709091966976","from":6025552320266240,"to":4852709091966976,"position":{"x":0.9372373463772148,"y":-0.1501966014231782,"z":0.314685775777558},"toTitle":"Classroom 1"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1740730786830","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/4838177606991872/6025552320266240/plugin_4826070998056960_1740730786830/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4852709091966976,"hotspots":[{"id":"hotspot_4852709091966976_6025552320266240","from":4852709091966976,"to":6025552320266240,"position":{"x":-0.3552213738856121,"y":0.03398022123891931,"z":-0.93416439672007},"toTitle":"Reception"},{"id":"hotspot_4852709091966976_6022295325769728","from":4852709091966976,"to":6022295325769728,"position":{"x":0.8958279805742044,"y":0.003223884919048184,"z":-0.4443892840588887},"toTitle":"Hall"},{"id":"hotspot_4852709091966976_5462602366844928","from":4852709091966976,"to":5462602366844928,"position":{"x":-0.8905975195829232,"y":-0.028675863065402492,"z":-0.45388737919245864},"toTitle":"Classroom 2"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1740730819381","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/4838177606991872/4852709091966976/plugin_4826070998056960_1740730819381/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":6022295325769728,"hotspots":[{"id":"hotspot_6022295325769728_6025552320266240","from":6022295325769728,"to":6025552320266240,"position":{"x":0.8205170872820503,"y":-0.1927018480539875,"z":-0.5381614137363978},"toTitle":"Reception"},{"id":"hotspot_6022295325769728_4852709091966976","from":6022295325769728,"to":4852709091966976,"position":{"x":0.21473356659780463,"y":0.07124892621267642,"z":-0.9740703700912612},"toTitle":"Classroom 1"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1740730847021","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/4838177606991872/6022295325769728/plugin_4826070998056960_1740730847021/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":5462602366844928,"hotspots":[{"id":"hotspot_5462602366844928_6025552320266240","from":5462602366844928,"to":6025552320266240,"position":{"x":0.2715297692484723,"y":0.037342884163999536,"z":-0.9617053048695245},"toTitle":"Reception"},{"id":"hotspot_5462602366844928_4852709091966976","from":5462602366844928,"to":4852709091966976,"position":{"x":0.9312864382135706,"y":-0.030219969255868385,"z":-0.36303212455326317},"toTitle":"Classroom 1"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1740730888747","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/4838177606991872/5462602366844928/plugin_4826070998056960_1740730888747/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;