Interactive interface for browsing global, full-resolution satellite imagery
Changed meta tags, updated links for UAT testing, new preview image
ZachTRice6e0c38fd7405
diff --git a/web/images/preview.jpg b/web/images/preview.jpgdeleted file mode 100644index 9bcd93486..000000000Binary files a/web/images/preview.jpg and /dev/null differdiff --git a/web/images/worldview_app.jpg b/web/images/worldview_app.jpgnew file mode 100644index 000000000..574ade95cBinary files /dev/null and b/web/images/worldview_app.jpg differdiff --git a/web/index.html b/web/index.htmlindex 5d93b9c40..30c050b11 100644--- a/web/index.html+++ b/web/index.html@@ -38,11 +38,10 @@<meta http-equiv="Cache-control" content="no-store"><meta http-equiv="Pragma" content="no-cache">- <!-- schema.org for social sharing -->- <meta itemprop="name" content="EOSDIS Worldview">- <meta itemprop="description" content="NASA's Worldview Application">- <meta itemprop="image" content="/images/preview.jpg">- <meta property="og:image" content="/images/preview.jpg" />+ <!-- open graph for social sharing -->+ <meta property="og:title" content="EOSDIS Worldview">+ <meta property="og:image" content="/images/worldview_app.jpg" />+ <meta property="og:description" content="NASA's Worldview Application"><!-- CSS resources ==================================================== -->diff --git a/web/js/link/wv.link.ui.js b/web/js/link/wv.link.ui.jsindex e92708b3e..1c75ac241 100644--- a/web/js/link/wv.link.ui.js+++ b/web/js/link/wv.link.ui.js@@ -82,32 +82,32 @@ wv.link.ui = wv.link.ui || function(models, config) {// Facebook: https://developers.facebook.com/docs/sharing/reference/share-dialog#redirectitem += "<a id='fb-share' class='icon-link fa fa-facebook fa-2x' href='https://www.facebook.com/dialog/share?" +- "app_id=" + fbAppId +- "&href=" + defaultLink +- "&redirect_uri=" + fbRedirectUri +- "&display=popup' " +- "target='_blank' " +- "title='Share via Facebook!'></a>";+ "app_id=" + fbAppId ++ "&href=" + defaultLink ++ "&redirect_uri=" + fbRedirectUri ++ "&display=popup' " ++ "target='_blank' " ++ "title='Share via Facebook!'></a>";// Twitter: https://dev.twitter.com/web/tweet-button/parameters#web-intent-exampleitem += "<a id='tw-share' class='icon-link fa fa-twitter fa-2x' href='https://twitter.com/intent/tweet?" +- "url=" + defaultLink +- "&text=" + twMessage + "%20-' " +- "target='_blank' " +- "title='Share via Twitter!'></a>";+ "url=" + defaultLink ++ "&text=" + twMessage + "%20-' " ++ "target='_blank' " ++ "title='Share via Twitter!'></a>";// Google Plus: https://developers.google.com/+/web/share/#sharelink-endpointitem += "<a id='gp-share' class='icon-link fa fa-google-plus fa-2x' href='https://plus.google.com/share?" +- "url=" + defaultLink + " '" +- "target='_blank' " +- "title='Share via Google Plus!'></a>";+ "url=" + defaultLink + " '" ++ "target='_blank' " ++ "title='Share via Google Plus!'></a>";item += "<a id='email-share' class='icon-link fa fa-envelope fa-2x' href='mailto:?" +- "subject=" + emailMessage +- "&body=" + emailMessage + "%20-%20" + defaultLink + " '" +- "target='_self' " +- "title='Share via Email!'></a>";+ "subject=" + emailMessage ++ "&body=" + emailMessage + "%20-%20" + defaultLink + " '" ++ "target='_self' " ++ "title='Share via Email!'></a>";item += "</div>";@@ -149,20 +149,21 @@ wv.link.ui = wv.link.ui || function(models, config) {$('#permalink_content').val(models.link.get());$dialog.dialog("open");setTimeout(updateLink, 500);-// When an icon-link is clicked, replace the URL with short link.$(".icon-link").on("click", function() {+ var fullEncodedLink = encodeURIComponent(models.link.get());var promise = models.link.shorten();promise.done(function(result) {if ( result.status_code === 200 ) {var shortLink = result.data.url;var shortEncodedLink = encodeURIComponent(shortLink);+ // TODO: Replace fullEncodedLink with shortEncodedLink when deployed to master// Set Facebookvar fbLink = document.getElementById("fb-share");fbLink.setAttribute("href", "https://www.facebook.com/dialog/share?" +"app_id=" + fbAppId +- "&href=" + shortEncodedLink ++ "&href=" + fullEncodedLink +"&redirect_uri=" + fbRedirectUri +"&display=popup");@@ -170,21 +171,21 @@ wv.link.ui = wv.link.ui || function(models, config) {// Set Twittervar twLink = document.getElementById("tw-share");twLink.setAttribute("href", "https://twitter.com/intent/tweet?" +- "url=" + shortEncodedLink ++ "url=" + fullEncodedLink +"&text=" + twMessage + "%20-");// Set Google Plusvar gpLink = document.getElementById("gp-share");gpLink.setAttribute("href", "https://plus.google.com/share?" +- "url=" + shortEncodedLink+ "url=" + fullEncodedLink);// Set Emailvar emailLink = document.getElementById("email-share");emailLink.setAttribute("href", "mailto:?" +"subject=" + emailMessage +- "&body=" + emailMessage + "%20-%20" + shortEncodedLink+ "&body=" + emailMessage + "%20-%20" + fullEncodedLink);return false;} else {