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":"img20250619162432263jpg-1750321567949.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/img20250619162432263jpg-1750321567949.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/img20250619162432263jpg-1750321567949.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/thumb_img20250619162432263jpg-1750321567949.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/thumb_img20250619162432263jpg-1750321567949.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-06-19T08:26:07.949Z","updated_date":"2025-06-19T08:26:07.949Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5693301468430336%2Fimg20250619162432263jpg-1750321567949.jpg&uploadType=resumable&upload_id=ABgVH88XBkCdERuP8xYsvrsdLl-RkdEwqAqybBlF104rKteLhQiDHPgOeoj-Hnl11eibwGopSRuIY_R9cNhFzw8v0pORmtz1xjg6aWfM6ZVMp8E","id":"5633461064826880","title":"Entrance","has_anaglyph":false,"index":0},{"filename":"img20250619162703366jpg-1750321662247.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/img20250619162703366jpg-1750321662247.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/img20250619162703366jpg-1750321662247.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/thumb_img20250619162703366jpg-1750321662247.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/thumb_img20250619162703366jpg-1750321662247.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-06-19T08:27:42.248Z","updated_date":"2025-06-19T08:27:42.248Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5693301468430336%2Fimg20250619162703366jpg-1750321662247.jpg&uploadType=resumable&upload_id=ABgVH8_3FKsgAZVF15-hV8-iUruC2HYUq2gOczpbEe4V2k91G2s6qpo4GX7cnKPPBvWJCdnH0s2JERX2xg7UPtZTsGeOWubpVSG8_C_k7qayylA","id":"6161810895929344","title":"Indoor Playground","has_anaglyph":false,"index":1},{"filename":"img20250619123452206jpg-1750321318567.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/img20250619123452206jpg-1750321318567.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/img20250619123452206jpg-1750321318567.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/thumb_img20250619123452206jpg-1750321318567.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/thumb_img20250619123452206jpg-1750321318567.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-06-19T08:21:58.567Z","updated_date":"2025-06-19T08:21:58.567Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5693301468430336%2Fimg20250619123452206jpg-1750321318567.jpg&uploadType=resumable&upload_id=ABgVH8-ywFxEtUH6aZOoHpdCNkPacegO02_3avTVSUCKTD_sf1tnkWhfQUvaeQGAoeW3tohpHgrcQeLPzX7Dgu2eJM5gvUM8EzJCiC7JrOpbB5E","id":"4788522114351104","title":"Classroom 1","has_anaglyph":false,"index":2},{"filename":"img20250619123456548jpg-1750321318432.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/img20250619123456548jpg-1750321318432.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/img20250619123456548jpg-1750321318432.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/thumb_img20250619123456548jpg-1750321318432.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/thumb_img20250619123456548jpg-1750321318432.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-06-19T08:21:58.432Z","updated_date":"2025-06-19T08:21:58.432Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5693301468430336%2Fimg20250619123456548jpg-1750321318432.jpg&uploadType=resumable&upload_id=ABgVH89sltf-BMdvIznq-IeWXXhLUMfoWNaqJegF-2l02jM3M9-opaRFStbwjqhdFixs_O3gaOt-ndq0GYT49VGkT_abD36AUya0umtJONAmZyg","id":"4818618225262592","title":"Science Room","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"4788522114351104":{"filename":"img20250619123452206jpg-1750321318567.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/img20250619123452206jpg-1750321318567.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/img20250619123452206jpg-1750321318567.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/thumb_img20250619123452206jpg-1750321318567.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/thumb_img20250619123452206jpg-1750321318567.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-06-19T08:21:58.567Z","updated_date":"2025-06-19T08:21:58.567Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5693301468430336%2Fimg20250619123452206jpg-1750321318567.jpg&uploadType=resumable&upload_id=ABgVH8-ywFxEtUH6aZOoHpdCNkPacegO02_3avTVSUCKTD_sf1tnkWhfQUvaeQGAoeW3tohpHgrcQeLPzX7Dgu2eJM5gvUM8EzJCiC7JrOpbB5E","id":"4788522114351104","title":"Classroom 1","has_anaglyph":false,"index":2},"5633461064826880":{"filename":"img20250619162432263jpg-1750321567949.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/img20250619162432263jpg-1750321567949.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/img20250619162432263jpg-1750321567949.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/thumb_img20250619162432263jpg-1750321567949.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/thumb_img20250619162432263jpg-1750321567949.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-06-19T08:26:07.949Z","updated_date":"2025-06-19T08:26:07.949Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5693301468430336%2Fimg20250619162432263jpg-1750321567949.jpg&uploadType=resumable&upload_id=ABgVH88XBkCdERuP8xYsvrsdLl-RkdEwqAqybBlF104rKteLhQiDHPgOeoj-Hnl11eibwGopSRuIY_R9cNhFzw8v0pORmtz1xjg6aWfM6ZVMp8E","id":"5633461064826880","title":"Entrance","has_anaglyph":false,"index":0},"4818618225262592":{"filename":"img20250619123456548jpg-1750321318432.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/img20250619123456548jpg-1750321318432.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/img20250619123456548jpg-1750321318432.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/thumb_img20250619123456548jpg-1750321318432.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/thumb_img20250619123456548jpg-1750321318432.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-06-19T08:21:58.432Z","updated_date":"2025-06-19T08:21:58.432Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5693301468430336%2Fimg20250619123456548jpg-1750321318432.jpg&uploadType=resumable&upload_id=ABgVH89sltf-BMdvIznq-IeWXXhLUMfoWNaqJegF-2l02jM3M9-opaRFStbwjqhdFixs_O3gaOt-ndq0GYT49VGkT_abD36AUya0umtJONAmZyg","id":"4818618225262592","title":"Science Room","has_anaglyph":false,"index":3},"6161810895929344":{"filename":"img20250619162703366jpg-1750321662247.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/img20250619162703366jpg-1750321662247.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/img20250619162703366jpg-1750321662247.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/thumb_img20250619162703366jpg-1750321662247.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5693301468430336/thumb_img20250619162703366jpg-1750321662247.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-06-19T08:27:42.248Z","updated_date":"2025-06-19T08:27:42.248Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5693301468430336%2Fimg20250619162703366jpg-1750321662247.jpg&uploadType=resumable&upload_id=ABgVH8_3FKsgAZVF15-hV8-iUruC2HYUq2gOczpbEe4V2k91G2s6qpo4GX7cnKPPBvWJCdnH0s2JERX2xg7UPtZTsGeOWubpVSG8_C_k7qayylA","id":"6161810895929344","title":"Indoor Playground","has_anaglyph":false,"index":1}}; 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 = "5693301468430336"; window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1"; window.customUrl = "https://kiddy123.com/"; window.tourSlug = "kinder-koala-pj"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "1PjIIQwDt"; 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['5633461064826880'] = 0; window.current_image_index = 0; window.current_image_id = 5633461064826880 window.photo_indexes['6161810895929344'] = 1; window.photo_indexes['4788522114351104'] = 2; window.photo_indexes['4818618225262592'] = 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/5693301468430336/thumb_img20250619162432263jpg-1750321567949.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":5633461064826880,"hotspots":[{"id":"hotspot_5633461064826880_6161810895929344","from":5633461064826880,"to":6161810895929344,"position":{"x":-0.8129041507411455,"y":-0.14144172237936578,"z":-0.5649611321836003},"toTitle":"Indoor Playground"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1750409573398","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/5693301468430336/5633461064826880/plugin_4826070998056960_1750409573398/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":6161810895929344,"hotspots":[{"id":"hotspot_6161810895929344_5633461064826880","from":6161810895929344,"to":5633461064826880,"position":{"x":0.6778330118993666,"y":-0.0402781930568012,"z":-0.7341117593006613},"toTitle":"Entrance"},{"id":"hotspot_6161810895929344_4788522114351104","from":6161810895929344,"to":4788522114351104,"position":{"x":0.21283935386059233,"y":0.07237150332734439,"z":0.9744032917403072},"toTitle":"Classroom 1"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1750409717749","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/5693301468430336/6161810895929344/plugin_4826070998056960_1750409717749/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4788522114351104,"hotspots":[{"id":"hotspot_4788522114351104_5633461064826880","from":4788522114351104,"to":5633461064826880,"position":{"x":0.346603023137372,"y":-0.15448408866878557,"z":-0.9252032267022251},"toTitle":"Entrance"},{"id":"hotspot_4788522114351104_4818618225262592","from":4788522114351104,"to":4818618225262592,"position":{"x":0.9909199491449904,"y":0.08674351743452417,"z":-0.1027288497432736},"toTitle":"Science Room"},{"id":"hotspot_4788522114351104_6161810895929344","from":4788522114351104,"to":6161810895929344,"position":{"x":0.9519598852161673,"y":0.08565425394553357,"z":0.29399953353747965},"toTitle":"Indoor Playground"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1750409747747","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/5693301468430336/4788522114351104/plugin_4826070998056960_1750409747747/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4818618225262592,"hotspots":[{"id":"hotspot_4818618225262592_5633461064826880","from":4818618225262592,"to":5633461064826880,"position":{"x":0.12796262096794161,"y":-0.018143192899533724,"z":0.9916130254219261},"toTitle":"Entrance"},{"id":"hotspot_4818618225262592_4788522114351104","from":4818618225262592,"to":4788522114351104,"position":{"x":-0.9441314618719684,"y":-0.06436707989238154,"z":-0.3232223100740843},"toTitle":"Classroom 1"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1750409774515","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/5693301468430336/4818618225262592/plugin_4826070998056960_1750409774515/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;