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":"img20250625163402555jpg-1750841426085.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/img20250625163402555jpg-1750841426085.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/img20250625163402555jpg-1750841426085.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/thumb_img20250625163402555jpg-1750841426085.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/thumb_img20250625163402555jpg-1750841426085.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-06-25T08:50:26.086Z","updated_date":"2025-06-25T08:50:26.086Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5511410744295424%2Fimg20250625163402555jpg-1750841426085.jpg&uploadType=resumable&upload_id=ABgVH8_UToGUK62o3QlTEXf8h_rkjRamakBzwIPtRYVhlYQmQ2I-Odluw-oOMLzapcORszZEn5uapYpoi9qXc9kWMw6OoLWH7TMAyDtIwWIAOQ","id":"4925856612876288","title":"Playground","has_anaglyph":false,"index":0},{"filename":"img20250625163338236jpg-1750841426218.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/img20250625163338236jpg-1750841426218.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/img20250625163338236jpg-1750841426218.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/thumb_img20250625163338236jpg-1750841426218.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/thumb_img20250625163338236jpg-1750841426218.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-06-25T08:50:26.218Z","updated_date":"2025-06-25T08:50:26.218Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5511410744295424%2Fimg20250625163338236jpg-1750841426218.jpg&uploadType=resumable&upload_id=ABgVH88ciBpkXUm583l-2HFTK1Z10aL_Say7jja3yZCvRcLrNR88xc0gwkr0uwHim9rb4LI8FANka_y2rPNKVRMVg1RxylWBE_7hxC29ByL9LHs","id":"6051756519718912","title":"6 Y/O Classroom","has_anaglyph":false,"index":1},{"filename":"img20250625163324958jpg-1750841426070.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/img20250625163324958jpg-1750841426070.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/img20250625163324958jpg-1750841426070.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/thumb_img20250625163324958jpg-1750841426070.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/thumb_img20250625163324958jpg-1750841426070.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-06-25T08:50:26.070Z","updated_date":"2025-06-25T08:50:26.070Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5511410744295424%2Fimg20250625163324958jpg-1750841426070.jpg&uploadType=resumable&upload_id=ABgVH89LrZlqMTnLw8U5qSLj1ShshBJ-H2TDJZf5_MYE-pEfBhbbJV0Mogl7roWDq-tYoUGaT7FT30k30XMMYyzLKvepJ2uEBmOzYM6Shxx2eNw","id":"6600906520920064","title":"4 Y/O Classroom","has_anaglyph":false,"index":2},{"filename":"img20250625163349828jpg-1750841426170.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/img20250625163349828jpg-1750841426170.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/img20250625163349828jpg-1750841426170.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/thumb_img20250625163349828jpg-1750841426170.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/thumb_img20250625163349828jpg-1750841426170.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-06-25T08:50:26.171Z","updated_date":"2025-06-25T08:50:26.171Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5511410744295424%2Fimg20250625163349828jpg-1750841426170.jpg&uploadType=resumable&upload_id=ABgVH892Qu34PVdOX3WrUsjZNs5ujP6cqzA-mdbyEQm1mtO7ZgAc1cKXtmrWQbD_a1Oc3KKKzQKiIypjAe2lSobxN8UYvXzr5MswCyrFOnpBnPo","id":"4851029189328896","title":"5 Y/O Classroom","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"6600906520920064":{"filename":"img20250625163324958jpg-1750841426070.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/img20250625163324958jpg-1750841426070.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/img20250625163324958jpg-1750841426070.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/thumb_img20250625163324958jpg-1750841426070.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/thumb_img20250625163324958jpg-1750841426070.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-06-25T08:50:26.070Z","updated_date":"2025-06-25T08:50:26.070Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5511410744295424%2Fimg20250625163324958jpg-1750841426070.jpg&uploadType=resumable&upload_id=ABgVH89LrZlqMTnLw8U5qSLj1ShshBJ-H2TDJZf5_MYE-pEfBhbbJV0Mogl7roWDq-tYoUGaT7FT30k30XMMYyzLKvepJ2uEBmOzYM6Shxx2eNw","id":"6600906520920064","title":"4 Y/O Classroom","has_anaglyph":false,"index":2},"6051756519718912":{"filename":"img20250625163338236jpg-1750841426218.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/img20250625163338236jpg-1750841426218.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/img20250625163338236jpg-1750841426218.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/thumb_img20250625163338236jpg-1750841426218.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/thumb_img20250625163338236jpg-1750841426218.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-06-25T08:50:26.218Z","updated_date":"2025-06-25T08:50:26.218Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5511410744295424%2Fimg20250625163338236jpg-1750841426218.jpg&uploadType=resumable&upload_id=ABgVH88ciBpkXUm583l-2HFTK1Z10aL_Say7jja3yZCvRcLrNR88xc0gwkr0uwHim9rb4LI8FANka_y2rPNKVRMVg1RxylWBE_7hxC29ByL9LHs","id":"6051756519718912","title":"6 Y/O Classroom","has_anaglyph":false,"index":1},"4851029189328896":{"filename":"img20250625163349828jpg-1750841426170.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/img20250625163349828jpg-1750841426170.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/img20250625163349828jpg-1750841426170.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/thumb_img20250625163349828jpg-1750841426170.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/thumb_img20250625163349828jpg-1750841426170.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-06-25T08:50:26.171Z","updated_date":"2025-06-25T08:50:26.171Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5511410744295424%2Fimg20250625163349828jpg-1750841426170.jpg&uploadType=resumable&upload_id=ABgVH892Qu34PVdOX3WrUsjZNs5ujP6cqzA-mdbyEQm1mtO7ZgAc1cKXtmrWQbD_a1Oc3KKKzQKiIypjAe2lSobxN8UYvXzr5MswCyrFOnpBnPo","id":"4851029189328896","title":"5 Y/O Classroom","has_anaglyph":false,"index":3},"4925856612876288":{"filename":"img20250625163402555jpg-1750841426085.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/img20250625163402555jpg-1750841426085.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/img20250625163402555jpg-1750841426085.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/thumb_img20250625163402555jpg-1750841426085.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5511410744295424/thumb_img20250625163402555jpg-1750841426085.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-06-25T08:50:26.086Z","updated_date":"2025-06-25T08:50:26.086Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5511410744295424%2Fimg20250625163402555jpg-1750841426085.jpg&uploadType=resumable&upload_id=ABgVH8_UToGUK62o3QlTEXf8h_rkjRamakBzwIPtRYVhlYQmQ2I-Odluw-oOMLzapcORszZEn5uapYpoi9qXc9kWMw6OoLWH7TMAyDtIwWIAOQ","id":"4925856612876288","title":"Playground","has_anaglyph":false,"index":0}}; 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 = "5511410744295424"; window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1"; window.customUrl = "https://kiddy123.com/"; window.tourSlug = "tadika-titisan-maju-puchong"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "F2YKo7BO9"; 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['4925856612876288'] = 0; window.current_image_index = 0; window.current_image_id = 4925856612876288 window.photo_indexes['6051756519718912'] = 1; window.photo_indexes['6600906520920064'] = 2; window.photo_indexes['4851029189328896'] = 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/5511410744295424/thumb_img20250625163402555jpg-1750841426085.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":4925856612876288,"hotspots":[{"id":"hotspot_4925856612876288_6051756519718912","from":4925856612876288,"to":6051756519718912,"position":{"x":0.5012398785732602,"y":-0.01789760367899913,"z":-0.8651232628420142},"toTitle":"6 Y/O Classroom"},{"id":"hotspot_4925856612876288_6600906520920064","from":4925856612876288,"to":6600906520920064,"position":{"x":0.9416259387664986,"y":0.01751088343125711,"z":-0.33620523553860265},"toTitle":"4 Y/O Classroom"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1750842164479","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/5511410744295424/4925856612876288/plugin_4826070998056960_1750842164479/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":6051756519718912,"hotspots":[{"id":"hotspot_6051756519718912_6600906520920064","from":6051756519718912,"to":6600906520920064,"position":{"x":0.8884163533155569,"y":-0.02306646172594137,"z":-0.4584586366346839},"toTitle":"4 Y/O Classroom"},{"id":"hotspot_6051756519718912_4851029189328896","from":6051756519718912,"to":4851029189328896,"position":{"x":0.9810781306954997,"y":0.16435697534968416,"z":-0.10233516563199246},"toTitle":"5 Y/O Classroom"},{"id":"hotspot_6051756519718912_4925856612876288","from":6051756519718912,"to":4925856612876288,"position":{"x":-0.9947331624451222,"y":-0.01822955922554404,"z":0.1008643579386109},"toTitle":"Playground"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1750842202903","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/5511410744295424/6051756519718912/plugin_4826070998056960_1750842202903/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":6600906520920064,"hotspots":[{"id":"hotspot_6600906520920064_6051756519718912","from":6600906520920064,"to":6051756519718912,"position":{"x":-0.9947641863150156,"y":-0.045832706753250047,"z":-0.09134318046080797},"toTitle":"6 Y/O Classroom"},{"id":"hotspot_6600906520920064_4851029189328896","from":6600906520920064,"to":4851029189328896,"position":{"x":-0.7232753460187574,"y":-0.07458590926879168,"z":0.6865200040639708},"toTitle":"5 Y/O Classroom"},{"id":"hotspot_6600906520920064_4925856612876288","from":6600906520920064,"to":4925856612876288,"position":{"x":-0.484004098450531,"y":0.02270858225871356,"z":0.8747710288840663},"toTitle":"Playground"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1750842230887","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/5511410744295424/6600906520920064/plugin_4826070998056960_1750842230887/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4851029189328896,"hotspots":[{"id":"hotspot_4851029189328896_4925856612876288","from":4851029189328896,"to":4925856612876288,"position":{"x":0.011674031049115987,"y":-0.02732243859267355,"z":-0.9995585032145012},"toTitle":"Playground"},{"id":"hotspot_4851029189328896_6051756519718912","from":4851029189328896,"to":6051756519718912,"position":{"x":0.9619989089311948,"y":-0.05359436714309023,"z":0.2677419336333448},"toTitle":"6 Y/O Classroom"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1750842282129","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/5511410744295424/4851029189328896/plugin_4826070998056960_1750842282129/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;