Interactive interface for browsing global, full-resolution satellite imagery
Merge branch 'master' into develop
ZachTRice53837f82e8f7
diff --cc web/js/tour/ui.jsindex 6ca3fddc7,a14033f49..14a92db5b--- a/web/js/tour/ui.js+++ b/web/js/tour/ui.js@@@ -71,13 -86,15 +86,15 @@@ export function tourUi(models, ui, confif (hideTour && config.buildDate) {let buildDate = new Date(config.buildDate);let tourDate = new Date(hideTour);+// Tour hidden when visiting fresh URLgoogleTagManager.pushEvent({- 'event': 'tour_start_hidden',- 'buildDate': buildDate,- 'tourDate': tourDate+ event: 'tour_start_hidden',+ buildDate: buildDate,+ tourDate: tourDate});- if (buildDate > tourDate) {++ if (config.buildDate > hideTour) {localStorage.removeItem('hideTour');return true;} else {@@@ -146,13 -159,16 +164,16 @@@// Checkbox to "hide tour modal until a new story has been added" has been checkedgoogleTagManager.pushEvent({- 'event': 'tour_hide_checked'+ event: 'tour_hide_checked'});- if (!util.browser.localStorage) return;if (hideTour) return;+ let date = new Date();+ let dateUTC = Date.UTC(date.getUTCFullYear(), date.getUTCMonth(),+ date.getUTCDate(), date.getUTCHours(),+ date.getUTCMinutes(), date.getUTCSeconds());- localStorage.setItem('hideTour', new Date());+ localStorage.setItem('hideTour', dateUTC);};self.showTour = function(e) {@@@ -160,10 -177,9 +182,9 @@@// Checkbox to "hide tour modal until a new story has been added" has been checkedgoogleTagManager.pushEvent({- 'event': 'tour_hide_unchecked'+ event: 'tour_hide_unchecked'});- if (!util.browser.localStorage) return;if (!hideTour) return;localStorage.removeItem('hideTour');