Interactive interface for browsing global, full-resolution satellite imagery
Removed unnecessary file, updated syntax
ZachTRice05ebcfc94d8a
diff --git a/web/js/link/wv.link.ui.js b/web/js/link/wv.link.ui.jsindex 15b9ec901..4ae920ed6 100644--- a/web/js/link/wv.link.ui.js+++ b/web/js/link/wv.link.ui.js@@ -29,7 +29,7 @@ wv.link.ui = wv.link.ui || function(models, config) {.attr("title", "Share this map");var $icon = $("<i></i>").addClass("fa")- .addClass("fa-link")+ .addClass("fa-share-square-o").addClass("fa-2x");$label.append($icon);$(selector).append($label);@@ -154,45 +154,30 @@ wv.link.ui = wv.link.ui || function(models, config) {// &link=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2F// &redirect_uri=https://developers.facebook.com/tools/explorer- React.createElement("a", {href: `${this.props.link}`, title: "Share via Facebook"},+ React.createElement("a", {href: this.props.link, title: "Share via Facebook"},React.createElement("i", {className: "fa fa-facebook-square"})),// https://twitter.com/intent/tweet?text=React%20Social!%20https%3A%2F%2Fgithub.com%2Folahol%2Freact-social%2F- React.createElement("a", {href: `${this.props.link}`, title: "Share via Facebook"},+ React.createElement("a", {href: this.props.link, title: "Share via Facebook"},React.createElement("i", {className: "fa fa-twitter-square"})),// google plus- React.createElement("a", {href: `${this.props.link}`, title: "Share via Facebook"},+ React.createElement("a", {href: this.props.link, title: "Share via Facebook"},React.createElement("i", {className: "fa fa-google-plus-square"})),- React.createElement("a", {href: `${this.props.link}`, title: "Share via Facebook"},+ React.createElement("a", {href: this.props.link, title: "Share via Facebook"},React.createElement("i", {className: "fa fa-envelope-square"})));}}- // JSX code- // render: function () {- // var link = "https://github.com/olahol/react-social/",- // facebookAppId = "yourFacebookAppId",- // message = "React Social!";- //- // return (- // <div>- // <FacebookButton title="Share via Facebook" message={message} appId={facebookAppId} url={link} element="a" className="">- // <i className="fa fa-facebook-square"/>- // </FacebookButton>- // </div>- // );- // }-ReactDOM.render(React.createElement(ShareApp,- {link: 'https://github.com/olahol/react-social/'},+ {link: 'https://worldview.earthdata.nasa.gov/'},{facebookAppId: "yourFacebookAppId"},{message: "React Social!"}),$('#wv-link-shorten')[0]);diff --git a/web/js/share/wv.share.widget.js b/web/js/share/wv.share.widget.jsdeleted file mode 100644index 6675359ec..000000000--- a/web/js/share/wv.share.widget.js+++ /dev/null@@ -1,27 +0,0 @@-/*- * NASA Worldview- *- * This code was originally developed at NASA/Goddard Space Flight Center for- * the Earth Science Data and Information System (ESDIS) project.- *- * Copyright (C) 2013 - 2016 United States Government as represented by the- * Administrator of the National Aeronautics and Space Administration.- * All Rights Reserved.- *- * Licensed under the NASA Open Source Agreement, Version 1.3- * http://opensource.gsfc.nasa.gov/nosa.php- */-var wv = wv || {};--wv.share = wv.share || {};--wv.share = wv.share || function() {- var self = {};- self.init = function() {- //mount react component- self.reactComponent = ReactDOM.render(<App />, $('#wv-link-button')[0]);- };-- self.init();- return self;-};