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":"20260804120518742jpg-1785944716001.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/20260804120518742jpg-1785944716001.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/20260804120518742jpg-1785944716001.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/thumb_20260804120518742jpg-1785944716001.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/thumb_20260804120518742jpg-1785944716001.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":5,"status":"active","created_date":"2026-08-05T15:45:16.001Z","updated_date":"2026-08-05T15:45:16.001Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5798021583339520%2F20260804120518742jpg-1785944716001.jpg&uploadType=resumable&upload_id=AKhXX7Kc1ZBhn6bhqWFPCHmfw4B_67eMuqwCSLYEFYN6QkGfWAduqSQm1OC3ngwW9JI3oxEsEwqUSdAxa54bTlPW67E38h_6pNa26ikG5gYQesg","id":"5351916257148928","title":"Outdoor Play Area","has_anaglyph":false,"index":0},{"filename":"20260804120527740jpg-1785944716010.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/20260804120527740jpg-1785944716010.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/20260804120527740jpg-1785944716010.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/thumb_20260804120527740jpg-1785944716010.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/thumb_20260804120527740jpg-1785944716010.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":6,"status":"active","created_date":"2026-08-05T15:45:16.011Z","updated_date":"2026-08-05T15:45:16.011Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5798021583339520%2F20260804120527740jpg-1785944716010.jpg&uploadType=resumable&upload_id=AKhXX7KeyrIDe0fbBrYsv7aGDJ9p9tNd1SkDI8Z3eH65i4S8HFeSb0ITuDmNA1BNIlJBH71Z_5q2OVCF4Zzn2QUbKmXRm4OjotgMNxVl9kba4BI","id":"6525312286326784","title":"Montessori Area","has_anaglyph":false,"index":1},{"filename":"20260804123413390jpg-1785944716016.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/20260804123413390jpg-1785944716016.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/20260804123413390jpg-1785944716016.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/thumb_20260804123413390jpg-1785944716016.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/thumb_20260804123413390jpg-1785944716016.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":7,"status":"active","created_date":"2026-08-05T15:45:16.017Z","updated_date":"2026-08-05T15:45:16.017Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5798021583339520%2F20260804123413390jpg-1785944716016.jpg&uploadType=resumable&upload_id=AKhXX7JvL2ZZS7ARAW2loNp_lieOesHatdadSWqGEnRdqdx82dQMKWBy0MMVLPsursW6FeiRPWaQLLSHzTCjNUksN6dZsbi2nFQlbIYV-LmEuQ","id":"4896369636540416","title":"Cooking Area","has_anaglyph":false,"index":2},{"filename":"20260804123624233jpg-1785944716009.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/20260804123624233jpg-1785944716009.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/20260804123624233jpg-1785944716009.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/thumb_20260804123624233jpg-1785944716009.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/thumb_20260804123624233jpg-1785944716009.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":8,"status":"active","created_date":"2026-08-05T15:45:16.010Z","updated_date":"2026-08-05T15:45:16.010Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5798021583339520%2F20260804123624233jpg-1785944716009.jpg&uploadType=resumable&upload_id=AKhXX7If6wDIHlSBs9kMiMHq-oqpQs42pVC9VOvuGcpvF79DQYxP5z3qN62h2jlF5rChFGiv_vuVy1cQoWoRjiZ5XoyQhiCnnzsXFDsqLUJcTg","id":"4792063402967040","title":"Steam Wall","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5351916257148928":{"filename":"20260804120518742jpg-1785944716001.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/20260804120518742jpg-1785944716001.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/20260804120518742jpg-1785944716001.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/thumb_20260804120518742jpg-1785944716001.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/thumb_20260804120518742jpg-1785944716001.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":5,"status":"active","created_date":"2026-08-05T15:45:16.001Z","updated_date":"2026-08-05T15:45:16.001Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5798021583339520%2F20260804120518742jpg-1785944716001.jpg&uploadType=resumable&upload_id=AKhXX7Kc1ZBhn6bhqWFPCHmfw4B_67eMuqwCSLYEFYN6QkGfWAduqSQm1OC3ngwW9JI3oxEsEwqUSdAxa54bTlPW67E38h_6pNa26ikG5gYQesg","id":"5351916257148928","title":"Outdoor Play Area","has_anaglyph":false,"index":0},"6525312286326784":{"filename":"20260804120527740jpg-1785944716010.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/20260804120527740jpg-1785944716010.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/20260804120527740jpg-1785944716010.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/thumb_20260804120527740jpg-1785944716010.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/thumb_20260804120527740jpg-1785944716010.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":6,"status":"active","created_date":"2026-08-05T15:45:16.011Z","updated_date":"2026-08-05T15:45:16.011Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5798021583339520%2F20260804120527740jpg-1785944716010.jpg&uploadType=resumable&upload_id=AKhXX7KeyrIDe0fbBrYsv7aGDJ9p9tNd1SkDI8Z3eH65i4S8HFeSb0ITuDmNA1BNIlJBH71Z_5q2OVCF4Zzn2QUbKmXRm4OjotgMNxVl9kba4BI","id":"6525312286326784","title":"Montessori Area","has_anaglyph":false,"index":1},"4896369636540416":{"filename":"20260804123413390jpg-1785944716016.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/20260804123413390jpg-1785944716016.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/20260804123413390jpg-1785944716016.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/thumb_20260804123413390jpg-1785944716016.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/thumb_20260804123413390jpg-1785944716016.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":7,"status":"active","created_date":"2026-08-05T15:45:16.017Z","updated_date":"2026-08-05T15:45:16.017Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5798021583339520%2F20260804123413390jpg-1785944716016.jpg&uploadType=resumable&upload_id=AKhXX7JvL2ZZS7ARAW2loNp_lieOesHatdadSWqGEnRdqdx82dQMKWBy0MMVLPsursW6FeiRPWaQLLSHzTCjNUksN6dZsbi2nFQlbIYV-LmEuQ","id":"4896369636540416","title":"Cooking Area","has_anaglyph":false,"index":2},"4792063402967040":{"filename":"20260804123624233jpg-1785944716009.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/20260804123624233jpg-1785944716009.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/20260804123624233jpg-1785944716009.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/thumb_20260804123624233jpg-1785944716009.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/thumb_20260804123624233jpg-1785944716009.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":8,"status":"active","created_date":"2026-08-05T15:45:16.010Z","updated_date":"2026-08-05T15:45:16.010Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5798021583339520%2F20260804123624233jpg-1785944716009.jpg&uploadType=resumable&upload_id=AKhXX7If6wDIHlSBs9kMiMHq-oqpQs42pVC9VOvuGcpvF79DQYxP5z3qN62h2jlF5rChFGiv_vuVy1cQoWoRjiZ5XoyQhiCnnzsXFDsqLUJcTg","id":"4792063402967040","title":"Steam Wall","has_anaglyph":false,"index":3}}; if (window.is_static) { window.photosRoot = 'https://images.orbix360.com'; // TODO: after we create all the local schema/template folders, change this to empty string window.pluginsRoot = 'plugins/'; } else { window.photosRoot = 'https://images.orbix360.com'; window.pluginsRoot = 'https://storage.googleapis.com/orbix360-prod-plugins/'; } window.minterUrl = 'https://minter.orbix360.com'; window.tourId = "5798021583339520"; window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1"; window.isTourOwner = false; window.customUrl = "https://kiddy123.com/"; window.tourSlug = "happles-kindergarten-the-cube-bandar-puteri-puchong"; window.template = ''; window.template_category = ''; window.tourShortCode = "KDEfRP_pU"; 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['5351916257148928'] = 0; window.current_image_index = 0; window.current_image_id = 5351916257148928 window.photo_indexes['6525312286326784'] = 1; window.photo_indexes['4896369636540416'] = 2; window.photo_indexes['4792063402967040'] = 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://images.orbix360.com/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5798021583339520/thumb_20260804120518742jpg-1785944716001.jpg.play.jpg'; window.image_url_root = 'https://images.orbix360.com'; window.cloudFunctionsRoot = 'https://us-central1-orbix360-prod.cloudfunctions.net'; window.timeSinceRestartRotation = 0; window.initialState = {"versionNumber":3,"autorotate":{"enabled":true},"orbs":[{"id":5351916257148928,"hotspots":[{"id":"hotspot_5351916257148928_6525312286326784","from":5351916257148928,"to":6525312286326784,"position":{"x":0.9668085321321341,"y":0.08985567944239019,"z":-0.23918030660665676},"toTitle":"Montessori Area"},{"id":"hotspot_5351916257148928_4792063402967040","from":5351916257148928,"to":4792063402967040,"position":{"x":0.7474237043861874,"y":0.08874153986407576,"z":-0.6583940653014588},"toTitle":"Steam Wall"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1786070012404","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/5798021583339520/5351916257148928/plugin_4826070998056960_1786070012404/H'Apples Kindergarten.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":6525312286326784,"hotspots":[{"id":"hotspot_6525312286326784_5351916257148928","from":6525312286326784,"to":5351916257148928,"position":{"x":-0.10822951456147425,"y":-0.06709823858021013,"z":-0.9918589610207798},"toTitle":"Outdoor Play Area"},{"id":"hotspot_6525312286326784_4896369636540416","from":6525312286326784,"to":4896369636540416,"position":{"x":0.8925621756504676,"y":0.007289331288430586,"z":0.45086542143689773},"toTitle":"Cooking Area"},{"id":"hotspot_6525312286326784_4792063402967040","from":6525312286326784,"to":4792063402967040,"position":{"x":-0.7519191970562857,"y":-0.005584917486138774,"z":0.6592316207486589},"toTitle":"Steam Wall"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1786070183530","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/5798021583339520/6525312286326784/plugin_4826070998056960_1786070183530/H'Apples Kindergarten.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4896369636540416,"hotspots":[{"id":"hotspot_4896369636540416_6525312286326784","from":4896369636540416,"to":6525312286326784,"position":{"x":-0.7279528701889976,"y":0.010577795716227738,"z":-0.6855455703462654},"toTitle":"Montessori Area"},{"id":"hotspot_4896369636540416_4792063402967040","from":4896369636540416,"to":4792063402967040,"position":{"x":-0.8342312134481891,"y":-0.08511973580968638,"z":0.5448053901022374},"toTitle":"Steam Wall"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1786070217980","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/5798021583339520/4896369636540416/plugin_4826070998056960_1786070217980/H'Apples Kindergarten.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4792063402967040,"hotspots":[{"id":"hotspot_4792063402967040_4896369636540416","from":4792063402967040,"to":4896369636540416,"position":{"x":-0.9637565536161128,"y":-0.1052660090290033,"z":-0.24513745675660947},"toTitle":"Cooking Area"},{"id":"hotspot_4792063402967040_6525312286326784","from":4792063402967040,"to":6525312286326784,"position":{"x":0.2743656484786209,"y":-0.06314755830831968,"z":0.9595498302926239},"toTitle":"Montessori Area"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1786070246163","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/5798021583339520/4792063402967040/plugin_4826070998056960_1786070246163/H'Apples Kindergarten.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.isUpgradeSubscriptionValid = false; window.isPro = (window.brandingAllowed || window.isUpgradeSubscriptionValid); window.nadirLogoURL = (window.brandingAllowed || isUpgradeSubscriptionValid) ? 'https://images.orbix360.com/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/branding/nadir-1729253472432.png' : '/images/orbix_nadir.png'; window.editMode = false; // #325 feature flag: screen-space nav hotspot dock. Environment default from // app_config.NAV_DOCK_ENABLED; overridable per page load with ?navdock=on|off // (this script runs in the viewer page's context, so location.search is the // tour page's query string). Flag off = pre-#325 world-anchored nav hotspots. window.navDockEnabled = false; (function () { try { var navdock = new URLSearchParams(window.location.search).get('navdock'); if (navdock === 'on' || navdock === 'yes') { window.navDockEnabled = true; } else if (navdock === 'off' || navdock === 'no') { window.navDockEnabled = false; } } catch (e) { /* keep the environment default */ } })();