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":"img20250319115308634jpg-1742372928165.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/img20250319115308634jpg-1742372928165.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/img20250319115308634jpg-1742372928165.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/thumb_img20250319115308634jpg-1742372928165.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/thumb_img20250319115308634jpg-1742372928165.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-03-19T08:28:48.166Z","updated_date":"2025-03-19T08:28:48.166Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4848131126591488%2Fimg20250319115308634jpg-1742372928165.JPG&uploadType=resumable&upload_id=AKDAyIuxiUZlL0AvKU00RoCBXC4VS7DhYeSVz8g4M3ccOLV-H-A3bfBh-zWgmu3LHVIyXx6ItKNdgC7_bvDMiKqIIK7nYla7Mp78xZj1Wy0mTCI","id":"4847550098046976","title":"Hall","has_anaglyph":false,"index":0},{"filename":"img20250319115306214jpg-1742372928121.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/img20250319115306214jpg-1742372928121.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/img20250319115306214jpg-1742372928121.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/thumb_img20250319115306214jpg-1742372928121.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/thumb_img20250319115306214jpg-1742372928121.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-03-19T08:28:48.123Z","updated_date":"2025-03-19T08:28:48.123Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4848131126591488%2Fimg20250319115306214jpg-1742372928121.JPG&uploadType=resumable&upload_id=AKDAyIvRP8mFbuWS5nwRMMsdj8F8xNT94ElPcfBZJr980-gHAz_kBPpDqfbk-ueV_sEFwLXk4kdvFNQ-iQE6aEV0kZrw7YJGoRQLfqWKyCgmtw","id":"6042836812169216","title":"Classroom 1","has_anaglyph":false,"index":1},{"filename":"img20250319115309831jpg-1742372928033.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/img20250319115309831jpg-1742372928033.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/img20250319115309831jpg-1742372928033.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/thumb_img20250319115309831jpg-1742372928033.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/thumb_img20250319115309831jpg-1742372928033.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-03-19T08:28:48.034Z","updated_date":"2025-03-19T08:28:48.034Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4848131126591488%2Fimg20250319115309831jpg-1742372928033.JPG&uploadType=resumable&upload_id=AKDAyItFHRrrpha_IrH9PRIlO6sevf5qNjGNPtVfiNPKrsN8ipST38RZqqf6mygAWcablH4L2-uXBiPT6l8iddZsMskrKnYfre9__JjZLsEltQ","id":"4698234352041984","title":"Lighting Room","has_anaglyph":false,"index":2},{"filename":"img20250319115307291jpg-1742372928168.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/img20250319115307291jpg-1742372928168.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/img20250319115307291jpg-1742372928168.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/thumb_img20250319115307291jpg-1742372928168.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/thumb_img20250319115307291jpg-1742372928168.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-03-19T08:28:48.169Z","updated_date":"2025-03-19T08:28:48.169Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4848131126591488%2Fimg20250319115307291jpg-1742372928168.JPG&uploadType=resumable&upload_id=AKDAyIvrFT_QapaB5dHTOTL6pvmTUijshFV2HOMyJW-IODmSXqYLqvKqQQ0Ge2Wqkw2FB-8lz46gpeBDAQCxwGQXx6YqF5JxZ-VUBx8IEPh9pg","id":"6564523639046144","title":"Classroom 2","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"6042836812169216":{"filename":"img20250319115306214jpg-1742372928121.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/img20250319115306214jpg-1742372928121.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/img20250319115306214jpg-1742372928121.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/thumb_img20250319115306214jpg-1742372928121.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/thumb_img20250319115306214jpg-1742372928121.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-03-19T08:28:48.123Z","updated_date":"2025-03-19T08:28:48.123Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4848131126591488%2Fimg20250319115306214jpg-1742372928121.JPG&uploadType=resumable&upload_id=AKDAyIvRP8mFbuWS5nwRMMsdj8F8xNT94ElPcfBZJr980-gHAz_kBPpDqfbk-ueV_sEFwLXk4kdvFNQ-iQE6aEV0kZrw7YJGoRQLfqWKyCgmtw","id":"6042836812169216","title":"Classroom 1","has_anaglyph":false,"index":1},"6564523639046144":{"filename":"img20250319115307291jpg-1742372928168.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/img20250319115307291jpg-1742372928168.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/img20250319115307291jpg-1742372928168.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/thumb_img20250319115307291jpg-1742372928168.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/thumb_img20250319115307291jpg-1742372928168.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-03-19T08:28:48.169Z","updated_date":"2025-03-19T08:28:48.169Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4848131126591488%2Fimg20250319115307291jpg-1742372928168.JPG&uploadType=resumable&upload_id=AKDAyIvrFT_QapaB5dHTOTL6pvmTUijshFV2HOMyJW-IODmSXqYLqvKqQQ0Ge2Wqkw2FB-8lz46gpeBDAQCxwGQXx6YqF5JxZ-VUBx8IEPh9pg","id":"6564523639046144","title":"Classroom 2","has_anaglyph":false,"index":3},"4847550098046976":{"filename":"img20250319115308634jpg-1742372928165.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/img20250319115308634jpg-1742372928165.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/img20250319115308634jpg-1742372928165.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/thumb_img20250319115308634jpg-1742372928165.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/thumb_img20250319115308634jpg-1742372928165.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-03-19T08:28:48.166Z","updated_date":"2025-03-19T08:28:48.166Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4848131126591488%2Fimg20250319115308634jpg-1742372928165.JPG&uploadType=resumable&upload_id=AKDAyIuxiUZlL0AvKU00RoCBXC4VS7DhYeSVz8g4M3ccOLV-H-A3bfBh-zWgmu3LHVIyXx6ItKNdgC7_bvDMiKqIIK7nYla7Mp78xZj1Wy0mTCI","id":"4847550098046976","title":"Hall","has_anaglyph":false,"index":0},"4698234352041984":{"filename":"img20250319115309831jpg-1742372928033.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/img20250319115309831jpg-1742372928033.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/img20250319115309831jpg-1742372928033.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/thumb_img20250319115309831jpg-1742372928033.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4848131126591488/thumb_img20250319115309831jpg-1742372928033.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-03-19T08:28:48.034Z","updated_date":"2025-03-19T08:28:48.034Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4848131126591488%2Fimg20250319115309831jpg-1742372928033.JPG&uploadType=resumable&upload_id=AKDAyItFHRrrpha_IrH9PRIlO6sevf5qNjGNPtVfiNPKrsN8ipST38RZqqf6mygAWcablH4L2-uXBiPT6l8iddZsMskrKnYfre9__JjZLsEltQ","id":"4698234352041984","title":"Lighting Room","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 = "4848131126591488"; window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1"; window.customUrl = "https://kiddy123.com/"; window.tourSlug = "klc-preschool-molek"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "9xVuG1W-g"; 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['4847550098046976'] = 0; window.current_image_index = 0; window.current_image_id = 4847550098046976 window.photo_indexes['6042836812169216'] = 1; window.photo_indexes['4698234352041984'] = 2; window.photo_indexes['6564523639046144'] = 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/4848131126591488/thumb_img20250319115308634jpg-1742372928165.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":4847550098046976,"hotspots":[{"id":"hotspot_4847550098046976_4698234352041984","from":4847550098046976,"to":4698234352041984,"position":{"x":-0.9525526075867634,"y":-0.0248938188156707,"z":-0.3033542937959343},"toTitle":"Lighting Room"},{"id":"hotspot_4847550098046976_6042836812169216","from":4847550098046976,"to":6042836812169216,"position":{"x":-0.20048374376013312,"y":0.0029414031633637726,"z":-0.9796926133412213},"toTitle":"Classroom 1"},{"id":"hotspot_4847550098046976_6564523639046144","from":4847550098046976,"to":6564523639046144,"position":{"x":-0.7298316092372759,"y":0.07824216156219188,"z":0.6791347335486562},"toTitle":"Classroom 2"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1742750327706","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/4848131126591488/4847550098046976/plugin_4826070998056960_1742750327706/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":6042836812169216,"hotspots":[{"id":"hotspot_6042836812169216_4847550098046976","from":6042836812169216,"to":4847550098046976,"position":{"x":0.9818128139071755,"y":-0.017303825199278363,"z":-0.189061302442215},"toTitle":"Hall"},{"id":"hotspot_6042836812169216_4698234352041984","from":6042836812169216,"to":4698234352041984,"position":{"x":0.8974065406432806,"y":0.017490366669229342,"z":0.4408577864622965},"toTitle":"Lighting Room"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1742750364375","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/4848131126591488/6042836812169216/plugin_4826070998056960_1742750364375/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4698234352041984,"hotspots":[{"id":"hotspot_4698234352041984_4847550098046976","from":4698234352041984,"to":4847550098046976,"position":{"x":0.8732141473426326,"y":-0.02038265333691808,"z":0.4869102590042916},"toTitle":"Hall"},{"id":"hotspot_4698234352041984_6042836812169216","from":4698234352041984,"to":6042836812169216,"position":{"x":0.9888871945741234,"y":0.029522514355033225,"z":-0.14570702643824873},"toTitle":"Classroom 1"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1742750397455","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/4848131126591488/4698234352041984/plugin_4826070998056960_1742750397455/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":6564523639046144,"hotspots":[{"id":"hotspot_6564523639046144_4847550098046976","from":6564523639046144,"to":4847550098046976,"position":{"x":-0.2279495055646807,"y":-0.012843434046480499,"z":0.9735882441333766},"toTitle":"Hall"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1742750430288","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/4848131126591488/6564523639046144/plugin_4826070998056960_1742750430288/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;