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/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/preview_adv-one-xjpg-1562004205663.jpg","resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FWJpAiVJDsMM5JEqzoG50ECKcckV2%2F5138412092784640%2Fadv-one-xjpg-1562004205663.jpg&uploadType=resumable&upload_id=AEnB2Uo5sGI9rlDHky47rVuouzJ3SK9kerCiHeuX4o8tgu6sejAp8jCugvFqsy8QWJsjj39LIc_Efm82EeIYza3kRZJeWbYJWF-7aGuAMvEs_vY4XUwONCE","image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/adv-one-xjpg-1562004205663.jpg","rotation":0,"thumbnail_gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/thumb_adv-one-xjpg-1562004205663.jpg","title":"Insta360 One X","version":"v3","gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/adv-one-xjpg-1562004205663.jpg","folder":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640","filename":"adv-one-xjpg-1562004205663.jpg","is_stereo":false,"thumbnail_image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/thumb_adv-one-xjpg-1562004205663.jpg","preview_image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/preview_adv-one-xjpg-1562004205663.jpg","photo_type":"360_mono","created_date":"2019-07-01T18:03:25.664Z","updated_date":"2019-07-01T18:03:25.664Z","sort_order":1,"status":"active","id":"6268538884980736","has_anaglyph":false},{"preview_gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/preview_car-rylojpg-1562004205685.JPG","resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FWJpAiVJDsMM5JEqzoG50ECKcckV2%2F5138412092784640%2Fcar-rylojpg-1562004205685.JPG&uploadType=resumable&upload_id=AEnB2Uonb7dpIHAJeeLJI-1GkMu1kH8heuzA3ApjH6wUm7Vhia-qf2-tp70f_zrUVBrjAVgSSyO9bRziVO8I8qU5hUatleiZ353_Y4_WANUMjniBPvK-bHQ","image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/car-rylojpg-1562004205685.JPG","rotation":0,"thumbnail_gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/thumb_car-rylojpg-1562004205685.JPG","title":"Rylo","version":"v3","gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/car-rylojpg-1562004205685.JPG","folder":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640","filename":"car-rylojpg-1562004205685.JPG","is_stereo":false,"thumbnail_image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/thumb_car-rylojpg-1562004205685.JPG","preview_image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/preview_car-rylojpg-1562004205685.JPG","photo_type":"360_mono","updated_date":"2019-07-01T18:03:25.686Z","created_date":"2019-07-01T18:03:25.686Z","sort_order":2,"status":"active","id":"6317886213718016","has_anaglyph":false},{"preview_gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/preview_cinderella-castle-goprojpg-1562004205677.jpg","resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FWJpAiVJDsMM5JEqzoG50ECKcckV2%2F5138412092784640%2Fcinderella-castle-goprojpg-1562004205677.jpg&uploadType=resumable&upload_id=AEnB2Urpo7nNol3fa6D2dCVJewg2pgUWbCX5rIRj3IHfLJ0iEFawTyi2BqPoBelm1dWN2DF6BiCMBmZAQPi9rSXsTFAm8_UqlobNVObdApeiXmUcXNcSNbY","image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/cinderella-castle-goprojpg-1562004205677.jpg","rotation":0,"thumbnail_gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/thumb_cinderella-castle-goprojpg-1562004205677.jpg","title":"GoPro","version":"v3","gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/cinderella-castle-goprojpg-1562004205677.jpg","folder":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640","filename":"cinderella-castle-goprojpg-1562004205677.jpg","thumbnail_image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/thumb_cinderella-castle-goprojpg-1562004205677.jpg","is_stereo":false,"preview_image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/preview_cinderella-castle-goprojpg-1562004205677.jpg","photo_type":"360_mono","updated_date":"2019-07-01T18:03:25.677Z","created_date":"2019-07-01T18:03:25.677Z","sort_order":3,"status":"active","id":"5078886027100160","has_anaglyph":false},{"preview_gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/preview_liberty-square-nano-sjpg-1562004205692.JPG","resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FWJpAiVJDsMM5JEqzoG50ECKcckV2%2F5138412092784640%2Fliberty-square-nano-sjpg-1562004205692.JPG&uploadType=resumable&upload_id=AEnB2UpIuwenNnjibgXc21GsMwkkrrGAJX2aMs-AeOXuqDF--SlifjYpK02AFzpL432LREZdiTgbfTuzNLeErxlhRmn48YB1oI0CYblxuN5j7IxWZUjtUBQ","image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/liberty-square-nano-sjpg-1562004205692.JPG","rotation":0,"thumbnail_gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/thumb_liberty-square-nano-sjpg-1562004205692.JPG","title":"Insta360 Nano S","version":"v3","gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/liberty-square-nano-sjpg-1562004205692.JPG","folder":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640","filename":"liberty-square-nano-sjpg-1562004205692.JPG","thumbnail_image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/thumb_liberty-square-nano-sjpg-1562004205692.JPG","is_stereo":false,"preview_image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/preview_liberty-square-nano-sjpg-1562004205692.JPG","photo_type":"360_mono","updated_date":"2019-07-01T18:03:25.693Z","created_date":"2019-07-01T18:03:25.693Z","sort_order":4,"status":"active","id":"4789588505657344","has_anaglyph":false},{"preview_gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/preview_main-thetajpg-1562004205698.JPG","resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FWJpAiVJDsMM5JEqzoG50ECKcckV2%2F5138412092784640%2Fmain-thetajpg-1562004205698.JPG&uploadType=resumable&upload_id=AEnB2Ur_jPF3mbmtph-xCh80i3WbFt_KPfGQdCLv4ZWiQxWKNbYy5dMvQmKCK_Dme75RPshw2YiFxbC7jXWdJlD9LemUeRIgLuVWyATBbumtgXv9IKpRIps","image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/main-thetajpg-1562004205698.JPG","rotation":0,"thumbnail_gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/thumb_main-thetajpg-1562004205698.JPG","title":"Theta V","version":"v3","gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/main-thetajpg-1562004205698.JPG","folder":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640","filename":"main-thetajpg-1562004205698.JPG","is_stereo":false,"thumbnail_image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/thumb_main-thetajpg-1562004205698.JPG","preview_image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/preview_main-thetajpg-1562004205698.JPG","photo_type":"360_mono","created_date":"2019-07-01T18:03:25.700Z","updated_date":"2019-07-01T18:03:25.700Z","sort_order":5,"status":"active","id":"5148840239824896","has_anaglyph":false}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"6268538884980736":{"preview_gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/preview_adv-one-xjpg-1562004205663.jpg","resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FWJpAiVJDsMM5JEqzoG50ECKcckV2%2F5138412092784640%2Fadv-one-xjpg-1562004205663.jpg&uploadType=resumable&upload_id=AEnB2Uo5sGI9rlDHky47rVuouzJ3SK9kerCiHeuX4o8tgu6sejAp8jCugvFqsy8QWJsjj39LIc_Efm82EeIYza3kRZJeWbYJWF-7aGuAMvEs_vY4XUwONCE","image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/adv-one-xjpg-1562004205663.jpg","rotation":0,"thumbnail_gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/thumb_adv-one-xjpg-1562004205663.jpg","title":"Insta360 One X","version":"v3","gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/adv-one-xjpg-1562004205663.jpg","folder":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640","filename":"adv-one-xjpg-1562004205663.jpg","is_stereo":false,"thumbnail_image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/thumb_adv-one-xjpg-1562004205663.jpg","preview_image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/preview_adv-one-xjpg-1562004205663.jpg","photo_type":"360_mono","created_date":"2019-07-01T18:03:25.664Z","updated_date":"2019-07-01T18:03:25.664Z","sort_order":1,"status":"active","id":"6268538884980736","has_anaglyph":false},"6317886213718016":{"preview_gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/preview_car-rylojpg-1562004205685.JPG","resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FWJpAiVJDsMM5JEqzoG50ECKcckV2%2F5138412092784640%2Fcar-rylojpg-1562004205685.JPG&uploadType=resumable&upload_id=AEnB2Uonb7dpIHAJeeLJI-1GkMu1kH8heuzA3ApjH6wUm7Vhia-qf2-tp70f_zrUVBrjAVgSSyO9bRziVO8I8qU5hUatleiZ353_Y4_WANUMjniBPvK-bHQ","image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/car-rylojpg-1562004205685.JPG","rotation":0,"thumbnail_gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/thumb_car-rylojpg-1562004205685.JPG","title":"Rylo","version":"v3","gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/car-rylojpg-1562004205685.JPG","folder":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640","filename":"car-rylojpg-1562004205685.JPG","is_stereo":false,"thumbnail_image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/thumb_car-rylojpg-1562004205685.JPG","preview_image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/preview_car-rylojpg-1562004205685.JPG","photo_type":"360_mono","updated_date":"2019-07-01T18:03:25.686Z","created_date":"2019-07-01T18:03:25.686Z","sort_order":2,"status":"active","id":"6317886213718016","has_anaglyph":false},"5078886027100160":{"preview_gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/preview_cinderella-castle-goprojpg-1562004205677.jpg","resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FWJpAiVJDsMM5JEqzoG50ECKcckV2%2F5138412092784640%2Fcinderella-castle-goprojpg-1562004205677.jpg&uploadType=resumable&upload_id=AEnB2Urpo7nNol3fa6D2dCVJewg2pgUWbCX5rIRj3IHfLJ0iEFawTyi2BqPoBelm1dWN2DF6BiCMBmZAQPi9rSXsTFAm8_UqlobNVObdApeiXmUcXNcSNbY","image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/cinderella-castle-goprojpg-1562004205677.jpg","rotation":0,"thumbnail_gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/thumb_cinderella-castle-goprojpg-1562004205677.jpg","title":"GoPro","version":"v3","gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/cinderella-castle-goprojpg-1562004205677.jpg","folder":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640","filename":"cinderella-castle-goprojpg-1562004205677.jpg","thumbnail_image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/thumb_cinderella-castle-goprojpg-1562004205677.jpg","is_stereo":false,"preview_image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/preview_cinderella-castle-goprojpg-1562004205677.jpg","photo_type":"360_mono","updated_date":"2019-07-01T18:03:25.677Z","created_date":"2019-07-01T18:03:25.677Z","sort_order":3,"status":"active","id":"5078886027100160","has_anaglyph":false},"4789588505657344":{"preview_gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/preview_liberty-square-nano-sjpg-1562004205692.JPG","resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FWJpAiVJDsMM5JEqzoG50ECKcckV2%2F5138412092784640%2Fliberty-square-nano-sjpg-1562004205692.JPG&uploadType=resumable&upload_id=AEnB2UpIuwenNnjibgXc21GsMwkkrrGAJX2aMs-AeOXuqDF--SlifjYpK02AFzpL432LREZdiTgbfTuzNLeErxlhRmn48YB1oI0CYblxuN5j7IxWZUjtUBQ","image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/liberty-square-nano-sjpg-1562004205692.JPG","rotation":0,"thumbnail_gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/thumb_liberty-square-nano-sjpg-1562004205692.JPG","title":"Insta360 Nano S","version":"v3","gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/liberty-square-nano-sjpg-1562004205692.JPG","folder":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640","filename":"liberty-square-nano-sjpg-1562004205692.JPG","thumbnail_image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/thumb_liberty-square-nano-sjpg-1562004205692.JPG","is_stereo":false,"preview_image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/preview_liberty-square-nano-sjpg-1562004205692.JPG","photo_type":"360_mono","updated_date":"2019-07-01T18:03:25.693Z","created_date":"2019-07-01T18:03:25.693Z","sort_order":4,"status":"active","id":"4789588505657344","has_anaglyph":false},"5148840239824896":{"preview_gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/preview_main-thetajpg-1562004205698.JPG","resumable_upload_uri":"https://www.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FWJpAiVJDsMM5JEqzoG50ECKcckV2%2F5138412092784640%2Fmain-thetajpg-1562004205698.JPG&uploadType=resumable&upload_id=AEnB2Ur_jPF3mbmtph-xCh80i3WbFt_KPfGQdCLv4ZWiQxWKNbYy5dMvQmKCK_Dme75RPshw2YiFxbC7jXWdJlD9LemUeRIgLuVWyATBbumtgXv9IKpRIps","image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/main-thetajpg-1562004205698.JPG","rotation":0,"thumbnail_gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/thumb_main-thetajpg-1562004205698.JPG","title":"Theta V","version":"v3","gcs_filename":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/main-thetajpg-1562004205698.JPG","folder":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640","filename":"main-thetajpg-1562004205698.JPG","is_stereo":false,"thumbnail_image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/thumb_main-thetajpg-1562004205698.JPG","preview_image_url":"/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/preview_main-thetajpg-1562004205698.JPG","photo_type":"360_mono","created_date":"2019-07-01T18:03:25.700Z","updated_date":"2019-07-01T18:03:25.700Z","sort_order":5,"status":"active","id":"5148840239824896","has_anaglyph":false}}; 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 = "5138412092784640"; window.tourUid = "WJpAiVJDsMM5JEqzoG50ECKcckV2"; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "magic-kingdom"; window.template = ''; window.template_category = ''; window.tourShortCode = "FTCSEjNgS"; 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['6268538884980736'] = 0; window.current_image_index = 0; window.current_image_id = 6268538884980736 window.photo_indexes['6317886213718016'] = 1; window.photo_indexes['5078886027100160'] = 2; window.photo_indexes['4789588505657344'] = 3; window.photo_indexes['5148840239824896'] = 4; 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://lh5.googleusercontent.com/-f92XL8FpDt8/AAAAAAAAAAI/AAAAAAAAAII/BxhRBksNtBE/photo.jpg'; window.user_profile_name = 'Orbi-2446219253'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://storage.googleapis.com/orbix360-prod-images/users/WJpAiVJDsMM5JEqzoG50ECKcckV2/5138412092784640/thumb_adv-one-xjpg-1562004205663.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":[{"id":6268538884980736,"hotspots":[],"infoHotspots":[]},{"id":6317886213718016,"hotspots":[],"infoHotspots":[]},{"id":5078886027100160,"hotspots":[],"infoHotspots":[]},{"id":4789588505657344,"hotspots":[],"infoHotspots":[]},{"id":5148840239824896,"hotspots":[],"infoHotspots":[]}],"autorotate":{"enabled":false},"versionNumber":2}; window.brandingAllowed = false; 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;