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/6633690541064192/blank_scenepng-1590418138741.png","rotation":46.065806728518204,"thumbnail_gcs_filename":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/6633690541064192/thumb_blank_scenepng-1590418138741.png","version":"v4","gcs_filename":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/6633690541064192/blank_scenepng-1590418138741.png","filename":"blank_scenepng-1590418138741.png","folder":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/6633690541064192","is_stereo":false,"thumbnail_image_url":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/6633690541064192/thumb_blank_scenepng-1590418138741.png","photo_type":"360_mono","created_date":"2020-05-25T14:48:58.741Z","updated_date":"2020-05-25T14:48:58.741Z","sort_order":1,"status":"active","id":"5062686383538176","has_anaglyph":false,"index":0,"title":"Photo 1"}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5062686383538176":{"image_url":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/6633690541064192/blank_scenepng-1590418138741.png","rotation":46.065806728518204,"thumbnail_gcs_filename":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/6633690541064192/thumb_blank_scenepng-1590418138741.png","version":"v4","gcs_filename":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/6633690541064192/blank_scenepng-1590418138741.png","filename":"blank_scenepng-1590418138741.png","folder":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/6633690541064192","is_stereo":false,"thumbnail_image_url":"/users/h8h3eOiMFTVUooRZ86teiHO914m1/6633690541064192/thumb_blank_scenepng-1590418138741.png","photo_type":"360_mono","created_date":"2020-05-25T14:48:58.741Z","updated_date":"2020-05-25T14:48:58.741Z","sort_order":1,"status":"active","id":"5062686383538176","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 = "6633690541064192"; window.tourUid = "h8h3eOiMFTVUooRZ86teiHO914m1"; window.customUrl = "https://linktr.ee/pareidoliaist"; window.tourSlug = "new-features"; window.template = ''; window.template_category = ''; window.tourShortCode = "JsneDMPcN"; 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['5062686383538176'] = 0; window.current_image_index = 0; window.current_image_id = 5062686383538176 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/6633690541064192/thumb_blank_scenepng-1590418138741.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":[{"image":"https://storage.googleapis.com/orbix360-prod-plugins/defaults/images/stars.jpeg","color":"#FFF","instanceName":"Sky","pluginId":"5089611680317440","rotation":{"x":0,"y":0,"z":0},"scale":{"x":1,"y":1,"z":1},"instanceId":"plugin_5089611680317440_1590418139744","pluginName":"Sky","additional_components":"","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5089611680317440/script.js","position":{"x":0,"y":1,"z":-3},"templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5089611680317440/template.html","radius":"1100","schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5089611680317440/schema.json"},{"color":"white","instanceName":"Ground","pluginId":"5205799592787968","texture":"https://storage.googleapis.com/orbix360-prod-plugins/defaults/images/grid.png","rotation":{"x":0,"y":0,"z":0},"scale":{"x":20,"y":0.1,"z":20},"instanceId":"plugin_5205799592787968_1590418139744","pluginName":"Ground","repeat":"5 5","additional_components":"","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5205799592787968/script.js","templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5205799592787968/template.html","position":{"x":0,"y":0,"z":0},"schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5205799592787968/schema.json"},{"color":"white","instanceName":"From the CrateNew/select Template/Blank orb","pluginId":"6352215564353536","rotation":{"x":"0","y":"0","z":"0"},"scale":{"x":"1","y":"1","z":"1"},"baseline":"center","align":"center","transparent":"true","instanceId":"plugin_6352215564353536_1590418159490","pluginName":"Text","anchor":"center","width":"4","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/6352215564353536/v1/script.js","position":{"x":"0","y":"3.4000000000000012","z":"-3"},"templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6352215564353536/v1/template.html","schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6352215564353536/v1/schema.json","value":"From the CreateNew/select Template/Blank orb","height":"auto","font":"roboto"},{"instanceName":"test namecreate","src":"https://storage.googleapis.com/orbix360-prod-assets/users/h8h3eOiMFTVUooRZ86teiHO914m1/6633690541064192/5062686383538176/plugin_4826070998056960_1590418856144/blankOrb.jpeg","pluginId":"4826070998056960","rotation":{"x":"0","y":"-2.406422739549458","z":"0"},"scale":{"x":"1","y":"1","z":"1"},"instanceId":"plugin_4826070998056960_1590418856144","pluginName":"Image","repeat":"1 1","width":"1","additional_components":"","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v1/script.js","templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v1/template.html","position":{"x":"0.12594255381869834","y":"2.1460029159527614","z":"-2.9968688306384084"},"schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v1/schema.json","height":"1"},{"color":"white","instanceName":"assets","pluginId":"6352215564353536","rotation":{"x":"0","y":"-54.77476521450672","z":"0"},"scale":{"x":"1","y":"1","z":"1"},"baseline":"center","align":"center","transparent":"true","instanceId":"plugin_6352215564353536_1590419050958","pluginName":"Text","anchor":"center","width":"4","additional_components":"","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6352215564353536/v1/script.js","position":{"x":"3.134182518313911","y":"3.1482962474645784","z":"-0.7440061578072221"},"templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6352215564353536/v1/template.html","schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6352215564353536/v1/schema.json","value":"Use Orbix360 elements to add aframe objects directly into your scene","height":"auto","font":"roboto"},{"color":"white","instanceName":"Box","src":"https://storage.googleapis.com/orbix360-prod-plugins/defaults/images/profile-icon.png","pluginId":"5951970904899584","rotation":{"x":"40","y":"20","z":"20"},"scale":{"x":"1","y":"1","z":"1"},"instanceId":"plugin_5951970904899584_1590419373718","pluginName":"Box","repeat":"1 1","additional_components":"","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5951970904899584/v1/script.js","templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5951970904899584/v1/template.html","position":{"x":"2.0691355043171673","y":"1.3662372038310957","z":"-2.1596372889680895"},"schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5951970904899584/v1/schema.json"},{"color":"white","src":"https://storage.googleapis.com/orbix360-prod-plugins/defaults/images/profile-icon.png","instanceName":"Sphere","pluginId":"6044513357266944","rotation":{"x":"0","y":"-93.27752904729807","z":"0"},"scale":{"x":"1","y":"1","z":"1"},"instanceId":"plugin_6044513357266944_1590419474204","pluginName":"Sphere","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: 0 360 0; loop: true; dur: 10000; startEvents: click\"","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6044513357266944/v1/script.js","position":{"x":"2.8630932394303925","y":"1.3336056300980885","z":"1.1655966910089506"},"templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6044513357266944/v1/template.html","schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6044513357266944/v1/schema.json","radius":"0.5"},{"color":"white","instanceName":"scene description","pluginId":"6352215564353536","rotation":{"x":"0","y":"73.22400621771921","z":"0"},"scale":{"x":"1","y":"1","z":"1"},"baseline":"center","align":"center","transparent":"true","instanceId":"plugin_6352215564353536_1590419524931","pluginName":"Text","anchor":"center","width":"4","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/6352215564353536/v1/script.js","templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6352215564353536/v1/template.html","position":{"x":"-2.8488235934184765","y":"2.6170477173415536","z":"-0.8588082922217999"},"schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/6352215564353536/v1/schema.json","value":"The 'Blank Orb' provides a blank a-frame scene with a default sky and ground","font":"roboto","height":"2"},{"src":"https://storage.googleapis.com/orbix360-prod-assets/users/h8h3eOiMFTVUooRZ86teiHO914m1/6633690541064192/5062686383538176/plugin_4826070998056960_1590538093805/orbix360 elements.jpeg","instanceName":"Image","pluginId":"4826070998056960","rotation":{"x":"0","y":"-79.87031664123657","z":"0"},"scale":{"x":"1","y":"1","z":"1"},"instanceId":"plugin_4826070998056960_1590538093805","pluginName":"Image","repeat":"1 1","width":".332","additional_components":"","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v1/script.js","templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v1/template.html","position":{"x":"1.180916628030803","y":"1.6479979520262151","z":"-0.21098456045573566"},"schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v1/schema.json","height":".736"}],"id":5062686383538176,"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;