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 = [{"image_url":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5200122665238528/blank-scenepng-1593967110133.png","rotation":140.4892513660779,"thumbnail_gcs_filename":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5200122665238528/thumb_blank-scenepng-1593967110133.png","version":"v4","gcs_filename":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5200122665238528/blank-scenepng-1593967110133.png","folder":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5200122665238528","filename":"blank-scenepng-1593967110133.png","is_stereo":false,"thumbnail_image_url":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5200122665238528/thumb_blank-scenepng-1593967110133.png","photo_type":"360_mono","id":"6330992507748352","created_date":"2020-07-05T16:38:30.133Z","updated_date":"2020-07-05T16:38:30.133Z","sort_order":1,"status":"active","has_anaglyph":false,"index":0,"title":"Photo 1"}];
console.log('num photos: ' + window.photos.length);
window.photosMap = {"6330992507748352":{"image_url":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5200122665238528/blank-scenepng-1593967110133.png","rotation":140.4892513660779,"thumbnail_gcs_filename":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5200122665238528/thumb_blank-scenepng-1593967110133.png","version":"v4","gcs_filename":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5200122665238528/blank-scenepng-1593967110133.png","folder":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5200122665238528","filename":"blank-scenepng-1593967110133.png","is_stereo":false,"thumbnail_image_url":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/5200122665238528/thumb_blank-scenepng-1593967110133.png","photo_type":"360_mono","id":"6330992507748352","created_date":"2020-07-05T16:38:30.133Z","updated_date":"2020-07-05T16:38:30.133Z","sort_order":1,"status":"active","has_anaglyph":false,"index":0,"title":"Photo 1"}};
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 = "5200122665238528";
window.tourUid = "h8h3eOiMFTVUooRZ86teiHO914m1";
window.customUrl = "https://linktr.ee/pareidoliaist";
window.tourSlug = "animation-test";
window.template = 'blank-scene';
window.template_category = '';
window.tourShortCode = "E8PgxTuSU";
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 = true;
window.photo_indexes['6330992507748352'] = 0;
window.current_image_index = 0;
window.current_image_id = 6330992507748352
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 = 'https://lh3.googleusercontent.com/-PSggI1QTKnM/AAAAAAAAAAI/AAAAAAAAAnE/ACRKs6XJbMU/photo.jpg';
window.user_profile_name = 'Perry Dolia';
window.shortURLRoot = 'https://orbix360.com';
window.image_url = 'https://storage.googleapis.com/orbix360-prod-images/users/h8h3eOiMFTVUooRZ86teiHO914m1/5200122665238528/thumb_blank-scenepng-1593967110133.png.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 = {"orbs":[{"plugins":[{"color":"white","src":"https://storage.googleapis.com/orbix360-prod-assets/users/h8h3eOiMFTVUooRZ86teiHO914m1/5200122665238528/6330992507748352/plugin_6044513357266944_1593968836129/unnamed.jpg","instanceName":"Sphere","pluginId":"6044513357266944","rotation":{"x":"0","y":"-398.6640338520269","z":"0"},"scale":{"x":"1.5","y":"1.5","z":"1.5"},"instanceId":"plugin_6044513357266944_1593968836129","repeat":"2 1","additional_components":"animation=\"property: position; to: 0 0.2 0; dur: 3000; easing: linear; dir: alternate; loop: true\" \nanimation__mouseenter=\"property: scale; to: 1.3 1.3 1.3; dur: 300; startEvents: mouseenter\" \nanimation__mouseleave=\"property: scale; to: 1 1 1; dur: 300; startEvents: mouseleave\" \nanimation__rotate=\"property: rotation; to: 360 360 0; loop: true; dur: 10000; \"","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6044513357266944/v1/script.js","templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6044513357266944/v1/template.html","position":{"x":"4.367669302133868","y":"1.7722194246205825","z":"-2.8977476692344863"},"schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6044513357266944/v1/schema.json","radius":"0.5"},{"color":"white","src":"https://storage.googleapis.com/orbix360-prod-assets/users/h8h3eOiMFTVUooRZ86teiHO914m1/5200122665238528/6330992507748352/plugin_5951970904899584_1593968855951/crate.gif","instanceName":"Box","pluginId":"5951970904899584","rotation":{"x":"0","y":"-403.2476962130734","z":"0"},"scale":{"x":"1","y":"1","z":"1"},"instanceId":"plugin_5951970904899584_1593968855951","repeat":"1 1","additional_components":"animation=\"property: position; to: 0.0 0.3 0; dur: 5500; easing: linear; dir: alternate; loop: true\" \nanimation__mouseenter=\"property: scale; to: 1.3 1.3 1.3; dur: 300; startEvents: mouseenter\" \nanimation__mouseleave=\"property: scale; to: 1 1 1; dur: 300; startEvents: mouseleave\" \nanimation__rotate=\"property: rotation; to: 0 360 0; loop: true; dur: 10000; startEvents: click\"","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5951970904899584/v1/script.js","templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5951970904899584/v1/template.html","position":{"x":"4.38186120206799","y":"0.6021437166949328","z":"0.01205391919562021"},"schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5951970904899584/v1/schema.json"},{"instanceId":"plugin_5393642336288768_1593973031680","code":"\n\n\n\n\n\n\n\n\n\n\n\n\n","instanceName":"Earth","pluginId":"5393642336288768","rotation":{"x":"0","y":"-0","z":"0"},"scale":{"x":"1","y":"1","z":"1"},"scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5393642336288768/v1/script.js","templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5393642336288768/v1/template.html","position":{"x":"0","y":"0","z":"0"},"schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5393642336288768/v1/schema.json"},{"image":"https://storage.googleapis.com/orbix360-prod-assets/users/h8h3eOiMFTVUooRZ86teiHO914m1/5200122665238528/6330992507748352/plugin_5089611680317440_1593974608187/ey8KNEnscUvTP2xjJuT7szhzZKUPEe0W3YI9Z8VvqYs.jpg","color":"#FFF","instanceName":"Sky","pluginId":"5089611680317440","rotation":{"x":0,"y":-144.15618125491463,"z":0},"scale":{"x":1,"y":1,"z":1},"instanceId":"plugin_5089611680317440_1593974631651","additional_components":"","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5089611680317440/v2/script.js","position":{"x":21.945675571306225,"y":2.7238964520692255,"z":19.23469232539387},"templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5089611680317440/v2/template.html","radius":"1100","schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5089611680317440/v2/schema.json"},{"code":"\n\n\n\n\n\n\n\n\n\n\n\n","instanceId":"plugin_5393642336288768_1593977811820","instanceName":"Code Snippet2","pluginId":"5393642336288768","rotation":{"x":"0","y":"-104.39291027283606","z":"0"},"scale":{"x":"1","y":"1","z":"1"},"scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5393642336288768/v1/script.js","position":{"x":"25","y":"1.021643828280637","z":"2.521425527029119"},"templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5393642336288768/v1/template.html","schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5393642336288768/v1/schema.json"}],"id":6330992507748352,"hotspots":[]}],"autorotate":{"enabled":false},"versionNumber":3};
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/h8h3eOiMFTVUooRZ86teiHO914m1/branding/nadir.png' : '/images/orbix_nadir.png';
window.editMode = false;