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/vHBTrf5ZViWgpSugoZ8AgaD4ojs1/5117155628548096/blankscenepng-1592856635752.png","rotation":0,"thumbnail_gcs_filename":"/users/vHBTrf5ZViWgpSugoZ8AgaD4ojs1/5117155628548096/thumb_blankscenepng-1592856635752.png","version":"v3","gcs_filename":"/users/vHBTrf5ZViWgpSugoZ8AgaD4ojs1/5117155628548096/blankscenepng-1592856635752.png","folder":"/users/vHBTrf5ZViWgpSugoZ8AgaD4ojs1/5117155628548096","filename":"blankscenepng-1592856635752.png","is_stereo":false,"thumbnail_image_url":"/users/vHBTrf5ZViWgpSugoZ8AgaD4ojs1/5117155628548096/thumb_blankscenepng-1592856635752.png","photo_type":"360_mono","created_date":"2020-06-22T20:10:35.752Z","updated_date":"2020-06-22T20:10:35.752Z","sort_order":1,"status":"active","id":"5703438092468224","has_anaglyph":false,"index":0,"title":"Photo 1"}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5703438092468224":{"image_url":"/users/vHBTrf5ZViWgpSugoZ8AgaD4ojs1/5117155628548096/blankscenepng-1592856635752.png","rotation":0,"thumbnail_gcs_filename":"/users/vHBTrf5ZViWgpSugoZ8AgaD4ojs1/5117155628548096/thumb_blankscenepng-1592856635752.png","version":"v3","gcs_filename":"/users/vHBTrf5ZViWgpSugoZ8AgaD4ojs1/5117155628548096/blankscenepng-1592856635752.png","folder":"/users/vHBTrf5ZViWgpSugoZ8AgaD4ojs1/5117155628548096","filename":"blankscenepng-1592856635752.png","is_stereo":false,"thumbnail_image_url":"/users/vHBTrf5ZViWgpSugoZ8AgaD4ojs1/5117155628548096/thumb_blankscenepng-1592856635752.png","photo_type":"360_mono","created_date":"2020-06-22T20:10:35.752Z","updated_date":"2020-06-22T20:10:35.752Z","sort_order":1,"status":"active","id":"5703438092468224","has_anaglyph":false,"index":0,"title":"Photo 1"}}; if (window.is_static) { window.photosRoot = 'https://images-qa.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-qa.orbix360.com'; window.pluginsRoot = 'https://storage.googleapis.com/orbix360-qa-plugins/'; } window.minterUrl = 'https://minter-qa.orbix360.com'; window.tourId = "5117155628548096"; window.tourUid = "vHBTrf5ZViWgpSugoZ8AgaD4ojs1"; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "3d-vr-enviroment-orb-test"; window.template = ''; window.template_category = ''; window.tourShortCode = "QqwiLhtnj"; 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['5703438092468224'] = 0; window.current_image_index = 0; window.current_image_id = 5703438092468224 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://lh4.googleusercontent.com/-A4mZYeQfC2M/AAAAAAAAAAI/AAAAAAAAAAA/AMZuuclAIIGW7PLZ_oTCZDWcohr43oMWcA/s96-c/photo.jpg'; window.user_profile_name = 'Dario Komljenovic'; window.shortURLRoot = 'https://qa.orbix360.com'; window.image_url = 'https://images-qa.orbix360.com/users/vHBTrf5ZViWgpSugoZ8AgaD4ojs1/5117155628548096/thumb_blankscenepng-1592856635752.png.play.jpg'; window.image_url_root = 'https://images-qa.orbix360.com'; window.cloudFunctionsRoot = 'https://us-central1-orbix360-qa.cloudfunctions.net'; window.timeSinceRestartRotation = 0; window.initialState = {"orbs":[{"plugins":[{"instanceName":"Environment","pluginId":"5714990547861504","groundYScale":"3","rotation":{"x":0,"y":0,"z":0},"scale":{"x":1,"y":1,"z":1},"preset":"forest","playArea":"1","instanceId":"plugin_5714990547861504_1592856636980","pluginName":"Environment","scriptFilename":"users/ZIGqF6yhmEZl3yjaK4dEF8ajipl1/5714990547861504/script.js","ground":"flat","templateFilename":"users/ZIGqF6yhmEZl3yjaK4dEF8ajipl1/5714990547861504/template.html","position":{"x":0,"y":0,"z":0},"schemaFilename":"users/ZIGqF6yhmEZl3yjaK4dEF8ajipl1/5714990547861504/schema.json"},{"instanceName":"Image","src":"https://storage.googleapis.com/orbix360-qa-assets/users/vHBTrf5ZViWgpSugoZ8AgaD4ojs1/5117155628548096/5703438092468224/plugin_5632214784016384_1593022965042/sphere1a.jpg","pluginId":"5632214784016384","rotation":{"x":0,"y":0,"z":0},"scale":{"x":1,"y":1,"z":1},"instanceId":"plugin_5632214784016384_1593023016985","repeat":"1 1","width":"55","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/ZIGqF6yhmEZl3yjaK4dEF8ajipl1/5632214784016384/v4/script.js","templateFilename":"users/ZIGqF6yhmEZl3yjaK4dEF8ajipl1/5632214784016384/v4/template.html","position":{"x":0,"y":1.6,"z":-3},"schemaFilename":"users/ZIGqF6yhmEZl3yjaK4dEF8ajipl1/5632214784016384/v4/schema.json","height":"55"},{"color":"white","src":"https://storage.googleapis.com/orbix360-qa-plugins/defaults/images/profile-icon.png","instanceName":"Sphere","pluginId":"5660104556806144","rotation":{"x":0,"y":133.61375782450796,"z":0},"scale":{"x":1,"y":1,"z":1},"instanceId":"plugin_5660104556806144_1593023194073","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/ZIGqF6yhmEZl3yjaK4dEF8ajipl1/5660104556806144/v3/script.js","position":{"x":-1.5833071146357054,"y":3.6536801637740357,"z":1.5084881059077033},"templateFilename":"users/ZIGqF6yhmEZl3yjaK4dEF8ajipl1/5660104556806144/v3/template.html","radius":"0.5","schemaFilename":"users/ZIGqF6yhmEZl3yjaK4dEF8ajipl1/5660104556806144/v3/schema.json"},{"theta_start":"135","src":"https://storage.googleapis.com/orbix360-qa-plugins/defaults/images/profile-icon.png","instanceName":"Curved Image","pluginId":"5673472910950400","rotation":{"x":0,"y":157.9071683380547,"z":0},"scale":{"x":1,"y":1,"z":1},"instanceId":"plugin_5673472910950400_1593023212333","theta_length":"90","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/ZIGqF6yhmEZl3yjaK4dEF8ajipl1/5673472910950400/v1/script.js","position":{"x":-0.741278796335664,"y":3.8617429613463714,"z":1.8262049509579403},"templateFilename":"users/ZIGqF6yhmEZl3yjaK4dEF8ajipl1/5673472910950400/v1/template.html","schemaFilename":"users/ZIGqF6yhmEZl3yjaK4dEF8ajipl1/5673472910950400/v1/schema.json","radius":"0.707","class":"screen cursorTarget","height":"1"},{"code":"\n\n\n\n\n","instanceName":"Code Snippet","pluginId":"5688825271549952","rotation":{"x":0,"y":165.24102811572897,"z":0},"scale":{"x":1,"y":1,"z":1},"instanceId":"plugin_5688825271549952_1593023227708","scriptFilename":"users/ZIGqF6yhmEZl3yjaK4dEF8ajipl1/5688825271549952/v1/script.js","templateFilename":"users/ZIGqF6yhmEZl3yjaK4dEF8ajipl1/5688825271549952/v1/template.html","position":{"x":-0.7405011249357489,"y":0.8577881222364293,"z":2.8108325479251812},"schemaFilename":"users/ZIGqF6yhmEZl3yjaK4dEF8ajipl1/5688825271549952/v1/schema.json"}],"hotspots":[],"id":5703438092468224}],"versionNumber":3,"autorotate":{"enabled":false}}; window.brandingAllowed = false; window.upgradeCheckoutSessionStatus = ''; window.isUpgradeSubscriptionValid = false; window.isPro = (window.brandingAllowed || window.isUpgradeSubscriptionValid); window.nadirLogoURL = (window.brandingAllowed || isUpgradeSubscriptionValid) ? '/images/powered-by-orbix_nadir.png' : '/images/orbix_nadir.png'; window.editMode = false;