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":"img20250121112809572jpg-1737457273453.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/img20250121112809572jpg-1737457273453.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/img20250121112809572jpg-1737457273453.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/thumb_img20250121112809572jpg-1737457273453.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/thumb_img20250121112809572jpg-1737457273453.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-01-21T11:01:13.456Z","updated_date":"2025-01-21T11:01:13.456Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4887904654458880%2Fimg20250121112809572jpg-1737457273453.JPG&uploadType=resumable&upload_id=AFIdbgQmmvYC_00tvV0PZWza2AVJP0AKSyS6QzGYW2qnVvJxfHI_pHjcyYuD8tRjirwh9axUBFDQdNc5KTrR3P1MSftMPWAZm6TyBmvc67gacXY","id":"6098627850141696","title":"Hall","has_anaglyph":false,"index":0},{"filename":"img20250121112808073jpg-1737457273402.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/img20250121112808073jpg-1737457273402.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/img20250121112808073jpg-1737457273402.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/thumb_img20250121112808073jpg-1737457273402.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/thumb_img20250121112808073jpg-1737457273402.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-01-21T11:01:13.403Z","updated_date":"2025-01-21T11:01:13.403Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4887904654458880%2Fimg20250121112808073jpg-1737457273402.JPG&uploadType=resumable&upload_id=AFIdbgT_Px1teJ5LdY2SO4jRdDI3eVO4s2Eg2wxDw5SlvjDZ5L8zpN6gdBnOK-hH_rwox9VxK_JluLcBC_N2QKNr2QZT351AF7jETxMpJU4maQ","id":"4849451577376768","title":"Classroom","has_anaglyph":false,"index":1},{"filename":"img20250121112806592jpg-1737457273546.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/img20250121112806592jpg-1737457273546.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/img20250121112806592jpg-1737457273546.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/thumb_img20250121112806592jpg-1737457273546.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/thumb_img20250121112806592jpg-1737457273546.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-01-21T11:01:13.547Z","updated_date":"2025-01-21T11:01:13.547Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4887904654458880%2Fimg20250121112806592jpg-1737457273546.JPG&uploadType=resumable&upload_id=AFIdbgRcXWSvgLu6C0aQz8CX49s-l_C-gc7yrnzjcelEXi9teuwv_gpwZJmGANyh1NI_B4Qh9noSbo4olwdyJ15pOGu0W81rI1wCcnDJvAKIVR8","id":"5476602701938688","title":"Classroom 1","has_anaglyph":false,"index":2},{"filename":"img20250121112804904jpg-1737457273418.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/img20250121112804904jpg-1737457273418.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/img20250121112804904jpg-1737457273418.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/thumb_img20250121112804904jpg-1737457273418.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/thumb_img20250121112804904jpg-1737457273418.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-01-21T11:01:13.418Z","updated_date":"2025-01-21T11:01:13.418Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4887904654458880%2Fimg20250121112804904jpg-1737457273418.JPG&uploadType=resumable&upload_id=AFIdbgQi5tGkomQAh0C_ixodwqvE8sNbOmIzcNrxkmuCI01Pfc5NChJBGay-9uCpt6x2xFZkEFUo82XZLbvjFOQVyDwTj6ptv6YDR8u7GniLhaM","id":"5216754160631808","title":"Classroom 2","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5216754160631808":{"filename":"img20250121112804904jpg-1737457273418.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/img20250121112804904jpg-1737457273418.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/img20250121112804904jpg-1737457273418.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/thumb_img20250121112804904jpg-1737457273418.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/thumb_img20250121112804904jpg-1737457273418.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-01-21T11:01:13.418Z","updated_date":"2025-01-21T11:01:13.418Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4887904654458880%2Fimg20250121112804904jpg-1737457273418.JPG&uploadType=resumable&upload_id=AFIdbgQi5tGkomQAh0C_ixodwqvE8sNbOmIzcNrxkmuCI01Pfc5NChJBGay-9uCpt6x2xFZkEFUo82XZLbvjFOQVyDwTj6ptv6YDR8u7GniLhaM","id":"5216754160631808","title":"Classroom 2","has_anaglyph":false,"index":3},"5476602701938688":{"filename":"img20250121112806592jpg-1737457273546.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/img20250121112806592jpg-1737457273546.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/img20250121112806592jpg-1737457273546.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/thumb_img20250121112806592jpg-1737457273546.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/thumb_img20250121112806592jpg-1737457273546.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-01-21T11:01:13.547Z","updated_date":"2025-01-21T11:01:13.547Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4887904654458880%2Fimg20250121112806592jpg-1737457273546.JPG&uploadType=resumable&upload_id=AFIdbgRcXWSvgLu6C0aQz8CX49s-l_C-gc7yrnzjcelEXi9teuwv_gpwZJmGANyh1NI_B4Qh9noSbo4olwdyJ15pOGu0W81rI1wCcnDJvAKIVR8","id":"5476602701938688","title":"Classroom 1","has_anaglyph":false,"index":2},"4849451577376768":{"filename":"img20250121112808073jpg-1737457273402.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/img20250121112808073jpg-1737457273402.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/img20250121112808073jpg-1737457273402.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/thumb_img20250121112808073jpg-1737457273402.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/thumb_img20250121112808073jpg-1737457273402.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-01-21T11:01:13.403Z","updated_date":"2025-01-21T11:01:13.403Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4887904654458880%2Fimg20250121112808073jpg-1737457273402.JPG&uploadType=resumable&upload_id=AFIdbgT_Px1teJ5LdY2SO4jRdDI3eVO4s2Eg2wxDw5SlvjDZ5L8zpN6gdBnOK-hH_rwox9VxK_JluLcBC_N2QKNr2QZT351AF7jETxMpJU4maQ","id":"4849451577376768","title":"Classroom","has_anaglyph":false,"index":1},"6098627850141696":{"filename":"img20250121112809572jpg-1737457273453.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/img20250121112809572jpg-1737457273453.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/img20250121112809572jpg-1737457273453.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/thumb_img20250121112809572jpg-1737457273453.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4887904654458880/thumb_img20250121112809572jpg-1737457273453.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-01-21T11:01:13.456Z","updated_date":"2025-01-21T11:01:13.456Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4887904654458880%2Fimg20250121112809572jpg-1737457273453.JPG&uploadType=resumable&upload_id=AFIdbgQmmvYC_00tvV0PZWza2AVJP0AKSyS6QzGYW2qnVvJxfHI_pHjcyYuD8tRjirwh9axUBFDQdNc5KTrR3P1MSftMPWAZm6TyBmvc67gacXY","id":"6098627850141696","title":"Hall","has_anaglyph":false,"index":0}}; 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 = "4887904654458880"; window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1"; window.customUrl = "https://kiddy123.com/"; window.tourSlug = "apple-seed-kota-kemuning"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "Afz_ZL66L"; 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['6098627850141696'] = 0; window.current_image_index = 0; window.current_image_id = 6098627850141696 window.photo_indexes['4849451577376768'] = 1; window.photo_indexes['5476602701938688'] = 2; window.photo_indexes['5216754160631808'] = 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/4887904654458880/thumb_img20250121112809572jpg-1737457273453.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":6098627850141696,"hotspots":[{"id":"hotspot_6098627850141696_4849451577376768","from":6098627850141696,"to":4849451577376768,"position":{"x":0.07359058943431479,"y":0.0066301825987114945,"z":-0.9972664968930912},"toTitle":"Classroom"},{"id":"hotspot_6098627850141696_5476602701938688","from":6098627850141696,"to":5476602701938688,"position":{"x":-0.9502193527686564,"y":0.03046413653909161,"z":-0.31008888727080053},"toTitle":"Classroom 1"},{"id":"hotspot_6098627850141696_5216754160631808","from":6098627850141696,"to":5216754160631808,"position":{"x":0.9985637168696936,"y":0.01836643702511431,"z":-0.05033067993167696},"toTitle":"Classroom 2"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1737606190651","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/4887904654458880/6098627850141696/plugin_4826070998056960_1737606190651/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4849451577376768,"hotspots":[{"id":"hotspot_4849451577376768_6098627850141696","from":4849451577376768,"to":6098627850141696,"position":{"x":-0.9344279870928747,"y":-0.011917486717534084,"z":0.35595268006842673},"toTitle":"Hall"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1737606280996","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/4887904654458880/4849451577376768/plugin_4826070998056960_1737606280996/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":5476602701938688,"hotspots":[{"id":"hotspot_5476602701938688_6098627850141696","from":5476602701938688,"to":6098627850141696,"position":{"x":0.20456879288028207,"y":0.04655386897795044,"z":0.9777445199348795},"toTitle":"Hall"},{"id":"hotspot_5476602701938688_4849451577376768","from":5476602701938688,"to":4849451577376768,"position":{"x":0.6379254103767091,"y":0.07686447136511296,"z":0.7662525848814273},"toTitle":"Classroom"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1737606253030","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/4887904654458880/5476602701938688/plugin_4826070998056960_1737606253030/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":5216754160631808,"hotspots":[{"id":"hotspot_5216754160631808_6098627850141696","from":5216754160631808,"to":6098627850141696,"position":{"x":-0.456432087249618,"y":0.005336875234892726,"z":-0.8897422477839773},"toTitle":"Hall"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1737606224432","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/4887904654458880/5216754160631808/plugin_4826070998056960_1737606224432/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;