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":"img20250313121713807jpg-1741853478051.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250313121713807jpg-1741853478051.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250313121713807jpg-1741853478051.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250313121713807jpg-1741853478051.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250313121713807jpg-1741853478051.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-03-13T08:11:18.052Z","updated_date":"2025-03-13T08:11:18.052Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6273482998415360%2Fimg20250313121713807jpg-1741853478051.JPG&uploadType=resumable&upload_id=AKDAyIvZPL7JZO0KZsvo6Cv2C1dgkrpgQhj5X1emKBtsuIRbrFReKfYIAeFQnKPeRMZuCZeAaO8ek2y4chOMnh5Fd2JgURLiO6MxQR7G_b2HoyQ","id":"5394567333412864","title":"Library","has_anaglyph":false,"index":0},{"filename":"img20250313121716637jpg-1741853478196.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250313121716637jpg-1741853478196.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250313121716637jpg-1741853478196.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250313121716637jpg-1741853478196.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250313121716637jpg-1741853478196.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-03-13T08:11:18.199Z","updated_date":"2025-03-13T08:11:18.199Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6273482998415360%2Fimg20250313121716637jpg-1741853478196.JPG&uploadType=resumable&upload_id=AKDAyIuUHGzsL4TSnd9XU5tCCNQJ6qZiC6RK6ZYrib1nEXa00ZwJYIq9gHpT9dhfEMr5ryRbhsb9JyNjnDdb5ymGzCuIdtgXes8ApfGOI7UFeQ","id":"5249614334656512","title":"Phonics","has_anaglyph":false,"index":1},{"filename":"img20250313121715311jpg-1741853478200.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250313121715311jpg-1741853478200.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250313121715311jpg-1741853478200.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250313121715311jpg-1741853478200.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250313121715311jpg-1741853478200.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-03-13T08:11:18.200Z","updated_date":"2025-03-13T08:11:18.200Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6273482998415360%2Fimg20250313121715311jpg-1741853478200.JPG&uploadType=resumable&upload_id=AKDAyIsIPJtgw5VqMaPd79jeCjLu568v9ts3fvO24gM59_izbTxZ_uFYiFBZyBMtLOjosXtzxTTO7kBMkSs3K3Hpex10eoZo5MfPa98SAKMFvQ","id":"5375171143663616","title":"Classroom","has_anaglyph":false,"index":2},{"filename":"img20250313121717953jpg-1741853478200.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250313121717953jpg-1741853478200.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250313121717953jpg-1741853478200.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250313121717953jpg-1741853478200.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250313121717953jpg-1741853478200.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-03-13T08:11:18.202Z","updated_date":"2025-03-13T08:11:18.202Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6273482998415360%2Fimg20250313121717953jpg-1741853478200.JPG&uploadType=resumable&upload_id=AKDAyIur6YARTTFJWwIYTKUFUuesw1UFEOANSFiTUWzfmnyhsM9dAwYac2hg1UEGW6cJCKU2Q7Zn3KFCsnbns_g-yknv6Pt5DrM7s3VTAjolgA","id":"4866108114862080","title":"Canteen","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5394567333412864":{"filename":"img20250313121713807jpg-1741853478051.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250313121713807jpg-1741853478051.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250313121713807jpg-1741853478051.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250313121713807jpg-1741853478051.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250313121713807jpg-1741853478051.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-03-13T08:11:18.052Z","updated_date":"2025-03-13T08:11:18.052Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6273482998415360%2Fimg20250313121713807jpg-1741853478051.JPG&uploadType=resumable&upload_id=AKDAyIvZPL7JZO0KZsvo6Cv2C1dgkrpgQhj5X1emKBtsuIRbrFReKfYIAeFQnKPeRMZuCZeAaO8ek2y4chOMnh5Fd2JgURLiO6MxQR7G_b2HoyQ","id":"5394567333412864","title":"Library","has_anaglyph":false,"index":0},"5375171143663616":{"filename":"img20250313121715311jpg-1741853478200.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250313121715311jpg-1741853478200.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250313121715311jpg-1741853478200.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250313121715311jpg-1741853478200.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250313121715311jpg-1741853478200.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2025-03-13T08:11:18.200Z","updated_date":"2025-03-13T08:11:18.200Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6273482998415360%2Fimg20250313121715311jpg-1741853478200.JPG&uploadType=resumable&upload_id=AKDAyIsIPJtgw5VqMaPd79jeCjLu568v9ts3fvO24gM59_izbTxZ_uFYiFBZyBMtLOjosXtzxTTO7kBMkSs3K3Hpex10eoZo5MfPa98SAKMFvQ","id":"5375171143663616","title":"Classroom","has_anaglyph":false,"index":2},"5249614334656512":{"filename":"img20250313121716637jpg-1741853478196.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250313121716637jpg-1741853478196.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250313121716637jpg-1741853478196.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250313121716637jpg-1741853478196.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250313121716637jpg-1741853478196.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-03-13T08:11:18.199Z","updated_date":"2025-03-13T08:11:18.199Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6273482998415360%2Fimg20250313121716637jpg-1741853478196.JPG&uploadType=resumable&upload_id=AKDAyIuUHGzsL4TSnd9XU5tCCNQJ6qZiC6RK6ZYrib1nEXa00ZwJYIq9gHpT9dhfEMr5ryRbhsb9JyNjnDdb5ymGzCuIdtgXes8ApfGOI7UFeQ","id":"5249614334656512","title":"Phonics","has_anaglyph":false,"index":1},"4866108114862080":{"filename":"img20250313121717953jpg-1741853478200.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250313121717953jpg-1741853478200.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250313121717953jpg-1741853478200.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250313121717953jpg-1741853478200.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250313121717953jpg-1741853478200.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-03-13T08:11:18.202Z","updated_date":"2025-03-13T08:11:18.202Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6273482998415360%2Fimg20250313121717953jpg-1741853478200.JPG&uploadType=resumable&upload_id=AKDAyIur6YARTTFJWwIYTKUFUuesw1UFEOANSFiTUWzfmnyhsM9dAwYac2hg1UEGW6cJCKU2Q7Zn3KFCsnbns_g-yknv6Pt5DrM7s3VTAjolgA","id":"4866108114862080","title":"Canteen","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 = "6273482998415360"; window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1"; window.customUrl = "https://kiddy123.com/"; window.tourSlug = "kidskool-seri-kembangan"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "1VBZNvZ8D"; 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['5394567333412864'] = 0; window.current_image_index = 0; window.current_image_id = 5394567333412864 window.photo_indexes['5249614334656512'] = 1; window.photo_indexes['5375171143663616'] = 2; window.photo_indexes['4866108114862080'] = 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/6273482998415360/thumb_img20250313121713807jpg-1741853478051.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":5394567333412864,"hotspots":[{"id":"hotspot_5394567333412864_5249614334656512","from":5394567333412864,"to":5249614334656512,"position":{"x":-0.38887654819908146,"y":-0.02859664156934087,"z":-0.9208459493051604},"toTitle":"Phonics"},{"id":"hotspot_5394567333412864_5375171143663616","from":5394567333412864,"to":5375171143663616,"position":{"x":0.6820578335476525,"y":0.0477499994892991,"z":0.7297376578230388},"toTitle":"Classroom"},{"id":"hotspot_5394567333412864_4866108114862080","from":5394567333412864,"to":4866108114862080,"position":{"x":0.9826249747263147,"y":-0.06600411093543046,"z":0.1734693528659534},"toTitle":"Canteen"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1741855047851","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/6273482998415360/5394567333412864/plugin_4826070998056960_1741855047851/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":5249614334656512,"hotspots":[{"id":"hotspot_5249614334656512_5394567333412864","from":5249614334656512,"to":5394567333412864,"position":{"x":-0.8820609016356099,"y":-0.09421609754209799,"z":0.4616187742821048},"toTitle":"Library"},{"id":"hotspot_5249614334656512_4866108114862080","from":5249614334656512,"to":4866108114862080,"position":{"x":-0.44827767537422397,"y":-0.08259920195746082,"z":0.8900699397221953},"toTitle":"Canteen"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1741855015538","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/6273482998415360/5249614334656512/plugin_4826070998056960_1741855015538/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":5375171143663616,"hotspots":[{"id":"hotspot_5375171143663616_5394567333412864","from":5375171143663616,"to":5394567333412864,"position":{"x":-0.30258897888719766,"y":0.14192152751075798,"z":0.9424957240672323},"toTitle":"Library"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1741854981203","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/6273482998415360/5375171143663616/plugin_4826070998056960_1741854981203/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4866108114862080,"hotspots":[{"id":"hotspot_4866108114862080_5394567333412864","from":4866108114862080,"to":5394567333412864,"position":{"x":0.6588834523463757,"y":-0.08760937643220333,"z":0.7471259555023381},"toTitle":"Library"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1741854828414","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/6273482998415360/4866108114862080/plugin_4826070998056960_1741854828414/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;