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":"img20250305111457551jpg-1741181307976.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/img20250305111457551jpg-1741181307976.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/img20250305111457551jpg-1741181307976.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/thumb_img20250305111457551jpg-1741181307976.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/thumb_img20250305111457551jpg-1741181307976.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-03-05T13:28:27.977Z","updated_date":"2025-03-05T13:28:27.977Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4883102696472576%2Fimg20250305111457551jpg-1741181307976.JPG&uploadType=resumable&upload_id=AHMx-iHwWlor-sSPTKsfcWyCbjLQIFtwjrE7p0plirOwl9idmChWCwIEcXoI9LXsUtcOvywEuTDBxxpNz87V9B_mBufx8ivbxnIPMyLRdKDzYik","id":"4903385494978560","title":"Baby Room 1","has_anaglyph":false,"index":0},{"filename":"img20250305111458967jpg-1741181307987.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/img20250305111458967jpg-1741181307987.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/img20250305111458967jpg-1741181307987.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/thumb_img20250305111458967jpg-1741181307987.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/thumb_img20250305111458967jpg-1741181307987.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-03-05T13:28:27.987Z","updated_date":"2025-03-05T13:28:27.987Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4883102696472576%2Fimg20250305111458967jpg-1741181307987.JPG&uploadType=resumable&upload_id=AHMx-iFMX5UzahajqMJhv6dvtJ7YnKlojjKL4KTOMMxasipFe0HLMW1_ko7ghtL67sVlrbSVS2578CXMI1AuQo0uCQPe3E96BMWwLHpZvISzGg","id":"4852226663120896","title":"Baby Room 2","has_anaglyph":false,"index":1},{"filename":"img20250305111500256jpg-1741181308084.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/img20250305111500256jpg-1741181308084.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/img20250305111500256jpg-1741181308084.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/thumb_img20250305111500256jpg-1741181308084.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/thumb_img20250305111500256jpg-1741181308084.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-03-05T13:28:28.085Z","updated_date":"2025-03-05T13:28:28.085Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4883102696472576%2Fimg20250305111500256jpg-1741181308084.JPG&uploadType=resumable&upload_id=AHMx-iGPVs2iOgw0GoPWBJRbnJi2hs0f9epOiUuClTNCZ2_D_tpBtOTE2YrGLSSgwOutNwe1e6CnIsWD9njKpCj7b9Bzx_RQJA2lVwhAqWK5IA","id":"4875550399135744","title":"Classroom","has_anaglyph":false,"index":2},{"filename":"img20250305111501854jpg-1741181308387.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/img20250305111501854jpg-1741181308387.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/img20250305111501854jpg-1741181308387.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/thumb_img20250305111501854jpg-1741181308387.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/thumb_img20250305111501854jpg-1741181308387.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-03-05T13:28:28.387Z","updated_date":"2025-03-05T13:28:28.387Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4883102696472576%2Fimg20250305111501854jpg-1741181308387.JPG&uploadType=resumable&upload_id=AHMx-iGNoXsxvlgmlYjKvcu0VQbTvccIKrp8WSfbgfoa88PANh5lSf72NbFwSooNZevZQXcWvooLf2uGYoTXH-bt7d-zyz26omN48gmxD4muiQ","id":"6016085809692672","title":"Playground","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"4903385494978560":{"filename":"img20250305111457551jpg-1741181307976.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/img20250305111457551jpg-1741181307976.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/img20250305111457551jpg-1741181307976.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/thumb_img20250305111457551jpg-1741181307976.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/thumb_img20250305111457551jpg-1741181307976.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-03-05T13:28:27.977Z","updated_date":"2025-03-05T13:28:27.977Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4883102696472576%2Fimg20250305111457551jpg-1741181307976.JPG&uploadType=resumable&upload_id=AHMx-iHwWlor-sSPTKsfcWyCbjLQIFtwjrE7p0plirOwl9idmChWCwIEcXoI9LXsUtcOvywEuTDBxxpNz87V9B_mBufx8ivbxnIPMyLRdKDzYik","id":"4903385494978560","title":"Baby Room 1","has_anaglyph":false,"index":0},"4852226663120896":{"filename":"img20250305111458967jpg-1741181307987.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/img20250305111458967jpg-1741181307987.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/img20250305111458967jpg-1741181307987.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/thumb_img20250305111458967jpg-1741181307987.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/thumb_img20250305111458967jpg-1741181307987.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-03-05T13:28:27.987Z","updated_date":"2025-03-05T13:28:27.987Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4883102696472576%2Fimg20250305111458967jpg-1741181307987.JPG&uploadType=resumable&upload_id=AHMx-iFMX5UzahajqMJhv6dvtJ7YnKlojjKL4KTOMMxasipFe0HLMW1_ko7ghtL67sVlrbSVS2578CXMI1AuQo0uCQPe3E96BMWwLHpZvISzGg","id":"4852226663120896","title":"Baby Room 2","has_anaglyph":false,"index":1},"4875550399135744":{"filename":"img20250305111500256jpg-1741181308084.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/img20250305111500256jpg-1741181308084.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/img20250305111500256jpg-1741181308084.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/thumb_img20250305111500256jpg-1741181308084.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/thumb_img20250305111500256jpg-1741181308084.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-03-05T13:28:28.085Z","updated_date":"2025-03-05T13:28:28.085Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4883102696472576%2Fimg20250305111500256jpg-1741181308084.JPG&uploadType=resumable&upload_id=AHMx-iGPVs2iOgw0GoPWBJRbnJi2hs0f9epOiUuClTNCZ2_D_tpBtOTE2YrGLSSgwOutNwe1e6CnIsWD9njKpCj7b9Bzx_RQJA2lVwhAqWK5IA","id":"4875550399135744","title":"Classroom","has_anaglyph":false,"index":2},"6016085809692672":{"filename":"img20250305111501854jpg-1741181308387.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/img20250305111501854jpg-1741181308387.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/img20250305111501854jpg-1741181308387.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/thumb_img20250305111501854jpg-1741181308387.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4883102696472576/thumb_img20250305111501854jpg-1741181308387.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-03-05T13:28:28.387Z","updated_date":"2025-03-05T13:28:28.387Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4883102696472576%2Fimg20250305111501854jpg-1741181308387.JPG&uploadType=resumable&upload_id=AHMx-iGNoXsxvlgmlYjKvcu0VQbTvccIKrp8WSfbgfoa88PANh5lSf72NbFwSooNZevZQXcWvooLf2uGYoTXH-bt7d-zyz26omN48gmxD4muiQ","id":"6016085809692672","title":"Playground","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 = "4883102696472576"; window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1"; window.customUrl = "https://kiddy123.com/"; window.tourSlug = "casa-bambini-newtown-pj"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "iLBIAQSi2"; 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['4903385494978560'] = 0; window.current_image_index = 0; window.current_image_id = 4903385494978560 window.photo_indexes['4852226663120896'] = 1; window.photo_indexes['4875550399135744'] = 2; window.photo_indexes['6016085809692672'] = 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/4883102696472576/thumb_img20250305111457551jpg-1741181307976.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":4903385494978560,"hotspots":[],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1741182073711","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/4883102696472576/4903385494978560/plugin_4826070998056960_1741182073711/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4852226663120896,"hotspots":[],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1741182105976","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/4883102696472576/4852226663120896/plugin_4826070998056960_1741182105976/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4875550399135744,"hotspots":[],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1741182133477","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/4883102696472576/4875550399135744/plugin_4826070998056960_1741182133477/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":6016085809692672,"hotspots":[],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1741182166391","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/4883102696472576/6016085809692672/plugin_4826070998056960_1741182166391/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;