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":"img20241021192804533jpg-1729517491964.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/img20241021192804533jpg-1729517491964.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/img20241021192804533jpg-1729517491964.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/thumb_img20241021192804533jpg-1729517491964.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/thumb_img20241021192804533jpg-1729517491964.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2024-10-21T13:31:31.965Z","updated_date":"2024-10-21T13:31:31.965Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5047960142348288%2Fimg20241021192804533jpg-1729517491964.jpg&uploadType=resumable&upload_id=AHmUCY0_-Nq02DWnXYRQY2uzORuB6KxvpKfTcsTe0jFOK5ehpQLk9bfy5faXNnotetG0Fgk7mphGH7JM_6_izpc2wCE2DPYV5OY9lYef9SR7N-Rn","id":"5995330833219584","title":"Reception","has_anaglyph":false,"index":0},{"filename":"img20241021192806859jpg-1729517492128.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/img20241021192806859jpg-1729517492128.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/img20241021192806859jpg-1729517492128.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/thumb_img20241021192806859jpg-1729517492128.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/thumb_img20241021192806859jpg-1729517492128.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2024-10-21T13:31:32.129Z","updated_date":"2024-10-21T13:31:32.129Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5047960142348288%2Fimg20241021192806859jpg-1729517492128.jpg&uploadType=resumable&upload_id=AHmUCY1rKJzyMrb1dmX2T3D2_2Z9J12Q_fU9AFZOEYwR4eZ4VKfgcq0ejVH2QeUomhJmrTkyLdZYBGhy_yE6LQnSzFQuczAHeM1B6wY1u_ungvcS","id":"5334097800986624","title":"Classroom","has_anaglyph":false,"index":1},{"filename":"img20241021192808799jpg-1729517492069.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/img20241021192808799jpg-1729517492069.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/img20241021192808799jpg-1729517492069.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/thumb_img20241021192808799jpg-1729517492069.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/thumb_img20241021192808799jpg-1729517492069.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2024-10-21T13:31:32.070Z","updated_date":"2024-10-21T13:31:32.070Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5047960142348288%2Fimg20241021192808799jpg-1729517492069.jpg&uploadType=resumable&upload_id=AHmUCY1GClsbC9Njvikp-vMHc51TgyGiuOOihkpRERk3JDZck_3SUicEBuRPBMdArj--M1Gr77fWCkH6gtfV1br4BZQOW-vB4qkp0tsqJ83mWewe","id":"4668497592320000","title":"Classroom 1","has_anaglyph":false,"index":2},{"filename":"img20241021192810647jpg-1729517495054.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/img20241021192810647jpg-1729517495054.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/img20241021192810647jpg-1729517495054.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/thumb_img20241021192810647jpg-1729517495054.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/thumb_img20241021192810647jpg-1729517495054.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2024-10-21T13:31:35.055Z","updated_date":"2024-10-21T13:31:35.055Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5047960142348288%2Fimg20241021192810647jpg-1729517495054.jpg&uploadType=resumable&upload_id=AHmUCY0qebpMkS6As9p9gSCNqdfWuRrHt3n72eBC78peHPiq1ca1DUcJwV6t9QLsKVO4NIGlOWNWX-z614fRlTj7oxTZizpNTeFWaOthiy6O1viwNA","id":"5986844112060416","title":"Classroom 2","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5995330833219584":{"filename":"img20241021192804533jpg-1729517491964.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/img20241021192804533jpg-1729517491964.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/img20241021192804533jpg-1729517491964.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/thumb_img20241021192804533jpg-1729517491964.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/thumb_img20241021192804533jpg-1729517491964.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2024-10-21T13:31:31.965Z","updated_date":"2024-10-21T13:31:31.965Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5047960142348288%2Fimg20241021192804533jpg-1729517491964.jpg&uploadType=resumable&upload_id=AHmUCY0_-Nq02DWnXYRQY2uzORuB6KxvpKfTcsTe0jFOK5ehpQLk9bfy5faXNnotetG0Fgk7mphGH7JM_6_izpc2wCE2DPYV5OY9lYef9SR7N-Rn","id":"5995330833219584","title":"Reception","has_anaglyph":false,"index":0},"5334097800986624":{"filename":"img20241021192806859jpg-1729517492128.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/img20241021192806859jpg-1729517492128.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/img20241021192806859jpg-1729517492128.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/thumb_img20241021192806859jpg-1729517492128.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/thumb_img20241021192806859jpg-1729517492128.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2024-10-21T13:31:32.129Z","updated_date":"2024-10-21T13:31:32.129Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5047960142348288%2Fimg20241021192806859jpg-1729517492128.jpg&uploadType=resumable&upload_id=AHmUCY1rKJzyMrb1dmX2T3D2_2Z9J12Q_fU9AFZOEYwR4eZ4VKfgcq0ejVH2QeUomhJmrTkyLdZYBGhy_yE6LQnSzFQuczAHeM1B6wY1u_ungvcS","id":"5334097800986624","title":"Classroom","has_anaglyph":false,"index":1},"4668497592320000":{"filename":"img20241021192808799jpg-1729517492069.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/img20241021192808799jpg-1729517492069.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/img20241021192808799jpg-1729517492069.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/thumb_img20241021192808799jpg-1729517492069.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/thumb_img20241021192808799jpg-1729517492069.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2024-10-21T13:31:32.070Z","updated_date":"2024-10-21T13:31:32.070Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5047960142348288%2Fimg20241021192808799jpg-1729517492069.jpg&uploadType=resumable&upload_id=AHmUCY1GClsbC9Njvikp-vMHc51TgyGiuOOihkpRERk3JDZck_3SUicEBuRPBMdArj--M1Gr77fWCkH6gtfV1br4BZQOW-vB4qkp0tsqJ83mWewe","id":"4668497592320000","title":"Classroom 1","has_anaglyph":false,"index":2},"5986844112060416":{"filename":"img20241021192810647jpg-1729517495054.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/img20241021192810647jpg-1729517495054.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/img20241021192810647jpg-1729517495054.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/thumb_img20241021192810647jpg-1729517495054.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5047960142348288/thumb_img20241021192810647jpg-1729517495054.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2024-10-21T13:31:35.055Z","updated_date":"2024-10-21T13:31:35.055Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5047960142348288%2Fimg20241021192810647jpg-1729517495054.jpg&uploadType=resumable&upload_id=AHmUCY0qebpMkS6As9p9gSCNqdfWuRrHt3n72eBC78peHPiq1ca1DUcJwV6t9QLsKVO4NIGlOWNWX-z614fRlTj7oxTZizpNTeFWaOthiy6O1viwNA","id":"5986844112060416","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 = "5047960142348288"; window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1"; window.customUrl = "https://kiddy123.com/"; window.tourSlug = "mrc-jsp-sentul"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "jFUPxrMJe"; 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['5995330833219584'] = 0; window.current_image_index = 0; window.current_image_id = 5995330833219584 window.photo_indexes['5334097800986624'] = 1; window.photo_indexes['4668497592320000'] = 2; window.photo_indexes['5986844112060416'] = 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/5047960142348288/thumb_img20241021192804533jpg-1729517491964.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":5995330833219584,"hotspots":[{"id":"hotspot_5995330833219584_5334097800986624","from":5995330833219584,"to":5334097800986624,"position":{"x":0.987562657352956,"y":-0.05307362659961374,"z":-0.1479972566013735},"toTitle":"Classroom"},{"id":"hotspot_5995330833219584_4668497592320000","from":5995330833219584,"to":4668497592320000,"position":{"x":0.9648670337469173,"y":-0.07521298212543384,"z":0.2517431518596378},"toTitle":"Classroom 1"},{"id":"hotspot_5995330833219584_5986844112060416","from":5995330833219584,"to":5986844112060416,"position":{"x":-0.7138382391074121,"y":-0.08000856565783877,"z":0.6957252315457623},"toTitle":"Classroom 2"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1729517843830","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/5047960142348288/5995330833219584/plugin_4826070998056960_1729517843830/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":5334097800986624,"hotspots":[{"id":"hotspot_5334097800986624_5995330833219584","from":5334097800986624,"to":5995330833219584,"position":{"x":-0.3429337854882587,"y":0.03698475711385973,"z":-0.938631209001662},"toTitle":"Reception"},{"id":"hotspot_5334097800986624_4668497592320000","from":5334097800986624,"to":4668497592320000,"position":{"x":-0.9662084633280071,"y":-0.04712029067947807,"z":-0.25341839633225594},"toTitle":"Classroom 1"},{"id":"hotspot_5334097800986624_5986844112060416","from":5334097800986624,"to":5986844112060416,"position":{"x":-0.6544618087927903,"y":0.08142116963449719,"z":-0.7516982998298052},"toTitle":"Classroom 2"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1729517951868","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/5047960142348288/5334097800986624/plugin_4826070998056960_1729517951868/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4668497592320000,"hotspots":[{"id":"hotspot_4668497592320000_5995330833219584","from":4668497592320000,"to":5995330833219584,"position":{"x":0.6928868646861809,"y":0.15135244332460038,"z":-0.7049824328627117},"toTitle":"Reception"},{"id":"hotspot_4668497592320000_5334097800986624","from":4668497592320000,"to":5334097800986624,"position":{"x":0.9556110034214751,"y":0.09560737793047289,"z":0.2786877094976759},"toTitle":"Classroom"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1729517991943","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/5047960142348288/4668497592320000/plugin_4826070998056960_1729517991943/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":5986844112060416,"hotspots":[{"id":"hotspot_5986844112060416_5995330833219584","from":5986844112060416,"to":5995330833219584,"position":{"x":0.47507144842301813,"y":-0.12850917693096064,"z":0.8705127858554306},"toTitle":"Reception"},{"id":"hotspot_5986844112060416_5334097800986624","from":5986844112060416,"to":5334097800986624,"position":{"x":0.19865619061740442,"y":0.025121158257234783,"z":0.9797472354322806},"toTitle":"Classroom"},{"id":"hotspot_5986844112060416_4668497592320000","from":5986844112060416,"to":4668497592320000,"position":{"x":-0.13630192344625877,"y":-0.08568463166256514,"z":0.986954877165973},"toTitle":"Classroom 1"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1729518025571","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/5047960142348288/5986844112060416/plugin_4826070998056960_1729518025571/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;