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 = [{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5191108415979520%2Fimg20240326102452265jpg-1711593236280.JPG&uploadType=resumable&upload_id=ABPtcPpvkMlaM9PxNXkmp1erINHV85QwJr1t2MNJFEB1wXIY-EOTjKtZGUa2hdHesVHD_I77-tGnvgecjBERZHxK--5zEtVyJRWxsVD8i504nDXS","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/img20240326102452265jpg-1711593236280.JPG","rotation":0,"thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/thumb_img20240326102452265jpg-1711593236280.JPG","title":"Dinning Area","version":"v3","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/img20240326102452265jpg-1711593236280.JPG","filename":"img20240326102452265jpg-1711593236280.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/thumb_img20240326102452265jpg-1711593236280.JPG","is_stereo":false,"photo_type":"360_mono","created_date":"2024-03-28T02:33:56.281Z","updated_date":"2024-03-28T02:33:56.281Z","id":"6240845466435584","sort_order":1,"status":"active","has_anaglyph":false,"index":0},{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5191108415979520%2Fimg20240326102502169jpg-1711593237031.JPG&uploadType=resumable&upload_id=ABPtcPoJxjKeBs85k3cf8Mqdr7Qo-WnVyOo1zAx-wq2jDH15lsG9Zo_vX9cMH8_t_cQN_mbBeCM2BFNPnDH98ohaU7bGkcNNGNzCxvpU4I4zBmxD6Q","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/img20240326102502169jpg-1711593237031.JPG","rotation":0,"thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/thumb_img20240326102502169jpg-1711593237031.JPG","title":"Classroom","version":"v3","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/img20240326102502169jpg-1711593237031.JPG","filename":"img20240326102502169jpg-1711593237031.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/thumb_img20240326102502169jpg-1711593237031.JPG","is_stereo":false,"photo_type":"360_mono","created_date":"2024-03-28T02:33:57.032Z","updated_date":"2024-03-28T02:33:57.032Z","id":"5661611480055808","sort_order":2,"status":"active","has_anaglyph":false,"index":1},{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5191108415979520%2Fimg20240326102504953jpg-1711593236254.JPG&uploadType=resumable&upload_id=ABPtcPqRnEzcOliHVkxdASdFQqzId3jOJU6UEvfMnHNwoltaGuWuneJ2u0SwAuerOkHel1kVbZIWwVfqMSiDBiIsE-JKM5IQJeLJJDY0E-h0yLOYuA","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/img20240326102504953jpg-1711593236254.JPG","rotation":0,"thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/thumb_img20240326102504953jpg-1711593236254.JPG","title":"Library Corner","version":"v3","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/img20240326102504953jpg-1711593236254.JPG","filename":"img20240326102504953jpg-1711593236254.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/thumb_img20240326102504953jpg-1711593236254.JPG","is_stereo":false,"photo_type":"360_mono","created_date":"2024-03-28T02:33:56.256Z","updated_date":"2024-03-28T02:33:56.256Z","id":"4676514090057728","sort_order":3,"status":"active","has_anaglyph":false,"index":2},{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5191108415979520%2Fimg20240326102509903jpg-1711593236786.JPG&uploadType=resumable&upload_id=ABPtcPpYk9mzimQtk21kPqn9zzjcoKXIxtjCCh1en_g0YPPIRCmblkbL94em2bQe6C-gqZ35OCk_q_bStb9HbtKs-5X0EDJ-9t0OB5rPK7u2VEtU","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/img20240326102509903jpg-1711593236786.JPG","rotation":0,"thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/thumb_img20240326102509903jpg-1711593236786.JPG","title":"Playground","version":"v3","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/img20240326102509903jpg-1711593236786.JPG","filename":"img20240326102509903jpg-1711593236786.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/thumb_img20240326102509903jpg-1711593236786.JPG","is_stereo":false,"photo_type":"360_mono","created_date":"2024-03-28T02:33:56.788Z","updated_date":"2024-03-28T02:33:56.788Z","id":"4678549904556032","sort_order":4,"status":"active","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"6240845466435584":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5191108415979520%2Fimg20240326102452265jpg-1711593236280.JPG&uploadType=resumable&upload_id=ABPtcPpvkMlaM9PxNXkmp1erINHV85QwJr1t2MNJFEB1wXIY-EOTjKtZGUa2hdHesVHD_I77-tGnvgecjBERZHxK--5zEtVyJRWxsVD8i504nDXS","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/img20240326102452265jpg-1711593236280.JPG","rotation":0,"thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/thumb_img20240326102452265jpg-1711593236280.JPG","title":"Dinning Area","version":"v3","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/img20240326102452265jpg-1711593236280.JPG","filename":"img20240326102452265jpg-1711593236280.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/thumb_img20240326102452265jpg-1711593236280.JPG","is_stereo":false,"photo_type":"360_mono","created_date":"2024-03-28T02:33:56.281Z","updated_date":"2024-03-28T02:33:56.281Z","id":"6240845466435584","sort_order":1,"status":"active","has_anaglyph":false,"index":0},"5661611480055808":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5191108415979520%2Fimg20240326102502169jpg-1711593237031.JPG&uploadType=resumable&upload_id=ABPtcPoJxjKeBs85k3cf8Mqdr7Qo-WnVyOo1zAx-wq2jDH15lsG9Zo_vX9cMH8_t_cQN_mbBeCM2BFNPnDH98ohaU7bGkcNNGNzCxvpU4I4zBmxD6Q","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/img20240326102502169jpg-1711593237031.JPG","rotation":0,"thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/thumb_img20240326102502169jpg-1711593237031.JPG","title":"Classroom","version":"v3","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/img20240326102502169jpg-1711593237031.JPG","filename":"img20240326102502169jpg-1711593237031.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/thumb_img20240326102502169jpg-1711593237031.JPG","is_stereo":false,"photo_type":"360_mono","created_date":"2024-03-28T02:33:57.032Z","updated_date":"2024-03-28T02:33:57.032Z","id":"5661611480055808","sort_order":2,"status":"active","has_anaglyph":false,"index":1},"4676514090057728":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5191108415979520%2Fimg20240326102504953jpg-1711593236254.JPG&uploadType=resumable&upload_id=ABPtcPqRnEzcOliHVkxdASdFQqzId3jOJU6UEvfMnHNwoltaGuWuneJ2u0SwAuerOkHel1kVbZIWwVfqMSiDBiIsE-JKM5IQJeLJJDY0E-h0yLOYuA","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/img20240326102504953jpg-1711593236254.JPG","rotation":0,"thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/thumb_img20240326102504953jpg-1711593236254.JPG","title":"Library Corner","version":"v3","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/img20240326102504953jpg-1711593236254.JPG","filename":"img20240326102504953jpg-1711593236254.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/thumb_img20240326102504953jpg-1711593236254.JPG","is_stereo":false,"photo_type":"360_mono","created_date":"2024-03-28T02:33:56.256Z","updated_date":"2024-03-28T02:33:56.256Z","id":"4676514090057728","sort_order":3,"status":"active","has_anaglyph":false,"index":2},"4678549904556032":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5191108415979520%2Fimg20240326102509903jpg-1711593236786.JPG&uploadType=resumable&upload_id=ABPtcPpYk9mzimQtk21kPqn9zzjcoKXIxtjCCh1en_g0YPPIRCmblkbL94em2bQe6C-gqZ35OCk_q_bStb9HbtKs-5X0EDJ-9t0OB5rPK7u2VEtU","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/img20240326102509903jpg-1711593236786.JPG","rotation":0,"thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/thumb_img20240326102509903jpg-1711593236786.JPG","title":"Playground","version":"v3","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/img20240326102509903jpg-1711593236786.JPG","filename":"img20240326102509903jpg-1711593236786.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/thumb_img20240326102509903jpg-1711593236786.JPG","is_stereo":false,"photo_type":"360_mono","created_date":"2024-03-28T02:33:56.788Z","updated_date":"2024-03-28T02:33:56.788Z","id":"4678549904556032","sort_order":4,"status":"active","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 = "5191108415979520"; window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1"; window.customUrl = "https://kiddy123.com/"; window.tourSlug = "kitakids-kl-sentral"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "BW4vkFnLG"; 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['6240845466435584'] = 0; window.current_image_index = 0; window.current_image_id = 6240845466435584 window.photo_indexes['5661611480055808'] = 1; window.photo_indexes['4676514090057728'] = 2; window.photo_indexes['4678549904556032'] = 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/5191108415979520/thumb_img20240326102452265jpg-1711593236280.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 = {"orbs":[{"infoHotspots":[],"plugins":[{"shader":"flat","side":"front","visible":true,"instanceName":"Image","src":"https://storage.googleapis.com/orbix360-prod-assets/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/6240845466435584/plugin_4826070998056960_1711593468187/logo.png","pluginId":"4826070998056960","rotation":{"x":"-100","y":"65","z":"0"},"scale":{"x":"1","y":"1","z":"1"},"transparent":true,"instanceId":"plugin_4826070998056960_1711593468187","repeat":"1 1","width":3,"additional_components":"","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/script.js","templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/template.html","position":{"x":"0.1","y":"-0.9","z":"0.01"},"schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/schema.json","opacity":"1.0","height":"3"}],"id":6240845466435584,"hotspots":[{"toTitle":"Library Corner","from":6240845466435584,"id":"hotspot_6240845466435584_4676514090057728","to":4676514090057728,"position":{"x":0.34494487073076546,"y":-0.047284200954843335,"z":-0.93743119240646}}]},{"infoHotspots":[],"plugins":[{"shader":"flat","side":"front","visible":true,"instanceName":"Image","src":"https://storage.googleapis.com/orbix360-prod-assets/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/5661611480055808/plugin_4826070998056960_1711593898377/logo.png","pluginId":"4826070998056960","rotation":{"x":"-100","y":"65","z":"0"},"scale":{"x":"1","y":"1","z":"1"},"transparent":true,"instanceId":"plugin_4826070998056960_1711593898377","repeat":"1 1","width":3,"additional_components":"","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/script.js","templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/template.html","position":{"x":"0.1","y":"-0.9","z":"0.01"},"schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/schema.json","opacity":"1.0","height":"3"}],"id":5661611480055808,"hotspots":[{"toTitle":"Dinning Area","from":5661611480055808,"id":"hotspot_5661611480055808_6240845466435584","to":6240845466435584,"position":{"x":-0.2418859111164522,"y":0.024155618919394453,"z":-0.9700039752897845}},{"toTitle":"Library Corner","from":5661611480055808,"id":"hotspot_5661611480055808_4676514090057728","to":4676514090057728,"position":{"x":0.8464258412144353,"y":0.04055809752610952,"z":-0.5309598252688222}}]},{"infoHotspots":[],"plugins":[{"shader":"flat","side":"front","visible":true,"instanceName":"Image","src":"https://storage.googleapis.com/orbix360-prod-assets/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/4676514090057728/plugin_4826070998056960_1711593992444/logo.png","pluginId":"4826070998056960","rotation":{"x":"-100","y":"65","z":"0"},"scale":{"x":"1","y":"1","z":"1"},"transparent":true,"instanceId":"plugin_4826070998056960_1711593992444","repeat":"1 1","width":3,"additional_components":"","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/script.js","templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/template.html","position":{"x":"0.1","y":"-0.9","z":"0.01"},"schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/schema.json","opacity":"1.0","height":"3"}],"id":4676514090057728,"hotspots":[{"toTitle":"Playground","from":4676514090057728,"id":"hotspot_4676514090057728_4678549904556032","to":4678549904556032,"position":{"x":-0.07144796146944259,"y":-0.12692628110293427,"z":-0.9893355891542768}},{"toTitle":"Classroom","from":4676514090057728,"id":"hotspot_4676514090057728_5661611480055808","to":5661611480055808,"position":{"x":0.5121114106791029,"y":0.018827317008952103,"z":0.858712661596709}},{"toTitle":"Dinning Area","from":4676514090057728,"id":"hotspot_4676514090057728_6240845466435584","to":6240845466435584,"position":{"x":0.4147134886990424,"y":0.059056277363334124,"z":0.9080336328545623}}]},{"infoHotspots":[],"plugins":[{"shader":"flat","side":"front","visible":true,"instanceName":"Image","src":"https://storage.googleapis.com/orbix360-prod-assets/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5191108415979520/4678549904556032/plugin_4826070998056960_1711594031127/logo.png","pluginId":"4826070998056960","rotation":{"x":"-100","y":"65","z":"0"},"scale":{"x":"1","y":"1","z":"1"},"transparent":true,"instanceId":"plugin_4826070998056960_1711594031127","repeat":"1 1","width":3,"additional_components":"","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/script.js","templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/template.html","position":{"x":"0.1","y":"-0.9","z":"0.01"},"schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/schema.json","opacity":"1.0","height":"3"}],"id":4678549904556032,"hotspots":[{"toTitle":"Dinning Area","from":4678549904556032,"id":"hotspot_4678549904556032_6240845466435584","to":6240845466435584,"position":{"x":0.8629351922419466,"y":0.0023379435998018123,"z":0.5053092004011787}},{"toTitle":"Classroom","from":4678549904556032,"id":"hotspot_4678549904556032_5661611480055808","to":5661611480055808,"position":{"x":0.9372769396859906,"y":-0.009787479121142067,"z":0.34844819354577994}},{"toTitle":"Library Corner","from":4678549904556032,"id":"hotspot_4678549904556032_4676514090057728","to":4676514090057728,"position":{"x":0.8078236014556829,"y":-0.1304269320869595,"z":0.5748128776545928}}]}],"autorotate":{"enabled":true},"versionNumber":3}; window.brandingAllowed = true; window.upgradeCheckoutSessionStatus = 'complete'; 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;