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":"img20250318090956874jpg-1742299775703.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/img20250318090956874jpg-1742299775703.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/img20250318090956874jpg-1742299775703.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/thumb_img20250318090956874jpg-1742299775703.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/thumb_img20250318090956874jpg-1742299775703.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-03-18T12:09:35.704Z","updated_date":"2025-03-18T12:09:35.704Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6472903396687872%2Fimg20250318090956874jpg-1742299775703.JPG&uploadType=resumable&upload_id=AKDAyIsx3sUNnUI4QagawVOA9igpKTbhmYoM-v7dwOYuVW8NCB2pbWKDT8X2LFdt3zhe4HWg1O2ZfKbqCJi-V4hvbt64_-8hDtTLXCkY8OsNzVQ","id":"6023286121037824","title":"Classroom 1","has_anaglyph":false,"index":0},{"filename":"img20250318090959368jpg-1742299775612.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/img20250318090959368jpg-1742299775612.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/img20250318090959368jpg-1742299775612.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/thumb_img20250318090959368jpg-1742299775612.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/thumb_img20250318090959368jpg-1742299775612.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-03-18T12:09:35.612Z","updated_date":"2025-03-18T12:09:35.612Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6472903396687872%2Fimg20250318090959368jpg-1742299775612.jpg&uploadType=resumable&upload_id=AKDAyIvr5av1KU0R7nThkJCAYTgbhiRfTLDhK1S_fdQQIniXCYG8o6qaYb91BalMx_Mq4eI8nVyQ9drpbhwZeGxmyP2snz_wyx4bp8PUTVL-SQ","id":"5941518768537600","title":"Classroom 2","has_anaglyph":false,"index":1},{"filename":"img20250318091001665jpg-1742299775636.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/img20250318091001665jpg-1742299775636.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/img20250318091001665jpg-1742299775636.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/thumb_img20250318091001665jpg-1742299775636.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/thumb_img20250318091001665jpg-1742299775636.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-03-18T12:09:35.637Z","updated_date":"2025-03-18T12:09:35.637Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6472903396687872%2Fimg20250318091001665jpg-1742299775636.jpg&uploadType=resumable&upload_id=AKDAyItr_nf8qYu7MQ3YLhBTuB1_cccwKXF5T5OK8YRqYkzVLY3JfoIJGa-lQqy8141GF0ZrsKJEK8XDpiICBDqSgTiD9gOKJenSwAIzq1n1Zg","id":"5948330351788032","title":"Classroom 3","has_anaglyph":false,"index":2},{"filename":"img20250318091003928jpg-1742299775627.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/img20250318091003928jpg-1742299775627.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/img20250318091003928jpg-1742299775627.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/thumb_img20250318091003928jpg-1742299775627.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/thumb_img20250318091003928jpg-1742299775627.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-03-18T12:09:35.628Z","updated_date":"2025-03-18T12:09:35.628Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6472903396687872%2Fimg20250318091003928jpg-1742299775627.jpg&uploadType=resumable&upload_id=AKDAyIvk0ABOSAhxQIxMiyAHIo7_qGDDA4YFqhLKgWzX3nt4RCK7FR3d-KeU001vLtZ_3fiHRCPs5RbsIM9GFM6bobL6mYKKgkb5ToJTYkLHKg","id":"4809343226609664","title":"Hall","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"6023286121037824":{"filename":"img20250318090956874jpg-1742299775703.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/img20250318090956874jpg-1742299775703.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/img20250318090956874jpg-1742299775703.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/thumb_img20250318090956874jpg-1742299775703.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/thumb_img20250318090956874jpg-1742299775703.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-03-18T12:09:35.704Z","updated_date":"2025-03-18T12:09:35.704Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6472903396687872%2Fimg20250318090956874jpg-1742299775703.JPG&uploadType=resumable&upload_id=AKDAyIsx3sUNnUI4QagawVOA9igpKTbhmYoM-v7dwOYuVW8NCB2pbWKDT8X2LFdt3zhe4HWg1O2ZfKbqCJi-V4hvbt64_-8hDtTLXCkY8OsNzVQ","id":"6023286121037824","title":"Classroom 1","has_anaglyph":false,"index":0},"5941518768537600":{"filename":"img20250318090959368jpg-1742299775612.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/img20250318090959368jpg-1742299775612.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/img20250318090959368jpg-1742299775612.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/thumb_img20250318090959368jpg-1742299775612.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/thumb_img20250318090959368jpg-1742299775612.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-03-18T12:09:35.612Z","updated_date":"2025-03-18T12:09:35.612Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6472903396687872%2Fimg20250318090959368jpg-1742299775612.jpg&uploadType=resumable&upload_id=AKDAyIvr5av1KU0R7nThkJCAYTgbhiRfTLDhK1S_fdQQIniXCYG8o6qaYb91BalMx_Mq4eI8nVyQ9drpbhwZeGxmyP2snz_wyx4bp8PUTVL-SQ","id":"5941518768537600","title":"Classroom 2","has_anaglyph":false,"index":1},"5948330351788032":{"filename":"img20250318091001665jpg-1742299775636.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/img20250318091001665jpg-1742299775636.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/img20250318091001665jpg-1742299775636.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/thumb_img20250318091001665jpg-1742299775636.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/thumb_img20250318091001665jpg-1742299775636.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-03-18T12:09:35.637Z","updated_date":"2025-03-18T12:09:35.637Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6472903396687872%2Fimg20250318091001665jpg-1742299775636.jpg&uploadType=resumable&upload_id=AKDAyItr_nf8qYu7MQ3YLhBTuB1_cccwKXF5T5OK8YRqYkzVLY3JfoIJGa-lQqy8141GF0ZrsKJEK8XDpiICBDqSgTiD9gOKJenSwAIzq1n1Zg","id":"5948330351788032","title":"Classroom 3","has_anaglyph":false,"index":2},"4809343226609664":{"filename":"img20250318091003928jpg-1742299775627.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/img20250318091003928jpg-1742299775627.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/img20250318091003928jpg-1742299775627.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/thumb_img20250318091003928jpg-1742299775627.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6472903396687872/thumb_img20250318091003928jpg-1742299775627.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-03-18T12:09:35.628Z","updated_date":"2025-03-18T12:09:35.628Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6472903396687872%2Fimg20250318091003928jpg-1742299775627.jpg&uploadType=resumable&upload_id=AKDAyIvk0ABOSAhxQIxMiyAHIo7_qGDDA4YFqhLKgWzX3nt4RCK7FR3d-KeU001vLtZ_3fiHRCPs5RbsIM9GFM6bobL6mYKKgkb5ToJTYkLHKg","id":"4809343226609664","title":"Hall","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 = "6472903396687872"; window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1"; window.customUrl = "https://kiddy123.com/"; window.tourSlug = "happy-villa-impian-emas"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "eYaPv8z2K"; 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['6023286121037824'] = 0; window.current_image_index = 0; window.current_image_id = 6023286121037824 window.photo_indexes['5941518768537600'] = 1; window.photo_indexes['5948330351788032'] = 2; window.photo_indexes['4809343226609664'] = 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/6472903396687872/thumb_img20250318090956874jpg-1742299775703.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":6023286121037824,"hotspots":[{"id":"hotspot_6023286121037824_5941518768537600","from":6023286121037824,"to":5941518768537600,"position":{"x":-0.6471879641182265,"y":-0.006601899044944484,"z":-0.7623018785425533},"toTitle":"Classroom 2"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1742487138985","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/6472903396687872/6023286121037824/plugin_4826070998056960_1742487138985/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":5941518768537600,"hotspots":[{"id":"hotspot_5941518768537600_6023286121037824","from":5941518768537600,"to":6023286121037824,"position":{"x":-0.5782598220356825,"y":-0.023525287708715186,"z":-0.8155134205256728},"toTitle":"Classroom 1"},{"id":"hotspot_5941518768537600_4809343226609664","from":5941518768537600,"to":4809343226609664,"position":{"x":0.3139325582584543,"y":0.04118805760653331,"z":-0.9485514708100469},"toTitle":"Hall"},{"id":"hotspot_5941518768537600_5948330351788032","from":5941518768537600,"to":5948330351788032,"position":{"x":0.7115634881298276,"y":0.038388561146904455,"z":-0.7015723203872732},"toTitle":"Classroom 3"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1742487190982","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/6472903396687872/5941518768537600/plugin_4826070998056960_1742487190982/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":5948330351788032,"hotspots":[{"id":"hotspot_5948330351788032_4809343226609664","from":5948330351788032,"to":4809343226609664,"position":{"x":-0.9879351831159517,"y":-0.01924552884221766,"z":0.15366744476704924},"toTitle":"Hall"},{"id":"hotspot_5948330351788032_6023286121037824","from":5948330351788032,"to":6023286121037824,"position":{"x":-0.5076846329572896,"y":0.09065916858445486,"z":0.8567597263005525},"toTitle":"Classroom 1"},{"id":"hotspot_5948330351788032_5941518768537600","from":5948330351788032,"to":5941518768537600,"position":{"x":-0.18311290531007204,"y":0.07482325139960995,"z":0.9802403506073881},"toTitle":"Classroom 2"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1742487223417","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/6472903396687872/5948330351788032/plugin_4826070998056960_1742487223417/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4809343226609664,"hotspots":[{"id":"hotspot_4809343226609664_5948330351788032","from":4809343226609664,"to":5948330351788032,"position":{"x":-0.849685511738152,"y":0.020703695241918244,"z":0.5268831826369148},"toTitle":"Classroom 3"},{"id":"hotspot_4809343226609664_5941518768537600","from":4809343226609664,"to":5941518768537600,"position":{"x":-0.980693598932096,"y":0.022680536096264265,"z":0.19423094062481258},"toTitle":"Classroom 2"},{"id":"hotspot_4809343226609664_6023286121037824","from":4809343226609664,"to":6023286121037824,"position":{"x":-0.9463234897529176,"y":0.02830889167734872,"z":-0.32197897352755794},"toTitle":"Classroom 1"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1742487284211","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/6472903396687872/4809343226609664/plugin_4826070998056960_1742487284211/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;