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 = [{"preview_gcs_filename":"/users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5197543222804480/preview_image_11h30m058jpg-1561381259789.jpg","resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2Fsn4iLJyuI5Y6LMBmIQrqSelGxJK2%2F5197543222804480%2Fimage_11h30m058jpg-1561381259789.jpg&uploadType=resumable&upload_id=AEnB2UpdBbfNBYX4dBiDZztEKBsZePPW0ZaQM4goPn4qDSE9203IX7VRGVpzRw_2erJRMW_nW2LXN5CnRqV7FDqdslopZ-BniaJ1BsTVubPm91oAIjpzbFk","image_url":"/users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5197543222804480/image_11h30m058jpg-1561381259789.jpg","rotation":1.718873385392468,"thumbnail_gcs_filename":"/users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5197543222804480/thumb_image_11h30m058jpg-1561381259789.jpg","version":"v4","gcs_filename":"/users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5197543222804480/image_11h30m058jpg-1561381259789.jpg","filename":"image_11h30m058jpg-1561381259789.jpg","folder":"/users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5197543222804480","thumbnail_image_url":"/users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5197543222804480/thumb_image_11h30m058jpg-1561381259789.jpg","is_stereo":false,"preview_image_url":"/users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5197543222804480/preview_image_11h30m058jpg-1561381259789.jpg","photo_type":"360_mono","updated_date":"2019-06-24T13:00:59.790Z","created_date":"2019-06-24T13:00:59.790Z","sort_order":1,"status":"active","id":"5160472756092928","has_anaglyph":false,"index":0,"title":"Photo 1"}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5160472756092928":{"preview_gcs_filename":"/users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5197543222804480/preview_image_11h30m058jpg-1561381259789.jpg","resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2Fsn4iLJyuI5Y6LMBmIQrqSelGxJK2%2F5197543222804480%2Fimage_11h30m058jpg-1561381259789.jpg&uploadType=resumable&upload_id=AEnB2UpdBbfNBYX4dBiDZztEKBsZePPW0ZaQM4goPn4qDSE9203IX7VRGVpzRw_2erJRMW_nW2LXN5CnRqV7FDqdslopZ-BniaJ1BsTVubPm91oAIjpzbFk","image_url":"/users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5197543222804480/image_11h30m058jpg-1561381259789.jpg","rotation":1.718873385392468,"thumbnail_gcs_filename":"/users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5197543222804480/thumb_image_11h30m058jpg-1561381259789.jpg","version":"v4","gcs_filename":"/users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5197543222804480/image_11h30m058jpg-1561381259789.jpg","filename":"image_11h30m058jpg-1561381259789.jpg","folder":"/users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5197543222804480","thumbnail_image_url":"/users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5197543222804480/thumb_image_11h30m058jpg-1561381259789.jpg","is_stereo":false,"preview_image_url":"/users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5197543222804480/preview_image_11h30m058jpg-1561381259789.jpg","photo_type":"360_mono","updated_date":"2019-06-24T13:00:59.790Z","created_date":"2019-06-24T13:00:59.790Z","sort_order":1,"status":"active","id":"5160472756092928","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 = "5197543222804480"; window.tourUid = "sn4iLJyuI5Y6LMBmIQrqSelGxJK2"; window.customUrl = "https://www.orbix360.com"; window.tourSlug = "sedona-flat-images"; window.template = ''; window.template_category = ''; window.tourShortCode = "FTSSe8DE9"; 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['5160472756092928'] = 0; window.current_image_index = 0; window.current_image_id = 5160472756092928 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://storage.googleapis.com/orbix360-prod-images/orbix360_default.jpg'; window.user_profile_name = 'Orbix360'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://storage.googleapis.com/orbix360-prod-images/users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5197543222804480/thumb_image_11h30m058jpg-1561381259789.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 = {"orbs":[{"infoHotspots":[{"description":"Great shot from our Grand Canyon day trip.","from":5160472756092928,"id":"hotspot_5160472756092928_info_1561652709068","position":{"x":-0.4780707940125246,"y":-0.37591271070366383,"z":-0.7938122887960717},"to":"info","title":"Grand Canyon Vista"},{"description":"We call this rock \"Coffee Pot Not\".","from":5160472756092928,"to":"info","id":"hotspot_5160472756092928_info_1561652807449","position":{"x":0.8902962001000793,"y":-0.3191549626356754,"z":-0.32482731706613027},"title":"Coffee Pot?"},{"description":"Barbecue at our AirBnB with Cathedral Rock in the background.","from":5160472756092928,"id":"hotspot_5160472756092928_info_1561652909353","to":"info","position":{"x":0.4388291274122362,"y":-0.35043703610525345,"z":0.8274194103720196},"title":"Dinner"},{"description":"Chill","from":5160472756092928,"position":{"x":-0.8513251224428249,"y":-0.3689776591161489,"z":0.37296249539447823},"id":"hotspot_5160472756092928_info_1561653111787","to":"info","title":"Amitabha Stupa and Peace Park"}],"plugins":[],"flatImages":[{"src":"https://storage.googleapis.com/orbix360-prod-images/users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5197543222804480/IMG_7195.JPG","is_stereo":false,"width":4032,"scale_multiplier":1.69,"position":{"x":0.983841588528701,"y":0.030330041210412786,"z":0.17645344224893109},"id":"flat_image_5160472756092928_1561381877714","height":3024},{"is_stereo":false,"src":"https://storage.googleapis.com/orbix360-prod-images/users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5197543222804480/IMG_7601.JPG","width":4032,"scale_multiplier":1.6500000000000001,"id":"flat_image_5160472756092928_1561383782600","position":{"x":-0.014751478541459652,"y":-0.030334034441257006,"z":0.9994309582134012},"height":3024},{"src":"https://storage.googleapis.com/orbix360-prod-images/users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5197543222804480/IMG_7448.JPG","is_stereo":false,"width":4032,"scale_multiplier":1.89,"id":"flat_image_5160472756092928_1561383907060","position":{"x":0.036349804724859686,"y":-0.006330748479550069,"z":-0.9993190748305335},"height":3024},{"is_stereo":false,"src":"https://storage.googleapis.com/orbix360-prod-images/users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/5197543222804480/IMG_7152.jpg","width":4032,"scale_multiplier":1.73,"id":"flat_image_5160472756092928_1561383991331","position":{"x":-0.9925252917153493,"y":-0.030403555410696784,"z":-0.11819123962354157},"height":3024}],"id":5160472756092928,"hotspots":[]}],"autorotate":{"enabled":false},"version":"v2","versionNumber":3}; window.brandingAllowed = true; window.upgradeCheckoutSessionStatus = ''; window.isPro = (window.brandingAllowed || window.upgradeCheckoutSessionStatus == 'complete'); window.nadirLogoURL = (window.brandingAllowed || window.upgradeCheckoutSessionStatus == 'complete') ? '/images/powered-by-orbix_nadir.png' : '/images/orbix_nadir.png'; window.editMode = false;