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":"img20250514115643338jpg-1747211191419.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/img20250514115643338jpg-1747211191419.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/img20250514115643338jpg-1747211191419.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/thumb_img20250514115643338jpg-1747211191419.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/thumb_img20250514115643338jpg-1747211191419.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-05-14T08:26:31.420Z","updated_date":"2025-05-14T08:26:31.420Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6488946240389120%2Fimg20250514115643338jpg-1747211191419.jpg&uploadType=resumable&upload_id=AAO2Vwro7MODuyv6vY874wxgT8jPn_6hNEmlWHpx9HazxR44qqE_JidUSTCb0G4I2-uTWAWzAtrIWeBZIMFCIQQ4BesMcibZIgRqIhW-JMmxqNs","id":"4924463801958400","title":"Library","has_anaglyph":false,"index":0},{"filename":"img20250514115644658jpg-1747211191557.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/img20250514115644658jpg-1747211191557.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/img20250514115644658jpg-1747211191557.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/thumb_img20250514115644658jpg-1747211191557.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/thumb_img20250514115644658jpg-1747211191557.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-05-14T08:26:31.558Z","updated_date":"2025-05-14T08:26:31.558Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6488946240389120%2Fimg20250514115644658jpg-1747211191557.jpg&uploadType=resumable&upload_id=AAO2Vwpey-rlUbvskHPUTUH5VuYyWU3yoKG7OKocWZdGDuY6oHgequiVk2vZV3wH3RbiUhrcLyWoD_7D3a9Ult5xb6pVn9EIZ1N_U6jv_WFCnGI","id":"5301975455367168","title":"Lab","has_anaglyph":false,"index":1},{"filename":"img20250514115645827jpg-1747211191518.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/img20250514115645827jpg-1747211191518.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/img20250514115645827jpg-1747211191518.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/thumb_img20250514115645827jpg-1747211191518.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/thumb_img20250514115645827jpg-1747211191518.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-05-14T08:26:31.519Z","updated_date":"2025-05-14T08:26:31.519Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6488946240389120%2Fimg20250514115645827jpg-1747211191518.jpg&uploadType=resumable&upload_id=AAO2VwrMRX6NLYNi5rtnaLsFd7Ie9QDWJJz6rOhh5vHTAYA3qdewU6eooyVZFmtWBnl2AXpwszekSEpdxlzapfRt9QELg3ALPFaUr8AjU1c_Uww","id":"5934977600454656","title":"Classroom 1","has_anaglyph":false,"index":2},{"filename":"img20250514115646992jpg-1747211191648.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/img20250514115646992jpg-1747211191648.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/img20250514115646992jpg-1747211191648.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/thumb_img20250514115646992jpg-1747211191648.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/thumb_img20250514115646992jpg-1747211191648.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-05-14T08:26:31.648Z","updated_date":"2025-05-14T08:26:31.648Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6488946240389120%2Fimg20250514115646992jpg-1747211191648.jpg&uploadType=resumable&upload_id=AAO2Vwqflm4xKDkLjWrLHLoXoX1VT0zGmzjE7oU6XXflXj7SDhaPJv8Ni6PTcYIsKa5ZndT_fVUWfM3H3deqIU1njRSnUa5KqhBV86_m37xCe4Y","id":"6013923360768000","title":"Classroom 2","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"4924463801958400":{"filename":"img20250514115643338jpg-1747211191419.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/img20250514115643338jpg-1747211191419.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/img20250514115643338jpg-1747211191419.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/thumb_img20250514115643338jpg-1747211191419.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/thumb_img20250514115643338jpg-1747211191419.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-05-14T08:26:31.420Z","updated_date":"2025-05-14T08:26:31.420Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6488946240389120%2Fimg20250514115643338jpg-1747211191419.jpg&uploadType=resumable&upload_id=AAO2Vwro7MODuyv6vY874wxgT8jPn_6hNEmlWHpx9HazxR44qqE_JidUSTCb0G4I2-uTWAWzAtrIWeBZIMFCIQQ4BesMcibZIgRqIhW-JMmxqNs","id":"4924463801958400","title":"Library","has_anaglyph":false,"index":0},"5301975455367168":{"filename":"img20250514115644658jpg-1747211191557.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/img20250514115644658jpg-1747211191557.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/img20250514115644658jpg-1747211191557.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/thumb_img20250514115644658jpg-1747211191557.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/thumb_img20250514115644658jpg-1747211191557.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-05-14T08:26:31.558Z","updated_date":"2025-05-14T08:26:31.558Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6488946240389120%2Fimg20250514115644658jpg-1747211191557.jpg&uploadType=resumable&upload_id=AAO2Vwpey-rlUbvskHPUTUH5VuYyWU3yoKG7OKocWZdGDuY6oHgequiVk2vZV3wH3RbiUhrcLyWoD_7D3a9Ult5xb6pVn9EIZ1N_U6jv_WFCnGI","id":"5301975455367168","title":"Lab","has_anaglyph":false,"index":1},"5934977600454656":{"filename":"img20250514115645827jpg-1747211191518.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/img20250514115645827jpg-1747211191518.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/img20250514115645827jpg-1747211191518.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/thumb_img20250514115645827jpg-1747211191518.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/thumb_img20250514115645827jpg-1747211191518.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-05-14T08:26:31.519Z","updated_date":"2025-05-14T08:26:31.519Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6488946240389120%2Fimg20250514115645827jpg-1747211191518.jpg&uploadType=resumable&upload_id=AAO2VwrMRX6NLYNi5rtnaLsFd7Ie9QDWJJz6rOhh5vHTAYA3qdewU6eooyVZFmtWBnl2AXpwszekSEpdxlzapfRt9QELg3ALPFaUr8AjU1c_Uww","id":"5934977600454656","title":"Classroom 1","has_anaglyph":false,"index":2},"6013923360768000":{"filename":"img20250514115646992jpg-1747211191648.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/img20250514115646992jpg-1747211191648.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/img20250514115646992jpg-1747211191648.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/thumb_img20250514115646992jpg-1747211191648.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6488946240389120/thumb_img20250514115646992jpg-1747211191648.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-05-14T08:26:31.648Z","updated_date":"2025-05-14T08:26:31.648Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6488946240389120%2Fimg20250514115646992jpg-1747211191648.jpg&uploadType=resumable&upload_id=AAO2Vwqflm4xKDkLjWrLHLoXoX1VT0zGmzjE7oU6XXflXj7SDhaPJv8Ni6PTcYIsKa5ZndT_fVUWfM3H3deqIU1njRSnUa5KqhBV86_m37xCe4Y","id":"6013923360768000","title":"Classroom 2","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 = "6488946240389120"; window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1"; window.customUrl = "https://kiddy123.com/"; window.tourSlug = "al-amin-darul-musthofa-integrated-islamic-school-elmina"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "d0-XiC58K"; 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['4924463801958400'] = 0; window.current_image_index = 0; window.current_image_id = 4924463801958400 window.photo_indexes['5301975455367168'] = 1; window.photo_indexes['5934977600454656'] = 2; window.photo_indexes['6013923360768000'] = 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/6488946240389120/thumb_img20250514115643338jpg-1747211191419.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":4924463801958400,"hotspots":[{"id":"hotspot_4924463801958400_5301975455367168","from":4924463801958400,"to":5301975455367168,"position":{"x":0.4764670790562116,"y":0.014781935636648034,"z":0.879068038865295},"toTitle":"Lab"},{"id":"hotspot_4924463801958400_5934977600454656","from":4924463801958400,"to":5934977600454656,"position":{"x":0.7168147208930473,"y":0.017284388488794065,"z":0.6970494285383149},"toTitle":"Classroom 1"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1747211924100","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/6488946240389120/4924463801958400/plugin_4826070998056960_1747211924100/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":5301975455367168,"hotspots":[{"id":"hotspot_5301975455367168_4924463801958400","from":5301975455367168,"to":4924463801958400,"position":{"x":0.9984091711303688,"y":0.05626707914525907,"z":-0.0036253009849439633},"toTitle":"Library"},{"id":"hotspot_5301975455367168_5934977600454656","from":5301975455367168,"to":5934977600454656,"position":{"x":0.9434746342228365,"y":0.013361783731613952,"z":0.33117529695554654},"toTitle":"Classroom 1"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1747211890564","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/6488946240389120/5301975455367168/plugin_4826070998056960_1747211890564/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":5934977600454656,"hotspots":[{"id":"hotspot_5934977600454656_6013923360768000","from":5934977600454656,"to":6013923360768000,"position":{"x":-0.8988653944025395,"y":-0.04760149647368783,"z":-0.43563184029525703},"toTitle":"Classroom 2"},{"id":"hotspot_5934977600454656_5301975455367168","from":5934977600454656,"to":5301975455367168,"position":{"x":-0.6280580382434461,"y":-0.036009164532702934,"z":-0.7773329020872914},"toTitle":"Lab"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1747211860598","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/6488946240389120/5934977600454656/plugin_4826070998056960_1747211860598/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":6013923360768000,"hotspots":[{"id":"hotspot_6013923360768000_4924463801958400","from":6013923360768000,"to":4924463801958400,"position":{"x":0.7503245513682961,"y":0.03654896413351344,"z":0.6600585131901052},"toTitle":"Library"},{"id":"hotspot_6013923360768000_5934977600454656","from":6013923360768000,"to":5934977600454656,"position":{"x":0.15938912385122936,"y":0.008795797689271002,"z":0.9871766514362801},"toTitle":"Classroom 1"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1747211813598","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/6488946240389120/6013923360768000/plugin_4826070998056960_1747211813598/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;