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 = [{"title":"Lounge","filename":"20260818143845985jpg-1787672932123.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/20260818143845985jpg-1787672932123.jpg","created_date":"2026-08-25T15:48:52.126Z","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/thumb_20260818143845985jpg-1787672932123.jpg","status":"active","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/thumb_20260818143845985jpg-1787672932123.jpg","photo_type":"360_mono","rotation":0,"sort_order":3,"id":"4838352916316160","is_stereo":false,"updated_date":"2026-08-25T15:48:52.126Z","version":"v3","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/20260818143845985jpg-1787672932123.jpg","has_anaglyph":false,"index":0},{"gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/20260818144404819jpg-1787672932112.jpg","filename":"20260818144404819jpg-1787672932112.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/thumb_20260818144404819jpg-1787672932112.jpg","updated_date":"2026-08-25T15:48:52.113Z","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/thumb_20260818144404819jpg-1787672932112.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/20260818144404819jpg-1787672932112.jpg","is_stereo":false,"folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976","rotation":0,"version":"v3","sort_order":4,"created_date":"2026-08-25T15:48:52.113Z","status":"active","title":"Common Area","photo_type":"360_mono","id":"5234983381762048","has_anaglyph":false,"index":1},{"image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/20260818141948123jpg-1787672932189.jpg","updated_date":"2026-08-25T15:48:52.190Z","id":"6641903669870592","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/thumb_20260818141948123jpg-1787672932189.jpg","is_stereo":false,"thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/thumb_20260818141948123jpg-1787672932189.jpg","title":"Classroom","filename":"20260818141948123jpg-1787672932189.jpg","status":"active","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976","sort_order":1,"rotation":0,"gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/20260818141948123jpg-1787672932189.jpg","version":"v3","created_date":"2026-08-25T15:48:52.190Z","photo_type":"360_mono","has_anaglyph":false,"index":2},{"image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/20260818143138526jpg-1787672932076.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976","is_stereo":false,"thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/thumb_20260818143138526jpg-1787672932076.jpg","created_date":"2026-08-25T15:48:52.076Z","id":"4880905975889920","status":"active","rotation":0,"filename":"20260818143138526jpg-1787672932076.jpg","sort_order":2,"version":"v3","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/20260818143138526jpg-1787672932076.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/thumb_20260818143138526jpg-1787672932076.jpg","updated_date":"2026-08-25T15:48:52.076Z","title":"Playground","photo_type":"360_mono","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"6641903669870592":{"image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/20260818141948123jpg-1787672932189.jpg","updated_date":"2026-08-25T15:48:52.190Z","id":"6641903669870592","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/thumb_20260818141948123jpg-1787672932189.jpg","is_stereo":false,"thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/thumb_20260818141948123jpg-1787672932189.jpg","title":"Classroom","filename":"20260818141948123jpg-1787672932189.jpg","status":"active","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976","sort_order":1,"rotation":0,"gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/20260818141948123jpg-1787672932189.jpg","version":"v3","created_date":"2026-08-25T15:48:52.190Z","photo_type":"360_mono","has_anaglyph":false,"index":2},"4880905975889920":{"image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/20260818143138526jpg-1787672932076.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976","is_stereo":false,"thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/thumb_20260818143138526jpg-1787672932076.jpg","created_date":"2026-08-25T15:48:52.076Z","id":"4880905975889920","status":"active","rotation":0,"filename":"20260818143138526jpg-1787672932076.jpg","sort_order":2,"version":"v3","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/20260818143138526jpg-1787672932076.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/thumb_20260818143138526jpg-1787672932076.jpg","updated_date":"2026-08-25T15:48:52.076Z","title":"Playground","photo_type":"360_mono","has_anaglyph":false,"index":3},"4838352916316160":{"title":"Lounge","filename":"20260818143845985jpg-1787672932123.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/20260818143845985jpg-1787672932123.jpg","created_date":"2026-08-25T15:48:52.126Z","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/thumb_20260818143845985jpg-1787672932123.jpg","status":"active","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/thumb_20260818143845985jpg-1787672932123.jpg","photo_type":"360_mono","rotation":0,"sort_order":3,"id":"4838352916316160","is_stereo":false,"updated_date":"2026-08-25T15:48:52.126Z","version":"v3","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/20260818143845985jpg-1787672932123.jpg","has_anaglyph":false,"index":0},"5234983381762048":{"gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/20260818144404819jpg-1787672932112.jpg","filename":"20260818144404819jpg-1787672932112.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/thumb_20260818144404819jpg-1787672932112.jpg","updated_date":"2026-08-25T15:48:52.113Z","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/thumb_20260818144404819jpg-1787672932112.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976/20260818144404819jpg-1787672932112.jpg","is_stereo":false,"folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6449032358526976","rotation":0,"version":"v3","sort_order":4,"created_date":"2026-08-25T15:48:52.113Z","status":"active","title":"Common Area","photo_type":"360_mono","id":"5234983381762048","has_anaglyph":false,"index":1}}; 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 = "6449032358526976"; // 052: the tour sound's Loop / Play once choice (absent = loop). window.tourAudioLoop = true; window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1"; // 090: bandwidth usage reporter (frontend/js/usage_reporter.js); absent or disabled = no reports. window.usageReport = {"enabled":true,"roots":["https://images.orbix360.com/","https://storage.googleapis.com/orbix360-prod-images/","https://storage.googleapis.com/orbix360-prod-plugins/","https://storage.googleapis.com/orbix360-prod-assets/"],"externalHosts":["player.vimeo.com","vod-progressive.akamaized.net","vimeocdn.com"],"edit":false}; window.usageReport.viewer = 'legacy'; window.isTourOwner = false; window.customUrl = "https://kiddy123.com/"; window.tourSlug = "the-childrens-house-montessori-bukit-jalil-city-kuala-lumpur"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "_NQNjgnGh"; 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['4838352916316160'] = 0; window.current_image_index = 0; window.current_image_id = 4838352916316160 window.photo_indexes['5234983381762048'] = 1; window.photo_indexes['6641903669870592'] = 2; window.photo_indexes['4880905975889920'] = 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/6449032358526976/thumb_20260818143845985jpg-1787672932123.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":4838352916316160,"hotspots":[{"id":"hotspot_4838352916316160_5234983381762048","from":4838352916316160,"to":5234983381762048,"position":{"x":-0.9827793926835183,"y":0.011093617176036472,"z":0.18444944286868006},"toTitle":"Common Area"},{"id":"hotspot_4838352916316160_6641903669870592","from":4838352916316160,"to":6641903669870592,"position":{"x":0.6665207697459861,"y":-0.12106236462441482,"z":0.7355908967413637},"toTitle":"Classroom"},{"id":"hotspot_4838352916316160_4880905975889920","from":4838352916316160,"to":4880905975889920,"position":{"x":-0.029655124181700528,"y":0.018560365267273195,"z":0.9993878558652358},"toTitle":"Playground"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1787673071721","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/6449032358526976/4838352916316160/plugin_4826070998056960_1787673071721/The children’s house Montessori.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":5234983381762048,"hotspots":[{"id":"hotspot_5234983381762048_4838352916316160","from":5234983381762048,"to":4838352916316160,"position":{"x":0.9900903224146395,"y":-0.022534426393760132,"z":-0.13861224003665643},"toTitle":"Lounge"},{"id":"hotspot_5234983381762048_6641903669870592","from":5234983381762048,"to":6641903669870592,"position":{"x":0.9887240524685867,"y":0.09575105796718066,"z":0.11513680110312662},"toTitle":"Classroom"},{"id":"hotspot_5234983381762048_4880905975889920","from":5234983381762048,"to":4880905975889920,"position":{"x":0.35928170661919195,"y":0.07084577249454832,"z":0.9305361528755622},"toTitle":"Playground"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1787673191822","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/6449032358526976/5234983381762048/plugin_4826070998056960_1787673191822/The children’s house Montessori.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":6641903669870592,"hotspots":[{"id":"hotspot_6641903669870592_4838352916316160","from":6641903669870592,"to":4838352916316160,"position":{"x":0.7617673330827928,"y":-0.0010770987314832753,"z":-0.6478498052066175},"toTitle":"Lounge"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1787673223640","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/6449032358526976/6641903669870592/plugin_4826070998056960_1787673223640/The children’s house Montessori.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4880905975889920,"hotspots":[{"id":"hotspot_4880905975889920_5234983381762048","from":4880905975889920,"to":5234983381762048,"position":{"x":0.9992225046348723,"y":0.03618660215994741,"z":0.015649794098650152},"toTitle":"Common Area"},{"id":"hotspot_4880905975889920_4838352916316160","from":4880905975889920,"to":4838352916316160,"position":{"x":0.30446709617789397,"y":0.013813602821647999,"z":0.9524226854302068},"toTitle":"Lounge"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1787673263956","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/6449032358526976/4880905975889920/plugin_4826070998056960_1787673263956/The children’s house Montessori.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.isOwner = false; // 045: owner-only prompts route to the Premium Tour page window.upgradeCheckoutSessionStatus = ''; window.isUpgradeSubscriptionValid = false; window.isPro = true; // 072: the shared entitlement rule // 029: free-plan limits from functions/common/plan_limits.js; read by // add_photos_dropzone.js (image cap, file size), which keeps fallbacks. window.planLimits = {"freeMaxMultiImageTours":2,"freeMaxSingleImageTours":-1,"freeMaxImagesPerTour":5,"freeMaxFileBytes":20000000,"multiImageLimitCutoffDate":"2026-10-11T00:00:00Z","freeMultiImageBonusPerUpgradedTour":2,"freeMultiImageBonusPerSharedTour":1,"freeMultiImageShareCreditVisitors":1,"freeMultiImageBonusForUseCase":1,"freeMaxMultiImageToursWithBonus":10,"freeMultiImageShareBonusEnabled":true,"freeMultiImageLimitEnabled":true,"freeMaxSplatFiles":1,"freeMaxSplatBytes":52428800,"proMaxSplatFiles":50,"proMaxSplatBytes":262144000}; window.tourTemplates = {"vr":["blank-scene","environment-scene","home-scene","nft-gallery","nft-gallery-simple","nft-gallery-room","splat-scene"],"noUpload":["blank-scene","environment-scene","home-scene","nft-gallery","nft-gallery-simple","nft-gallery-room","splat-scene","spatial-video","real-estate"],"flat":["flat","flat_stereo","nft_flat_stereo"]}; // 038: offer prices from functions/common/prices.js (display strings, cents); read by nothing yet. window.prices = {"currency":"usd","proMonthly":{"amount":999,"interval":"month","perMonth":999,"display":"$9.99","perMonthDisplay":"$9.99"},"proYearly":{"amount":9900,"interval":"year","perMonth":825,"display":"$99.00","perMonthDisplay":"$8.25"},"tourMonthly":{"amount":299,"interval":"month","perMonth":299,"display":"$2.99","perMonthDisplay":"$2.99"},"tourConversionCredit":{"amount":300,"display":"$3.00"},"tourComparison":{"count":4,"total":1196,"totalDisplay":"$11.96"}}; window.nadirLogoURL = window.isPro ? '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 */ } })();