Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

readded about click event #230

Benjamin8b2913667f2a
diff --git a/web/js/ui/wv.ui.info.js b/web/js/ui/wv.ui.info.js
index 20e0e342b..5e12ca3f5 100644
--- a/web/js/ui/wv.ui.info.js
+++ b/web/js/ui/wv.ui.info.js
@@ -90,6 +90,21 @@ wv.ui.info = wv.ui.info || (function(ui, config) {
});
$menuItems.hide();
+ $about.click(function() {
+ if ( wv.util.browser.small || wv.util.browser.touchDevice ) {
+ window.open("brand/pages/about.html?v=@BUILD_NONCE@", "_blank");
+ } else {
+ wv.ui.getDialog().dialog({
+ title: "About",
+ width: 625,
+ height: 525,
+ show: { effect: "fade" },
+ hide: { effect: "fade" }
+ })
+ .load("brand/pages/about.html?v=@BUILD_NONCE@ #page")
+ .addClass("wv-opaque");
+ }
+ });
$source.click( function( e ){
window.open("https://github.com/nasa-gibs/worldview", "_blank");
});