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":"img20250624151544177jpg-1750749456017.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/img20250624151544177jpg-1750749456017.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/img20250624151544177jpg-1750749456017.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/thumb_img20250624151544177jpg-1750749456017.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/thumb_img20250624151544177jpg-1750749456017.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-06-24T07:17:36.018Z","updated_date":"2025-06-24T07:17:36.018Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5199347413155840%2Fimg20250624151544177jpg-1750749456017.jpg&uploadType=resumable&upload_id=ABgVH8-JAY176c1HvcRRhiU6UkQEojw1c7kbaL5LLO-s-l8BWaVt9N3LVTHQVq-wBSoF3bXv8dpPcI8tBCnQj116upolbGdy0yliRBs4FgZwXWE","id":"5156135893991424","title":"Outdoor Playground","has_anaglyph":false,"index":0},{"filename":"img20250624151528838jpg-1750749456017.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/img20250624151528838jpg-1750749456017.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/img20250624151528838jpg-1750749456017.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/thumb_img20250624151528838jpg-1750749456017.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/thumb_img20250624151528838jpg-1750749456017.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-06-24T07:17:36.017Z","updated_date":"2025-06-24T07:17:36.017Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5199347413155840%2Fimg20250624151528838jpg-1750749456017.jpg&uploadType=resumable&upload_id=ABgVH89y60P_o6TiE_n77B4KzVsy7Dv89hK9hs6FnODTM8qefc0zuNIZ9mTD67fx9QLViUQZFS_5cAaG6bZAlNslQA8iQKt15p-i029UYky27YM","id":"4517577336291328","title":"⁠Indoor Hall","has_anaglyph":false,"index":1},{"filename":"img20250624105711686jpg-1750749456134.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/img20250624105711686jpg-1750749456134.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/img20250624105711686jpg-1750749456134.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/thumb_img20250624105711686jpg-1750749456134.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/thumb_img20250624105711686jpg-1750749456134.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-06-24T07:17:36.134Z","updated_date":"2025-06-24T07:17:36.134Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5199347413155840%2Fimg20250624105711686jpg-1750749456134.jpg&uploadType=resumable&upload_id=ABgVH89h3fav9QSblZvRgEFPJcJNE-yjsoruGJb4qgBeL9DMIE0L1z9BA6pSOWFeVQkjDurJbzxT8zJLJ5d2M8JM5OVaQideGe9CBfmEfxAhpg","id":"5817799484112896","title":"⁠Home Corner","has_anaglyph":false,"index":2},{"filename":"img20250624105713801jpg-1750749456023.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/img20250624105713801jpg-1750749456023.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/img20250624105713801jpg-1750749456023.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/thumb_img20250624105713801jpg-1750749456023.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/thumb_img20250624105713801jpg-1750749456023.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-06-24T07:17:36.024Z","updated_date":"2025-06-24T07:17:36.024Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5199347413155840%2Fimg20250624105713801jpg-1750749456023.jpg&uploadType=resumable&upload_id=ABgVH8-neTtDBnhMdpc99G4NKqnZbSPvcSQrtnGH2_K943ROE1lphn8I2FY2MqU5qPx0bOkP9ndcQdmYiSE4aP7QF3k8HxOpEyaidDBamTU87w","id":"6462668703531008","title":"Classroom Pink","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5817799484112896":{"filename":"img20250624105711686jpg-1750749456134.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/img20250624105711686jpg-1750749456134.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/img20250624105711686jpg-1750749456134.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/thumb_img20250624105711686jpg-1750749456134.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/thumb_img20250624105711686jpg-1750749456134.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-06-24T07:17:36.134Z","updated_date":"2025-06-24T07:17:36.134Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5199347413155840%2Fimg20250624105711686jpg-1750749456134.jpg&uploadType=resumable&upload_id=ABgVH89h3fav9QSblZvRgEFPJcJNE-yjsoruGJb4qgBeL9DMIE0L1z9BA6pSOWFeVQkjDurJbzxT8zJLJ5d2M8JM5OVaQideGe9CBfmEfxAhpg","id":"5817799484112896","title":"⁠Home Corner","has_anaglyph":false,"index":2},"6462668703531008":{"filename":"img20250624105713801jpg-1750749456023.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/img20250624105713801jpg-1750749456023.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/img20250624105713801jpg-1750749456023.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/thumb_img20250624105713801jpg-1750749456023.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/thumb_img20250624105713801jpg-1750749456023.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-06-24T07:17:36.024Z","updated_date":"2025-06-24T07:17:36.024Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5199347413155840%2Fimg20250624105713801jpg-1750749456023.jpg&uploadType=resumable&upload_id=ABgVH8-neTtDBnhMdpc99G4NKqnZbSPvcSQrtnGH2_K943ROE1lphn8I2FY2MqU5qPx0bOkP9ndcQdmYiSE4aP7QF3k8HxOpEyaidDBamTU87w","id":"6462668703531008","title":"Classroom Pink","has_anaglyph":false,"index":3},"4517577336291328":{"filename":"img20250624151528838jpg-1750749456017.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/img20250624151528838jpg-1750749456017.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/img20250624151528838jpg-1750749456017.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/thumb_img20250624151528838jpg-1750749456017.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/thumb_img20250624151528838jpg-1750749456017.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-06-24T07:17:36.017Z","updated_date":"2025-06-24T07:17:36.017Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5199347413155840%2Fimg20250624151528838jpg-1750749456017.jpg&uploadType=resumable&upload_id=ABgVH89y60P_o6TiE_n77B4KzVsy7Dv89hK9hs6FnODTM8qefc0zuNIZ9mTD67fx9QLViUQZFS_5cAaG6bZAlNslQA8iQKt15p-i029UYky27YM","id":"4517577336291328","title":"⁠Indoor Hall","has_anaglyph":false,"index":1},"5156135893991424":{"filename":"img20250624151544177jpg-1750749456017.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/img20250624151544177jpg-1750749456017.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/img20250624151544177jpg-1750749456017.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/thumb_img20250624151544177jpg-1750749456017.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/5199347413155840/thumb_img20250624151544177jpg-1750749456017.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-06-24T07:17:36.018Z","updated_date":"2025-06-24T07:17:36.018Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F5199347413155840%2Fimg20250624151544177jpg-1750749456017.jpg&uploadType=resumable&upload_id=ABgVH8-JAY176c1HvcRRhiU6UkQEojw1c7kbaL5LLO-s-l8BWaVt9N3LVTHQVq-wBSoF3bXv8dpPcI8tBCnQj116upolbGdy0yliRBs4FgZwXWE","id":"5156135893991424","title":"Outdoor Playground","has_anaglyph":false,"index":0}}; 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 = "5199347413155840"; window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1"; window.customUrl = "https://kiddy123.com/"; window.tourSlug = "eduwis-hill-park-kajang"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "SMuCl4Au3"; 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['5156135893991424'] = 0; window.current_image_index = 0; window.current_image_id = 5156135893991424 window.photo_indexes['4517577336291328'] = 1; window.photo_indexes['5817799484112896'] = 2; window.photo_indexes['6462668703531008'] = 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/5199347413155840/thumb_img20250624151544177jpg-1750749456017.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":5156135893991424,"hotspots":[{"id":"hotspot_5156135893991424_4517577336291328","from":5156135893991424,"to":4517577336291328,"position":{"x":-0.11925417139512691,"y":-0.02063458270991836,"z":-0.9926493119935403},"toTitle":"⁠Indoor Hall"},{"id":"hotspot_5156135893991424_5817799484112896","from":5156135893991424,"to":5817799484112896,"position":{"x":-0.6614081299274688,"y":0.015021122872229871,"z":-0.7498757573981879},"toTitle":"⁠Home Corner"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1750749772823","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/5199347413155840/5156135893991424/plugin_4826070998056960_1750749772823/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4517577336291328,"hotspots":[{"id":"hotspot_4517577336291328_5156135893991424","from":4517577336291328,"to":5156135893991424,"position":{"x":-0.10890610911358001,"y":-0.04155036168934031,"z":0.9931832795819844},"toTitle":"Outdoor Playground"},{"id":"hotspot_4517577336291328_5817799484112896","from":4517577336291328,"to":5817799484112896,"position":{"x":-0.9090974264937195,"y":0.003160506072486552,"z":-0.4165715788959471},"toTitle":"⁠Home Corner"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1750749819453","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/5199347413155840/4517577336291328/plugin_4826070998056960_1750749819453/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":5817799484112896,"hotspots":[{"id":"hotspot_5817799484112896_6462668703531008","from":5817799484112896,"to":6462668703531008,"position":{"x":-0.4020803940026977,"y":-0.03162317517573823,"z":0.9150581028275965},"toTitle":"Classroom Pink"},{"id":"hotspot_5817799484112896_4517577336291328","from":5817799484112896,"to":4517577336291328,"position":{"x":-0.8672700198426737,"y":-0.428689963780437,"z":0.2531158383744801},"toTitle":"⁠Indoor Hall"},{"id":"hotspot_5817799484112896_5156135893991424","from":5817799484112896,"to":5156135893991424,"position":{"x":0.7204642443558326,"y":0.007631429929386057,"z":0.6934500947306966},"toTitle":"Outdoor Playground"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1750749859834","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/5199347413155840/5817799484112896/plugin_4826070998056960_1750749859834/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":6462668703531008,"hotspots":[{"id":"hotspot_6462668703531008_5817799484112896","from":6462668703531008,"to":5817799484112896,"position":{"x":-0.4568184570424566,"y":-0.08701299180111703,"z":0.8852940960851191},"toTitle":"⁠Home Corner"},{"id":"hotspot_6462668703531008_5156135893991424","from":6462668703531008,"to":5156135893991424,"position":{"x":-0.7665291008876595,"y":-0.13635818481943135,"z":-0.6275663972243147},"toTitle":"Outdoor Playground"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1750749905150","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/5199347413155840/6462668703531008/plugin_4826070998056960_1750749905150/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;