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":"img20250515112032610jpg-1747307620595.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/img20250515112032610jpg-1747307620595.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/img20250515112032610jpg-1747307620595.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/thumb_img20250515112032610jpg-1747307620595.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/thumb_img20250515112032610jpg-1747307620595.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-05-15T11:13:40.596Z","updated_date":"2025-05-15T11:13:40.596Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4883646748033024%2Fimg20250515112032610jpg-1747307620595.jpg&uploadType=resumable&upload_id=AAO2VwqIFTbs9uTwPQjlVhSkfID2oh-2k_V-nyqXiRYG5Ch5PqeuJ7itIZak6l9_M6R3eMdTzjrnSecT-03tMAYtEZFmb3u_IxKCsdoZNt_hUQ","id":"6029561202475008","title":"Music Room","has_anaglyph":false,"index":0},{"filename":"img20250515112033976jpg-1747307620610.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/img20250515112033976jpg-1747307620610.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/img20250515112033976jpg-1747307620610.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/thumb_img20250515112033976jpg-1747307620610.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/thumb_img20250515112033976jpg-1747307620610.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-05-15T11:13:40.610Z","updated_date":"2025-05-15T11:13:40.610Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4883646748033024%2Fimg20250515112033976jpg-1747307620610.jpg&uploadType=resumable&upload_id=AAO2VwqKldRoVxgWl3NRpaalJS4plgFbiotkw5gnB1cQIOejHBJyfoOXBRKGbu1i-In0UP9lPL9P_2yZ0VByxRZyomXuPAWMmoEX_KYyRQfDCvk","id":"4844522179657728","title":"Library","has_anaglyph":false,"index":1},{"filename":"img20250515112035157jpg-1747307620603.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/img20250515112035157jpg-1747307620603.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/img20250515112035157jpg-1747307620603.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/thumb_img20250515112035157jpg-1747307620603.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/thumb_img20250515112035157jpg-1747307620603.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-05-15T11:13:40.603Z","updated_date":"2025-05-15T11:13:40.603Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4883646748033024%2Fimg20250515112035157jpg-1747307620603.jpg&uploadType=resumable&upload_id=AAO2VwqM8SCkLbiqJaw6dLGInBO9GvDmU9vHGXedio_mgigcL9aPL4nj6C36tSGxWDlsG-AKzfFUWB9S2A4Kx3q0D7PgsDyJkW9BL0E90sw9Luo","id":"5991970977611776","title":"Science Lab","has_anaglyph":false,"index":2},{"filename":"img20250515112036352jpg-1747307620864.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/img20250515112036352jpg-1747307620864.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/img20250515112036352jpg-1747307620864.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/thumb_img20250515112036352jpg-1747307620864.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/thumb_img20250515112036352jpg-1747307620864.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-05-15T11:13:40.865Z","updated_date":"2025-05-15T11:13:40.865Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4883646748033024%2Fimg20250515112036352jpg-1747307620864.jpg&uploadType=resumable&upload_id=AAO2VwreNoP4ZfYIM3gZYUHcA7STGo37zGMGxw7t-AM0pM64Qat1707VyHH1zWWcW4CrAyZkhgEgdps4uXgTo7ggJw6fWQbwc52o2Pnzz_AN-M4","id":"6038322264670208","title":"ICT Lab","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"6029561202475008":{"filename":"img20250515112032610jpg-1747307620595.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/img20250515112032610jpg-1747307620595.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/img20250515112032610jpg-1747307620595.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/thumb_img20250515112032610jpg-1747307620595.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/thumb_img20250515112032610jpg-1747307620595.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-05-15T11:13:40.596Z","updated_date":"2025-05-15T11:13:40.596Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4883646748033024%2Fimg20250515112032610jpg-1747307620595.jpg&uploadType=resumable&upload_id=AAO2VwqIFTbs9uTwPQjlVhSkfID2oh-2k_V-nyqXiRYG5Ch5PqeuJ7itIZak6l9_M6R3eMdTzjrnSecT-03tMAYtEZFmb3u_IxKCsdoZNt_hUQ","id":"6029561202475008","title":"Music Room","has_anaglyph":false,"index":0},"4844522179657728":{"filename":"img20250515112033976jpg-1747307620610.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/img20250515112033976jpg-1747307620610.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/img20250515112033976jpg-1747307620610.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/thumb_img20250515112033976jpg-1747307620610.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/thumb_img20250515112033976jpg-1747307620610.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-05-15T11:13:40.610Z","updated_date":"2025-05-15T11:13:40.610Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4883646748033024%2Fimg20250515112033976jpg-1747307620610.jpg&uploadType=resumable&upload_id=AAO2VwqKldRoVxgWl3NRpaalJS4plgFbiotkw5gnB1cQIOejHBJyfoOXBRKGbu1i-In0UP9lPL9P_2yZ0VByxRZyomXuPAWMmoEX_KYyRQfDCvk","id":"4844522179657728","title":"Library","has_anaglyph":false,"index":1},"5991970977611776":{"filename":"img20250515112035157jpg-1747307620603.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/img20250515112035157jpg-1747307620603.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/img20250515112035157jpg-1747307620603.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/thumb_img20250515112035157jpg-1747307620603.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/thumb_img20250515112035157jpg-1747307620603.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-05-15T11:13:40.603Z","updated_date":"2025-05-15T11:13:40.603Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4883646748033024%2Fimg20250515112035157jpg-1747307620603.jpg&uploadType=resumable&upload_id=AAO2VwqM8SCkLbiqJaw6dLGInBO9GvDmU9vHGXedio_mgigcL9aPL4nj6C36tSGxWDlsG-AKzfFUWB9S2A4Kx3q0D7PgsDyJkW9BL0E90sw9Luo","id":"5991970977611776","title":"Science Lab","has_anaglyph":false,"index":2},"6038322264670208":{"filename":"img20250515112036352jpg-1747307620864.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/img20250515112036352jpg-1747307620864.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/img20250515112036352jpg-1747307620864.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/thumb_img20250515112036352jpg-1747307620864.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883646748033024/thumb_img20250515112036352jpg-1747307620864.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-05-15T11:13:40.865Z","updated_date":"2025-05-15T11:13:40.865Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4883646748033024%2Fimg20250515112036352jpg-1747307620864.jpg&uploadType=resumable&upload_id=AAO2VwreNoP4ZfYIM3gZYUHcA7STGo37zGMGxw7t-AM0pM64Qat1707VyHH1zWWcW4CrAyZkhgEgdps4uXgTo7ggJw6fWQbwc52o2Pnzz_AN-M4","id":"6038322264670208","title":"ICT Lab","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 = "4883646748033024"; window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1"; window.customUrl = "https://kiddy123.com/"; window.tourSlug = "al-amin-darul-musthofa-integrated-islamic-school-batu-caves"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "YpfZadfPV"; 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['6029561202475008'] = 0; window.current_image_index = 0; window.current_image_id = 6029561202475008 window.photo_indexes['4844522179657728'] = 1; window.photo_indexes['5991970977611776'] = 2; window.photo_indexes['6038322264670208'] = 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/4883646748033024/thumb_img20250515112032610jpg-1747307620595.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":6029561202475008,"hotspots":[{"id":"hotspot_6029561202475008_4844522179657728","from":6029561202475008,"to":4844522179657728,"position":{"x":0.963399895919565,"y":0.02002040029948091,"z":-0.26731970393897264},"toTitle":"Library"},{"id":"hotspot_6029561202475008_5991970977611776","from":6029561202475008,"to":5991970977611776,"position":{"x":0.8168362265425747,"y":0.18011035238124032,"z":-0.5480317873744125},"toTitle":"Science Lab"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1747307748325","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/4883646748033024/6029561202475008/plugin_4826070998056960_1747307748325/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4844522179657728,"hotspots":[{"id":"hotspot_4844522179657728_6029561202475008","from":4844522179657728,"to":6029561202475008,"position":{"x":-0.24231472587359282,"y":-0.006607734630222222,"z":0.9701751962753233},"toTitle":"Music Room"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1747323066462","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/4883646748033024/4844522179657728/plugin_4826070998056960_1747323066462/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":5991970977611776,"hotspots":[{"id":"hotspot_5991970977611776_6038322264670208","from":5991970977611776,"to":6038322264670208,"position":{"x":-0.9160543139321784,"y":-0.044368097345890964,"z":0.39859248094281896},"toTitle":"ICT Lab"},{"id":"hotspot_5991970977611776_4844522179657728","from":5991970977611776,"to":4844522179657728,"position":{"x":-0.5421756540819296,"y":0.019542641869222194,"z":0.8400378832347998},"toTitle":"Library"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1747323108961","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/4883646748033024/5991970977611776/plugin_4826070998056960_1747323108961/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":6038322264670208,"hotspots":[{"id":"hotspot_6038322264670208_5991970977611776","from":6038322264670208,"to":5991970977611776,"position":{"x":-0.968167431396257,"y":-0.01387647809557521,"z":0.24991852300147116},"toTitle":"Science Lab"},{"id":"hotspot_6038322264670208_6029561202475008","from":6038322264670208,"to":6029561202475008,"position":{"x":-0.7734979245852417,"y":-0.05254117854159113,"z":-0.6316172774867582},"toTitle":"Music Room"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1747323139768","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/4883646748033024/6038322264670208/plugin_4826070998056960_1747323139768/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;