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":"img20250321132706891jpg-1742751782457.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/img20250321132706891jpg-1742751782457.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/img20250321132706891jpg-1742751782457.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/thumb_img20250321132706891jpg-1742751782457.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/thumb_img20250321132706891jpg-1742751782457.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-03-23T17:43:02.457Z","updated_date":"2025-03-23T17:43:02.457Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5449083084865536%2Fimg20250321132706891jpg-1742751782457.JPG&uploadType=resumable&upload_id=AKDAyIs-RuMGprbtuCBDnV7RpuBoFdlMADzLh-IH1L7m1eJnwNpJ2hinVfCFWSOANyO1svcBGqPAYkCzITm0JIlMbaYbY1ubN-5rBgYsY5s7MPM","id":"4805650947244032","title":"Water Park","has_anaglyph":false,"index":0},{"filename":"img20250321132708357jpg-1742751782464.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/img20250321132708357jpg-1742751782464.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/img20250321132708357jpg-1742751782464.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/thumb_img20250321132708357jpg-1742751782464.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/thumb_img20250321132708357jpg-1742751782464.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-03-23T17:43:02.464Z","updated_date":"2025-03-23T17:43:02.464Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5449083084865536%2Fimg20250321132708357jpg-1742751782464.JPG&uploadType=resumable&upload_id=AKDAyIvsMHK8xFePA-ZNW4UiVZaEn1UJtUH-84RyIZXLMqEt9mbqVrAp1c8yaP92c_Xdjq1y__WDKmlDgd8lgwnpWxNpCZMA8DUQtQqzqifHLg","id":"4874691674112000","title":"Dinning Area","has_anaglyph":false,"index":1},{"filename":"img20250321132709966jpg-1742751782470.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/img20250321132709966jpg-1742751782470.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/img20250321132709966jpg-1742751782470.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/thumb_img20250321132709966jpg-1742751782470.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/thumb_img20250321132709966jpg-1742751782470.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-03-23T17:43:02.470Z","updated_date":"2025-03-23T17:43:02.470Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5449083084865536%2Fimg20250321132709966jpg-1742751782470.JPG&uploadType=resumable&upload_id=AKDAyIs0vN_ZmhEvBqVrGGeiIqm-62rCwkzFxjmRM9idxCkc2F7AvX8LaL-JDjA7hTwgaukckZnj3myIkEwwM566T9tR69mKDHpzTGgSfXpPaDg","id":"5998884197236736","title":"Playground","has_anaglyph":false,"index":2}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"4805650947244032":{"filename":"img20250321132706891jpg-1742751782457.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/img20250321132706891jpg-1742751782457.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/img20250321132706891jpg-1742751782457.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/thumb_img20250321132706891jpg-1742751782457.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/thumb_img20250321132706891jpg-1742751782457.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-03-23T17:43:02.457Z","updated_date":"2025-03-23T17:43:02.457Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5449083084865536%2Fimg20250321132706891jpg-1742751782457.JPG&uploadType=resumable&upload_id=AKDAyIs-RuMGprbtuCBDnV7RpuBoFdlMADzLh-IH1L7m1eJnwNpJ2hinVfCFWSOANyO1svcBGqPAYkCzITm0JIlMbaYbY1ubN-5rBgYsY5s7MPM","id":"4805650947244032","title":"Water Park","has_anaglyph":false,"index":0},"4874691674112000":{"filename":"img20250321132708357jpg-1742751782464.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/img20250321132708357jpg-1742751782464.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/img20250321132708357jpg-1742751782464.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/thumb_img20250321132708357jpg-1742751782464.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/thumb_img20250321132708357jpg-1742751782464.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-03-23T17:43:02.464Z","updated_date":"2025-03-23T17:43:02.464Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5449083084865536%2Fimg20250321132708357jpg-1742751782464.JPG&uploadType=resumable&upload_id=AKDAyIvsMHK8xFePA-ZNW4UiVZaEn1UJtUH-84RyIZXLMqEt9mbqVrAp1c8yaP92c_Xdjq1y__WDKmlDgd8lgwnpWxNpCZMA8DUQtQqzqifHLg","id":"4874691674112000","title":"Dinning Area","has_anaglyph":false,"index":1},"5998884197236736":{"filename":"img20250321132709966jpg-1742751782470.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/img20250321132709966jpg-1742751782470.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/img20250321132709966jpg-1742751782470.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/thumb_img20250321132709966jpg-1742751782470.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5449083084865536/thumb_img20250321132709966jpg-1742751782470.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-03-23T17:43:02.470Z","updated_date":"2025-03-23T17:43:02.470Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5449083084865536%2Fimg20250321132709966jpg-1742751782470.JPG&uploadType=resumable&upload_id=AKDAyIs0vN_ZmhEvBqVrGGeiIqm-62rCwkzFxjmRM9idxCkc2F7AvX8LaL-JDjA7hTwgaukckZnj3myIkEwwM566T9tR69mKDHpzTGgSfXpPaDg","id":"5998884197236736","title":"Playground","has_anaglyph":false,"index":2}}; 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 = "5449083084865536"; window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1"; window.customUrl = "https://kiddy123.com/"; window.tourSlug = "small-wonder-adda-height"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "j_LI9r6sf"; 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['4805650947244032'] = 0; window.current_image_index = 0; window.current_image_id = 4805650947244032 window.photo_indexes['4874691674112000'] = 1; window.photo_indexes['5998884197236736'] = 2; 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/5449083084865536/thumb_img20250321132706891jpg-1742751782457.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":4805650947244032,"hotspots":[],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1742752078320","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/5449083084865536/4805650947244032/plugin_4826070998056960_1742752078320/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4874691674112000,"hotspots":[{"id":"hotspot_4874691674112000_4805650947244032","from":4874691674112000,"to":4805650947244032,"position":{"x":0.6708526488929226,"y":0.01837598921547689,"z":0.7413629654182232},"toTitle":"Water Park"},{"id":"hotspot_4874691674112000_5998884197236736","from":4874691674112000,"to":5998884197236736,"position":{"x":-0.8574600218462584,"y":0.05350765650899058,"z":0.5117609223361332},"toTitle":"Playground"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1742752048422","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/5449083084865536/4874691674112000/plugin_4826070998056960_1742752048422/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":5998884197236736,"hotspots":[{"id":"hotspot_5998884197236736_4874691674112000","from":5998884197236736,"to":4874691674112000,"position":{"x":0.6475671315736452,"y":0.04528743237959207,"z":-0.7606614612125062},"toTitle":"Dinning Area"},{"id":"hotspot_5998884197236736_4805650947244032","from":5998884197236736,"to":4805650947244032,"position":{"x":0.9556886625097513,"y":0.10634528743365858,"z":0.2744992899644292},"toTitle":"Water Park"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1742752014877","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/5449083084865536/5998884197236736/plugin_4826070998056960_1742752014877/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;