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":"img2024102311365500mergedjpg-1729833192973.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/img2024102311365500mergedjpg-1729833192973.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/img2024102311365500mergedjpg-1729833192973.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/thumb_img2024102311365500mergedjpg-1729833192973.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/thumb_img2024102311365500mergedjpg-1729833192973.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2024-10-25T05:13:12.975Z","updated_date":"2024-10-25T05:13:12.975Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4892417725562880%2Fimg2024102311365500mergedjpg-1729833192973.jpg&uploadType=resumable&upload_id=AHmUCY2roeNu0vul7kxs3AO7xZPN8sneYgDt1bBy6CtQo5-nYA5d3AtXmqCgKJKBOi4p0Vx5xqZA8YIsHxt69zu4QxO3cWZJ6FTRYR1ocG-q07OVRA","id":"6652178905169920","title":"Hall 1","has_anaglyph":false,"index":0},{"filename":"img2024102310581100mergedjpg-1729833189180.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/img2024102310581100mergedjpg-1729833189180.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/img2024102310581100mergedjpg-1729833189180.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/thumb_img2024102310581100mergedjpg-1729833189180.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/thumb_img2024102310581100mergedjpg-1729833189180.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2024-10-25T05:13:09.181Z","updated_date":"2024-10-25T05:13:09.181Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4892417725562880%2Fimg2024102310581100mergedjpg-1729833189180.jpg&uploadType=resumable&upload_id=AHmUCY3ZVYTTS5QHg5gyr3rrEHCatDJv3tlT553Z6HFDQCV0tjQy6ks7v3KCWYU2uprtNT4_QhuXNUeJTsI4homPgMn1jBwk_maDxb7fUrX_OSEE","id":"4849583345631232","title":"Classroom 1","has_anaglyph":false,"index":1},{"filename":"img2024102311011000mergedjpg-1729833189048.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/img2024102311011000mergedjpg-1729833189048.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/img2024102311011000mergedjpg-1729833189048.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/thumb_img2024102311011000mergedjpg-1729833189048.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/thumb_img2024102311011000mergedjpg-1729833189048.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2024-10-25T05:13:09.049Z","updated_date":"2024-10-25T05:13:09.049Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4892417725562880%2Fimg2024102311011000mergedjpg-1729833189048.jpg&uploadType=resumable&upload_id=AHmUCY0RpxG2NHdZKu5k5MW1_h3ZMpe2CnGC-e1y2x8-XDdsrNbDkZatPkG8j4mcLhWQRfgOQwkrBPwFY2ETyG0K5KZXD_InNNQyu5f2uRpOUMlFmw","id":"5943841490206720","title":"Classroom 2","has_anaglyph":false,"index":2},{"filename":"img2024102311481500mergedjpg-1729833189095.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/img2024102311481500mergedjpg-1729833189095.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/img2024102311481500mergedjpg-1729833189095.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/thumb_img2024102311481500mergedjpg-1729833189095.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/thumb_img2024102311481500mergedjpg-1729833189095.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2024-10-25T05:13:09.096Z","updated_date":"2024-10-25T05:13:09.096Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4892417725562880%2Fimg2024102311481500mergedjpg-1729833189095.jpg&uploadType=resumable&upload_id=AHmUCY0fvhboOTmECeoeYP5DC3opy8ImgXiDjpSVYzyvcEIZNlSzw-ZxipPSXIdulzRuYty5qOPD8O4G-j97tCQyH0W4_q-fDJlzAjQko5ga_BoBgw","id":"4875195779121152","title":"Hall 2","has_anaglyph":false,"index":3}];
console.log('num photos: ' + window.photos.length);
window.photosMap = {"4849583345631232":{"filename":"img2024102310581100mergedjpg-1729833189180.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/img2024102310581100mergedjpg-1729833189180.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/img2024102310581100mergedjpg-1729833189180.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/thumb_img2024102310581100mergedjpg-1729833189180.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/thumb_img2024102310581100mergedjpg-1729833189180.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2024-10-25T05:13:09.181Z","updated_date":"2024-10-25T05:13:09.181Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4892417725562880%2Fimg2024102310581100mergedjpg-1729833189180.jpg&uploadType=resumable&upload_id=AHmUCY3ZVYTTS5QHg5gyr3rrEHCatDJv3tlT553Z6HFDQCV0tjQy6ks7v3KCWYU2uprtNT4_QhuXNUeJTsI4homPgMn1jBwk_maDxb7fUrX_OSEE","id":"4849583345631232","title":"Classroom 1","has_anaglyph":false,"index":1},"5943841490206720":{"filename":"img2024102311011000mergedjpg-1729833189048.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/img2024102311011000mergedjpg-1729833189048.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/img2024102311011000mergedjpg-1729833189048.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/thumb_img2024102311011000mergedjpg-1729833189048.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/thumb_img2024102311011000mergedjpg-1729833189048.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2024-10-25T05:13:09.049Z","updated_date":"2024-10-25T05:13:09.049Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4892417725562880%2Fimg2024102311011000mergedjpg-1729833189048.jpg&uploadType=resumable&upload_id=AHmUCY0RpxG2NHdZKu5k5MW1_h3ZMpe2CnGC-e1y2x8-XDdsrNbDkZatPkG8j4mcLhWQRfgOQwkrBPwFY2ETyG0K5KZXD_InNNQyu5f2uRpOUMlFmw","id":"5943841490206720","title":"Classroom 2","has_anaglyph":false,"index":2},"6652178905169920":{"filename":"img2024102311365500mergedjpg-1729833192973.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/img2024102311365500mergedjpg-1729833192973.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/img2024102311365500mergedjpg-1729833192973.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/thumb_img2024102311365500mergedjpg-1729833192973.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/thumb_img2024102311365500mergedjpg-1729833192973.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2024-10-25T05:13:12.975Z","updated_date":"2024-10-25T05:13:12.975Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4892417725562880%2Fimg2024102311365500mergedjpg-1729833192973.jpg&uploadType=resumable&upload_id=AHmUCY2roeNu0vul7kxs3AO7xZPN8sneYgDt1bBy6CtQo5-nYA5d3AtXmqCgKJKBOi4p0Vx5xqZA8YIsHxt69zu4QxO3cWZJ6FTRYR1ocG-q07OVRA","id":"6652178905169920","title":"Hall 1","has_anaglyph":false,"index":0},"4875195779121152":{"filename":"img2024102311481500mergedjpg-1729833189095.jpg","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/img2024102311481500mergedjpg-1729833189095.jpg","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/img2024102311481500mergedjpg-1729833189095.jpg","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/thumb_img2024102311481500mergedjpg-1729833189095.jpg","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/4892417725562880/thumb_img2024102311481500mergedjpg-1729833189095.jpg","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2024-10-25T05:13:09.096Z","updated_date":"2024-10-25T05:13:09.096Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F4892417725562880%2Fimg2024102311481500mergedjpg-1729833189095.jpg&uploadType=resumable&upload_id=AHmUCY0fvhboOTmECeoeYP5DC3opy8ImgXiDjpSVYzyvcEIZNlSzw-ZxipPSXIdulzRuYty5qOPD8O4G-j97tCQyH0W4_q-fDJlzAjQko5ga_BoBgw","id":"4875195779121152","title":"Hall 2","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 = "4892417725562880";
window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1";
window.customUrl = "https://kiddy123.com/";
window.tourSlug = "cic-saujana-putra";
window.template = '360_mono';
window.template_category = '360';
window.tourShortCode = "eG9_mOE4-";
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['6652178905169920'] = 0;
window.current_image_index = 0;
window.current_image_id = 6652178905169920
window.photo_indexes['4849583345631232'] = 1;
window.photo_indexes['5943841490206720'] = 2;
window.photo_indexes['4875195779121152'] = 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/4892417725562880/thumb_img2024102311365500mergedjpg-1729833192973.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":6652178905169920,"hotspots":[{"id":"hotspot_6652178905169920_4849583345631232","from":6652178905169920,"to":4849583345631232,"position":{"x":-0.22436008376378191,"y":-0.003588073353686165,"z":0.9744997067947826},"toTitle":"Classroom 1"},{"id":"hotspot_6652178905169920_5943841490206720","from":6652178905169920,"to":5943841490206720,"position":{"x":0.023052995889588333,"y":0.004777524601320277,"z":0.9997228289076919},"toTitle":"Classroom 2"}],"infoHotspots":[]},{"id":4849583345631232,"hotspots":[{"id":"hotspot_4849583345631232_6652178905169920","from":4849583345631232,"to":6652178905169920,"position":{"x":-0.4768076575954182,"y":-0.020290883693077046,"z":0.8787734279649814},"toTitle":"Hall 1"}],"infoHotspots":[]},{"id":5943841490206720,"hotspots":[{"id":"hotspot_5943841490206720_6652178905169920","from":5943841490206720,"to":6652178905169920,"position":{"x":-0.9281056514842073,"y":-0.07449017804019505,"z":0.3647891350610858},"toTitle":"Hall 1"}],"infoHotspots":[]},{"id":4875195779121152,"hotspots":[{"id":"hotspot_4875195779121152_6652178905169920","from":4875195779121152,"to":6652178905169920,"position":{"x":0.9824494979765436,"y":-0.04441299298225716,"z":-0.1811642072264708},"toTitle":"Hall 1"}],"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;