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":"img20250320103438066jpg-1742474132803.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/img20250320103438066jpg-1742474132803.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/img20250320103438066jpg-1742474132803.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/thumb_img20250320103438066jpg-1742474132803.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/thumb_img20250320103438066jpg-1742474132803.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-03-20T12:35:32.804Z","updated_date":"2025-03-20T12:35:32.804Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4929775502098432%2Fimg20250320103438066jpg-1742474132803.JPG&uploadType=resumable&upload_id=AKDAyIuSjxdiif_meF2R43gJKsHPkqbyIPwLw9UVZRynkQKoFlgcdM4Is1hFumuIwtTaEeFg980C9HQToMvRsWqJ4QQUEpGJqZe-xrXBQ48l-LI","id":"6124446492393472","title":"Classroom 1","has_anaglyph":false,"index":0},{"filename":"img20250320103444934jpg-1742474132676.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/img20250320103444934jpg-1742474132676.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/img20250320103444934jpg-1742474132676.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/thumb_img20250320103444934jpg-1742474132676.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/thumb_img20250320103444934jpg-1742474132676.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-03-20T12:35:32.677Z","updated_date":"2025-03-20T12:35:32.677Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4929775502098432%2Fimg20250320103444934jpg-1742474132676.JPG&uploadType=resumable&upload_id=AKDAyIt3Ua7uFXprScxTDIukUdVu51I0oEUAmvQ7vihx7Vu2_SiEnvxRMwKt9GI6X7xBcBcv5nA-vHeRpWa6NTccHDF62lp1MgBMyYmDn0Nzvg","id":"6658929402576896","title":"Classroom 2","has_anaglyph":false,"index":1},{"filename":"img20250320103440524jpg-1742474132686.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/img20250320103440524jpg-1742474132686.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/img20250320103440524jpg-1742474132686.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/thumb_img20250320103440524jpg-1742474132686.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/thumb_img20250320103440524jpg-1742474132686.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-03-20T12:35:32.687Z","updated_date":"2025-03-20T12:35:32.687Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4929775502098432%2Fimg20250320103440524jpg-1742474132686.JPG&uploadType=resumable&upload_id=AKDAyIt6T4fWPLTAwSPFxnNvSjOxNHuG9qyONnRTZ4AOwVNxx-pGM1ukBpWOruXiPCtBPwZRQUCffmGPlMudDMc6aV4NefcFNCcNcexQ3nBUKQ","id":"4998546585550848","title":"Library","has_anaglyph":false,"index":2},{"filename":"img20250320103442781jpg-1742474132775.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/img20250320103442781jpg-1742474132775.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/img20250320103442781jpg-1742474132775.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/thumb_img20250320103442781jpg-1742474132775.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/thumb_img20250320103442781jpg-1742474132775.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-03-20T12:35:32.776Z","updated_date":"2025-03-20T12:35:32.776Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4929775502098432%2Fimg20250320103442781jpg-1742474132775.JPG&uploadType=resumable&upload_id=AKDAyIvqseVVv2JYWLrfk7KTMg3LXO8gducB8Q9oddOSAk6TilM4lecTOmdgzDyCJqwMd49U2r3uBdyIzEOQQ0Eb4dY_rY09YjGu6bNAu45e1A","id":"4938680714133504","title":"Hall","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"6124446492393472":{"filename":"img20250320103438066jpg-1742474132803.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/img20250320103438066jpg-1742474132803.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/img20250320103438066jpg-1742474132803.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/thumb_img20250320103438066jpg-1742474132803.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/thumb_img20250320103438066jpg-1742474132803.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-03-20T12:35:32.804Z","updated_date":"2025-03-20T12:35:32.804Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4929775502098432%2Fimg20250320103438066jpg-1742474132803.JPG&uploadType=resumable&upload_id=AKDAyIuSjxdiif_meF2R43gJKsHPkqbyIPwLw9UVZRynkQKoFlgcdM4Is1hFumuIwtTaEeFg980C9HQToMvRsWqJ4QQUEpGJqZe-xrXBQ48l-LI","id":"6124446492393472","title":"Classroom 1","has_anaglyph":false,"index":0},"4998546585550848":{"filename":"img20250320103440524jpg-1742474132686.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/img20250320103440524jpg-1742474132686.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/img20250320103440524jpg-1742474132686.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/thumb_img20250320103440524jpg-1742474132686.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/thumb_img20250320103440524jpg-1742474132686.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-03-20T12:35:32.687Z","updated_date":"2025-03-20T12:35:32.687Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4929775502098432%2Fimg20250320103440524jpg-1742474132686.JPG&uploadType=resumable&upload_id=AKDAyIt6T4fWPLTAwSPFxnNvSjOxNHuG9qyONnRTZ4AOwVNxx-pGM1ukBpWOruXiPCtBPwZRQUCffmGPlMudDMc6aV4NefcFNCcNcexQ3nBUKQ","id":"4998546585550848","title":"Library","has_anaglyph":false,"index":2},"4938680714133504":{"filename":"img20250320103442781jpg-1742474132775.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/img20250320103442781jpg-1742474132775.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/img20250320103442781jpg-1742474132775.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/thumb_img20250320103442781jpg-1742474132775.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/thumb_img20250320103442781jpg-1742474132775.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-03-20T12:35:32.776Z","updated_date":"2025-03-20T12:35:32.776Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4929775502098432%2Fimg20250320103442781jpg-1742474132775.JPG&uploadType=resumable&upload_id=AKDAyIvqseVVv2JYWLrfk7KTMg3LXO8gducB8Q9oddOSAk6TilM4lecTOmdgzDyCJqwMd49U2r3uBdyIzEOQQ0Eb4dY_rY09YjGu6bNAu45e1A","id":"4938680714133504","title":"Hall","has_anaglyph":false,"index":3},"6658929402576896":{"filename":"img20250320103444934jpg-1742474132676.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/img20250320103444934jpg-1742474132676.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/img20250320103444934jpg-1742474132676.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/thumb_img20250320103444934jpg-1742474132676.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4929775502098432/thumb_img20250320103444934jpg-1742474132676.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-03-20T12:35:32.677Z","updated_date":"2025-03-20T12:35:32.677Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4929775502098432%2Fimg20250320103444934jpg-1742474132676.JPG&uploadType=resumable&upload_id=AKDAyIt3Ua7uFXprScxTDIukUdVu51I0oEUAmvQ7vihx7Vu2_SiEnvxRMwKt9GI6X7xBcBcv5nA-vHeRpWa6NTccHDF62lp1MgBMyYmDn0Nzvg","id":"6658929402576896","title":"Classroom 2","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 = "4929775502098432"; window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1"; window.customUrl = "https://kiddy123.com/"; window.tourSlug = "tadika-kastil-bukit-indah"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "fHIRXfwdy"; 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['6124446492393472'] = 0; window.current_image_index = 0; window.current_image_id = 6124446492393472 window.photo_indexes['6658929402576896'] = 1; window.photo_indexes['4998546585550848'] = 2; window.photo_indexes['4938680714133504'] = 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/4929775502098432/thumb_img20250320103438066jpg-1742474132803.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":6124446492393472,"hotspots":[{"id":"hotspot_6124446492393472_6658929402576896","from":6124446492393472,"to":6658929402576896,"position":{"x":0.80465607299079,"y":0.0002016361765737748,"z":0.5937411587062941},"toTitle":"Classroom 2"},{"id":"hotspot_6124446492393472_4998546585550848","from":6124446492393472,"to":4998546585550848,"position":{"x":0.7667704635128567,"y":0.09287201744762377,"z":-0.635167572109508},"toTitle":"Library"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1742826825963","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/4929775502098432/6124446492393472/plugin_4826070998056960_1742826825963/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":6658929402576896,"hotspots":[{"id":"hotspot_6658929402576896_6124446492393472","from":6658929402576896,"to":6124446492393472,"position":{"x":-0.937921279861513,"y":-0.0438626184015276,"z":-0.34406357477928906},"toTitle":"Classroom 1"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1742826854280","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/4929775502098432/6658929402576896/plugin_4826070998056960_1742826854280/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4998546585550848,"hotspots":[{"id":"hotspot_4998546585550848_4938680714133504","from":4998546585550848,"to":4938680714133504,"position":{"x":-0.5743731279925045,"y":0.03300205414052217,"z":0.8179280984674704},"toTitle":"Hall"},{"id":"hotspot_4998546585550848_6658929402576896","from":4998546585550848,"to":6658929402576896,"position":{"x":-0.9314508189705347,"y":-0.019604176524134546,"z":-0.3633387511702142},"toTitle":"Classroom 2"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1742826884581","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/4929775502098432/4998546585550848/plugin_4826070998056960_1742826884581/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4938680714133504,"hotspots":[],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1742826910979","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/4929775502098432/4938680714133504/plugin_4826070998056960_1742826910979/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;