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":"img20250521110308788jpg-1747818934230.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/img20250521110308788jpg-1747818934230.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/img20250521110308788jpg-1747818934230.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/thumb_img20250521110308788jpg-1747818934230.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/thumb_img20250521110308788jpg-1747818934230.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-05-21T09:15:34.232Z","updated_date":"2025-05-21T09:15:34.232Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4787156918730752%2Fimg20250521110308788jpg-1747818934230.JPG&uploadType=resumable&upload_id=AAO2Vwp5Gg-_BiYi0Yx-wG5P466ZuraiWsf6XHDOvvbE66dOB3-4VEF_gWjykX947lPqQZC-G_LsaFKzDonWTyDZYRcChkd_NSY1fsQPRIAiyA","id":"4696528746708992","title":"Porch Area","has_anaglyph":false,"index":0},{"filename":"img20250521110312441jpg-1747818931082.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/img20250521110312441jpg-1747818931082.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/img20250521110312441jpg-1747818931082.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/thumb_img20250521110312441jpg-1747818931082.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/thumb_img20250521110312441jpg-1747818931082.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-05-21T09:15:31.083Z","updated_date":"2025-05-21T09:15:31.083Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4787156918730752%2Fimg20250521110312441jpg-1747818931082.JPG&uploadType=resumable&upload_id=AAO2VwoCNc_tNZY-QesuSWLtAiLatqu3f9hL6d9lflLrdNDv-NMB4BkdjK5lCTObfw-1bxj-OFd7y_BqQqEmQl9yZgx-ZCrpNYk6-iUncpLH2A","id":"6003918066679808","title":"Classroom 1","has_anaglyph":false,"index":1},{"filename":"img20250521110310088jpg-1747818931074.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/img20250521110310088jpg-1747818931074.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/img20250521110310088jpg-1747818931074.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/thumb_img20250521110310088jpg-1747818931074.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/thumb_img20250521110310088jpg-1747818931074.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-05-21T09:15:31.075Z","updated_date":"2025-05-21T09:15:31.075Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4787156918730752%2Fimg20250521110310088jpg-1747818931074.JPG&uploadType=resumable&upload_id=AAO2VwrdZj8h9fwTTy24w8bG1a_wWE60ugKgwd7aeheVaDyuSA1S81VFvNK0SlLx8na0KN1j4ImkwlOB6iGXY5sfhc0SbNUesiCmuVgnj2labQ","id":"6385360722460672","title":"Classroom 2","has_anaglyph":false,"index":2},{"filename":"img20250521110311221jpg-1747818931091.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/img20250521110311221jpg-1747818931091.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/img20250521110311221jpg-1747818931091.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/thumb_img20250521110311221jpg-1747818931091.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/thumb_img20250521110311221jpg-1747818931091.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-05-21T09:15:31.091Z","updated_date":"2025-05-21T09:15:31.091Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4787156918730752%2Fimg20250521110311221jpg-1747818931091.JPG&uploadType=resumable&upload_id=AAO2VwpbONafSeTxf93It_JtE5HmLHst6UNf_hSxfiGQxzUCTC6R8ExfRbtTuOfhRCCutLdqu_6yykd-PRhZtoi5KK4ovlQEhyq12XkaVI9eBg","id":"4956763600191488","title":"Classroom 3","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"4696528746708992":{"filename":"img20250521110308788jpg-1747818934230.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/img20250521110308788jpg-1747818934230.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/img20250521110308788jpg-1747818934230.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/thumb_img20250521110308788jpg-1747818934230.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/thumb_img20250521110308788jpg-1747818934230.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-05-21T09:15:34.232Z","updated_date":"2025-05-21T09:15:34.232Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4787156918730752%2Fimg20250521110308788jpg-1747818934230.JPG&uploadType=resumable&upload_id=AAO2Vwp5Gg-_BiYi0Yx-wG5P466ZuraiWsf6XHDOvvbE66dOB3-4VEF_gWjykX947lPqQZC-G_LsaFKzDonWTyDZYRcChkd_NSY1fsQPRIAiyA","id":"4696528746708992","title":"Porch Area","has_anaglyph":false,"index":0},"6385360722460672":{"filename":"img20250521110310088jpg-1747818931074.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/img20250521110310088jpg-1747818931074.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/img20250521110310088jpg-1747818931074.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/thumb_img20250521110310088jpg-1747818931074.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/thumb_img20250521110310088jpg-1747818931074.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-05-21T09:15:31.075Z","updated_date":"2025-05-21T09:15:31.075Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4787156918730752%2Fimg20250521110310088jpg-1747818931074.JPG&uploadType=resumable&upload_id=AAO2VwrdZj8h9fwTTy24w8bG1a_wWE60ugKgwd7aeheVaDyuSA1S81VFvNK0SlLx8na0KN1j4ImkwlOB6iGXY5sfhc0SbNUesiCmuVgnj2labQ","id":"6385360722460672","title":"Classroom 2","has_anaglyph":false,"index":2},"4956763600191488":{"filename":"img20250521110311221jpg-1747818931091.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/img20250521110311221jpg-1747818931091.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/img20250521110311221jpg-1747818931091.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/thumb_img20250521110311221jpg-1747818931091.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/thumb_img20250521110311221jpg-1747818931091.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-05-21T09:15:31.091Z","updated_date":"2025-05-21T09:15:31.091Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4787156918730752%2Fimg20250521110311221jpg-1747818931091.JPG&uploadType=resumable&upload_id=AAO2VwpbONafSeTxf93It_JtE5HmLHst6UNf_hSxfiGQxzUCTC6R8ExfRbtTuOfhRCCutLdqu_6yykd-PRhZtoi5KK4ovlQEhyq12XkaVI9eBg","id":"4956763600191488","title":"Classroom 3","has_anaglyph":false,"index":3},"6003918066679808":{"filename":"img20250521110312441jpg-1747818931082.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/img20250521110312441jpg-1747818931082.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/img20250521110312441jpg-1747818931082.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/thumb_img20250521110312441jpg-1747818931082.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4787156918730752/thumb_img20250521110312441jpg-1747818931082.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-05-21T09:15:31.083Z","updated_date":"2025-05-21T09:15:31.083Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4787156918730752%2Fimg20250521110312441jpg-1747818931082.JPG&uploadType=resumable&upload_id=AAO2VwoCNc_tNZY-QesuSWLtAiLatqu3f9hL6d9lflLrdNDv-NMB4BkdjK5lCTObfw-1bxj-OFd7y_BqQqEmQl9yZgx-ZCrpNYk6-iUncpLH2A","id":"6003918066679808","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 = "4787156918730752"; window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1"; window.customUrl = "https://kiddy123.com/"; window.tourSlug = "tadika-yume-kota-kemuning"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "MZ7M5_nYh"; 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['4696528746708992'] = 0; window.current_image_index = 0; window.current_image_id = 4696528746708992 window.photo_indexes['6003918066679808'] = 1; window.photo_indexes['6385360722460672'] = 2; window.photo_indexes['4956763600191488'] = 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/4787156918730752/thumb_img20250521110308788jpg-1747818934230.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":4696528746708992,"hotspots":[{"id":"hotspot_4696528746708992_6003918066679808","from":4696528746708992,"to":6003918066679808,"position":{"x":-0.2500113619184299,"y":-0.02915761316769418,"z":-0.9678037778940806},"toTitle":"Classroom 1"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1747930224476","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/4787156918730752/4696528746708992/plugin_4826070998056960_1747930224476/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":6003918066679808,"hotspots":[{"id":"hotspot_6003918066679808_4696528746708992","from":6003918066679808,"to":4696528746708992,"position":{"x":0.9583184445599512,"y":-0.05834892290514504,"z":-0.27968046412290815},"toTitle":"Porch Area"},{"id":"hotspot_6003918066679808_6385360722460672","from":6003918066679808,"to":6385360722460672,"position":{"x":-0.8237403243231588,"y":-0.022811485615105598,"z":0.5665081766470887},"toTitle":"Classroom 2"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1747930371389","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/4787156918730752/6003918066679808/plugin_4826070998056960_1747930371389/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":6385360722460672,"hotspots":[{"id":"hotspot_6385360722460672_6003918066679808","from":6385360722460672,"to":6003918066679808,"position":{"x":0.9156987357909683,"y":0.06735562826412846,"z":0.39618057071487894},"toTitle":"Classroom 1"},{"id":"hotspot_6385360722460672_4956763600191488","from":6385360722460672,"to":4956763600191488,"position":{"x":0.8126641764018663,"y":-0.13861034038065217,"z":0.5660071642061045},"toTitle":"Classroom 3"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1747930401497","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/4787156918730752/6385360722460672/plugin_4826070998056960_1747930401497/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4956763600191488,"hotspots":[{"id":"hotspot_4956763600191488_6385360722460672","from":4956763600191488,"to":6385360722460672,"position":{"x":-0.9847851400221195,"y":-0.022878294481544853,"z":0.17226378503106793},"toTitle":"Classroom 2"},{"id":"hotspot_4956763600191488_6003918066679808","from":4956763600191488,"to":6003918066679808,"position":{"x":-0.8802569323828345,"y":-0.12954463554004395,"z":0.4564711605290732},"toTitle":"Classroom 1"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1747930424413","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/4787156918730752/4956763600191488/plugin_4826070998056960_1747930424413/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;