Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Styled reddit button, removed google plus button

ZachTRice081101115953
diff --git a/web/css/wv.link.css b/web/css/wv.link.css
index 3c406d633..dc2591769 100644
--- a/web/css/wv.link.css
+++ b/web/css/wv.link.css
@@ -20,7 +20,6 @@
display: inline-block;
height: 48px;
line-height: 48px;
- margin: auto 10px;
width: 48px;
font-size: 24px;
text-align: center;
@@ -34,6 +33,23 @@
background-color: #00aced;
}
+#social-share .fa-reddit {
+ position: relative;
+ color: #FF5700;
+ background-color: #fff;
+ font-size: 48px;
+ height: 46px;
+ width: 46px;
+ margin-left: 1px;
+}
+
+#social-share .fa-reddit:before {
+ border-radius: 50%;
+ position: absolute;
+ left: -1px;
+ top: 0;
+}
+
#social-share .fa-google-plus {
background-color: #d34836;
}
diff --git a/web/js/link/wv.link.ui.js b/web/js/link/wv.link.ui.js
index 5baf1cccb..4cd2dc05e 100644
--- a/web/js/link/wv.link.ui.js
+++ b/web/js/link/wv.link.ui.js
@@ -93,13 +93,13 @@ wv.link.ui = wv.link.ui || function(models, config) {
"target='_blank' " +
"title='Share via Twitter!'></a>";
- // TODO: Replace Google+ with reddit
+ // Reddit
// https://www.reddit.com/r/nasa/submit?url=[URL]&title=[TITLE]
item += "<a id='rd-share' class='icon-link fa fa-reddit fa-2x' href='https://www.reddit.com/r/nasa/submit?" +
"url=" + defaultLink +
"&title=" + shareMessage + "' " +
"target='_blank' " +
- "title='Share on Reddit!'></a>";
+ "title='Share via Reddit!'></a>";
// Google Plus: https://developers.google.com/+/web/share/#sharelink-endpoint
// item += "<a id='gp-share' class='icon-link fa fa-google-plus fa-2x' href='https://plus.google.com/share?" +
@@ -183,10 +183,10 @@ wv.link.ui = wv.link.ui || function(models, config) {
);
// Set Google Plus
- var gpLink = document.getElementById("gp-share");
- gpLink.setAttribute("href", "https://plus.google.com/share?" +
- "url=" + fullEncodedLink
- );
+ // var gpLink = document.getElementById("gp-share");
+ // gpLink.setAttribute("href", "https://plus.google.com/share?" +
+ // "url=" + fullEncodedLink
+ // );
// Set Email
var emailLink = document.getElementById("email-share");