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":"img20250415223207329jpg-1744727953174.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250415223207329jpg-1744727953174.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250415223207329jpg-1744727953174.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250415223207329jpg-1744727953174.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250415223207329jpg-1744727953174.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-04-15T14:39:13.175Z","updated_date":"2025-04-15T14:39:13.175Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6273482998415360%2Fimg20250415223207329jpg-1744727953174.JPG&uploadType=resumable&upload_id=AKDAyIt9s7XWj4vqPqhUjIP9d7m06ePK8JNB4q0vb5rCQZoCelV_eWcIvGQ-6BdLDO92w3YWiA_rrG5dxXs8_bt0cvgxsLpxPHAR2OF_SYBLVw","id":"5422106932150272","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":"img20250415223205623jpg-1744727953089.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250415223205623jpg-1744727953089.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250415223205623jpg-1744727953089.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250415223205623jpg-1744727953089.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250415223205623jpg-1744727953089.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-04-15T14:39:13.090Z","updated_date":"2025-04-15T14:39:13.090Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6273482998415360%2Fimg20250415223205623jpg-1744727953089.JPG&uploadType=resumable&upload_id=AKDAyIuj0BbOrFX8nIZoV1YJlfYWTTkE_m9YleheH1Zq9M6ftVTt_O1wWjX8SDEAzLURr2afod1hmMlYXhAbwHPzM5-HUIqChJ_Vnf0kYi3tbA","id":"5305198190788608","title":"Canteen","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"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},"5305198190788608":{"filename":"img20250415223205623jpg-1744727953089.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250415223205623jpg-1744727953089.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250415223205623jpg-1744727953089.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250415223205623jpg-1744727953089.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250415223205623jpg-1744727953089.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-04-15T14:39:13.090Z","updated_date":"2025-04-15T14:39:13.090Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6273482998415360%2Fimg20250415223205623jpg-1744727953089.JPG&uploadType=resumable&upload_id=AKDAyIuj0BbOrFX8nIZoV1YJlfYWTTkE_m9YleheH1Zq9M6ftVTt_O1wWjX8SDEAzLURr2afod1hmMlYXhAbwHPzM5-HUIqChJ_Vnf0kYi3tbA","id":"5305198190788608","title":"Canteen","has_anaglyph":false,"index":3},"5422106932150272":{"filename":"img20250415223207329jpg-1744727953174.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250415223207329jpg-1744727953174.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/img20250415223207329jpg-1744727953174.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250415223207329jpg-1744727953174.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6273482998415360/thumb_img20250415223207329jpg-1744727953174.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2025-04-15T14:39:13.175Z","updated_date":"2025-04-15T14:39:13.175Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6273482998415360%2Fimg20250415223207329jpg-1744727953174.JPG&uploadType=resumable&upload_id=AKDAyIt9s7XWj4vqPqhUjIP9d7m06ePK8JNB4q0vb5rCQZoCelV_eWcIvGQ-6BdLDO92w3YWiA_rrG5dxXs8_bt0cvgxsLpxPHAR2OF_SYBLVw","id":"5422106932150272","title":"Library","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 = "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['5422106932150272'] = 0; window.current_image_index = 0; window.current_image_id = 5422106932150272 window.photo_indexes['5249614334656512'] = 1; window.photo_indexes['5375171143663616'] = 2; window.photo_indexes['5305198190788608'] = 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_img20250415223207329jpg-1744727953174.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":5422106932150272,"hotspots":[{"id":"hotspot_5422106932150272_5249614334656512","from":5422106932150272,"to":5249614334656512,"position":{"x":-0.8157875543106642,"y":-0.06357677929335552,"z":-0.5748466398671118},"toTitle":"Phonics"},{"id":"hotspot_5422106932150272_5375171143663616","from":5422106932150272,"to":5375171143663616,"position":{"x":0.8791782268565018,"y":-0.01664653457935743,"z":-0.47620220317419304},"toTitle":"Classroom"},{"id":"hotspot_5422106932150272_5305198190788608","from":5422106932150272,"to":5305198190788608,"position":{"x":0.4637424516760016,"y":-0.15764305926153668,"z":-0.8718323258403503},"toTitle":"Canteen"}],"infoHotspots":[]},{"id":5249614334656512,"hotspots":[{"id":"hotspot_5249614334656512_5375171143663616","from":5249614334656512,"to":5375171143663616,"position":{"x":-0.6144326508507599,"y":0.011189527824995573,"z":0.7888899239029246},"toTitle":"Classroom"},{"id":"hotspot_5249614334656512_5422106932150272","from":5249614334656512,"to":5422106932150272,"position":{"x":-0.9842060926981696,"y":-0.019706552251271343,"z":0.17592617455674403},"toTitle":"Library"}],"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_5422106932150272","from":5375171143663616,"to":5422106932150272,"position":{"x":0.029540831542255123,"y":0.15318270065661999,"z":0.9877562449771381},"toTitle":"Library"},{"id":"hotspot_5375171143663616_5249614334656512","from":5375171143663616,"to":5249614334656512,"position":{"x":-0.4576755326435783,"y":0.24337098858272735,"z":0.8551629486452761},"toTitle":"Phonics"}],"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":5305198190788608,"hotspots":[{"id":"hotspot_5305198190788608_5422106932150272","from":5305198190788608,"to":5422106932150272,"position":{"x":0.6850793114820081,"y":0.02179457494918043,"z":0.7281423854454034},"toTitle":"Library"}],"infoHotspots":[]}]}; 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;