Interactive interface for browsing global, full-resolution satellite imagery
remove dead code, move styles to logical css files, remove dead imports, change http to https where valid, modify meta head tags
Ed Platof1fcbe3c94d7
diff --git a/web/css/dateselector.css b/web/css/dateselector.cssindex 680322fb9..30b8a8103 100644--- a/web/css/dateselector.css+++ b/web/css/dateselector.css@@ -57,14 +57,6 @@display: inline-block;}-/* .button-action-group,-.date-arrows {- -webkit-user-select: none;- -moz-user-select: none;- -ms-user-select: none;- user-select: none;-} */-.button-action-group {height: 40px;width: 40px;diff --git a/web/css/debug.css b/web/css/debug.cssdeleted file mode 100644index a50f5df8d..000000000--- a/web/css/debug.css+++ /dev/null@@ -1,9 +0,0 @@-#wv-debug-gibs {- position: absolute;- top: 0;- left: 200px;- height: 45px;- width: 525px;- background-color: #fff;- z-index: 10000;-}diff --git a/web/css/image.css b/web/css/image.cssindex 62cc997cc..363f71453 100644--- a/web/css/image.css+++ b/web/css/image.css@@ -1,3 +1,20 @@+#imagedownload {+ z-index: 1005;+ width: 180px;+ min-height: 100px;+ position: absolute;+ display: none;+ background: rgba(38, 43, 49, 0.45);+ text-shadow: none;+ color: #fff;+ float: left;+ font-size: 11px;+ text-align: left;+ top: 44px;+ padding: 5px;+ border-radius: 0 0 5px 5px;+}+.wv-image {color: #fff;}diff --git a/web/css/menuPicker.css b/web/css/menuPicker.cssdeleted file mode 100644index 38aa60760..000000000--- a/web/css/menuPicker.css+++ /dev/null@@ -1,21 +0,0 @@-ul.menuPicker {- margin: 0;- padding: 0;- color: #fff;- list-style: none;- display: block;-}--ul.menuPicker li {- border: 1px solid #000;- background: #666;- padding: 0.2em 1em;-}--ul.menuPicker li:hover {- background: #9b1c26;-}--ul.menuPicker li.disabled {- background: #999;-}diff --git a/web/css/reset.css b/web/css/reset.cssindex e1b0515a8..1ad80ca06 100644--- a/web/css/reset.css+++ b/web/css/reset.css@@ -192,191 +192,6 @@ sup {outline: 0;}-#info_drop {- border: none;- margin: 0;-}--#info_drop div.hidden a {- display: block;- color: #fff;- font-weight: 100;- line-height: 1em;- font-size: 11px;- width: 70px;- padding: 2px 5px;- text-align: right;- text-decoration: none;-}--#info_drop div.hidden a:hover {- background: rgba(38, 43, 49, 0.45);-}--#info_drop:hover div.hidden {- display: block;- background: rgba(38, 43, 49, 0.45);- width: 80px;- margin-left: -40px;- margin-top: 2px;-}--#info {- display: block;- width: 40px;- height: 40px;- border: none;-}--div.horizontalContainer {- width: 100%;- display: block;- float: left;- position: absolute;- bottom: 10px;- overflow: hidden;- z-index: 200;- padding: 0;-}-.hidden {display: none;}--#banner {- display: block;- z-index: 294;- float: left;- position: relative;- width: 100%;- height: 45px;-}--#banner img.logo {- padding: 11px 5px;-}--#banner ul {- float: right;-}--#banner ul li {- display: block;- float: right;- margin: 3px;- line-height: 0;-}--#banner ul li div {- line-height: 0;-}--#banner .toolbar-link {- display: inline-block;- line-height: 0;-}--#hazard,-#transition {- z-index: 1007;- clear: both;- float: left;- display: block;- position: relative;-}--#transition {- width: 22%;- height: 100px;- text-shadow: none;- color: #262626;- margin-top: 55px;-}--#hazard {- top: -13px;-}--#dlMap {- position: absolute !important;- left: 0;- top: 0;- background-color: #00f;- opacity: 0;- width: 100%;- height: 100%;- z-index: -1;- overflow: hidden;-}--#rubberband {- position: absolute !important;- left: 0;- top: 0;- width: 100%;- height: 100%;- z-index: -3;- display: none;- overflow: hidden;-}--#imagedownload {- z-index: 1005;- width: 180px;- min-height: 100px;- position: absolute;- display: none;- background: rgba(38, 43, 49, 0.45);- text-shadow: none;- color: #fff;- float: left;- font-size: 11px;- text-align: left;- top: 44px;- padding: 5px;- border-radius: 0 0 5px 5px;-}--#imgFileSize {- color: #d99694;-}--#transition ul {- font: 10px 'Open Sans', sans-serif;- text-align: center;-}--#transition ul li,-#transition ul li.disabled,-#transition ul li.disabled:hover {- background-color: rgb(76, 89, 92);- border-color: rgb(112, 135, 136);- border-width: 1px;-}--#transition ul li.selected {- background-color: rgb(152, 72, 7);- border-color: rgb(250, 192, 144);-}--#transition ul li:hover {- border-color: #ff0;-}--#wv-logo {- background: url('../brand/images/wv-logo.svg?v=@BUILD_NONCE@') no-repeat center rgba(40, 40, 40, 0.85);- display: block;- width: 286px;- height: 55px;- padding: 5px 0;- position: absolute;- top: 10px;- left: 10px;- border: 1px solid #333;- border-top-right-radius: 5px;- border-top-left-radius: 5px;- z-index: 1;- -webkit-box-sizing: border-box;- -o-box-sizing: border-box;- box-sizing: border-box;-}diff --git a/web/css/sidebar.css b/web/css/sidebar.cssindex a9872bc4b..b103cdd5b 100644--- a/web/css/sidebar.css+++ b/web/css/sidebar.css@@ -43,7 +43,22 @@border-bottom-right-radius: 5px;}#wv-logo {+ background: url('../brand/images/wv-logo.svg?v=@BUILD_NONCE@') no-repeat center rgba(40, 40, 40, 0.85);+ display: block;+ width: 286px;+ height: 55px;+ padding: 5px 0;+ position: absolute;+ top: 10px;+ left: 10px;+ border: 1px solid #333;border-bottom: 1px solid transparent;+ border-top-right-radius: 5px;+ border-top-left-radius: 5px;+ z-index: 1;+ -webkit-box-sizing: border-box;+ -o-box-sizing: border-box;+ box-sizing: border-box;}.wv-logo-distraction-free-mode {border-radius: 5px;diff --git a/web/css/tooltip.css b/web/css/tooltip.cssindex a1986bd3f..22d94e3fe 100644--- a/web/css/tooltip.css+++ b/web/css/tooltip.css@@ -1,4 +1,3 @@-/* Bootstrap override */.tooltip {z-index: 1050;diff --git a/web/css/tour.css b/web/css/tour.cssindex 086594ab5..1228739d1 100644--- a/web/css/tour.css+++ b/web/css/tour.css@@ -654,7 +654,6 @@display: block;}- /* .tour-start */.tour-start .modal-dialog {max-width: 624px;}@@ -668,7 +667,6 @@margin: 4px 4px 0 0;}- /* .tour-complete */.tour-complete .modal-dialog {max-width: 572px;}diff --git a/web/css/util.css b/web/css/util.cssindex 9eb01d1c2..504537ffa 100644--- a/web/css/util.css+++ b/web/css/util.css@@ -1,197 +1,3 @@-/*- * Util: Tooltips- * Based on balloon.css by kazzkiq: https://github.com/kazzkiq/balloon.css- */-button[data-tooltip] {- overflow: visible;-}--[data-tooltip] {- position: relative;-}-[data-tooltip]::before,-[data-tooltip]::after {- -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";- filter: alpha(opacity=0);- -khtml-opacity: 0;- -moz-opacity: 0;- opacity: 0;- pointer-events: none;- -webkit-transition: all 0.18s ease-out 0.18s;- transition: all 0.18s ease-out 0.18s;- bottom: 100%;- left: 50%;- position: absolute;- z-index: 10;- -webkit-transform: translate(-50%, 10px);- transform: translate(-50%, 10px);- -webkit-transform-origin: top;- transform-origin: top;-}--[data-tooltip]::after {- background: rgba(17, 17, 17, 0.9);- border-radius: 4px;- color: #fff;- content: attr(data-tooltip);- font-size: 12px;- padding: 8px 16px;- white-space: nowrap;- margin-bottom: 11px;-}--[data-tooltip]::before {- background: url('data:image/svg+xml;charset=utf-8, %3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817, %2017, %2017, %200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658, 0%20C-13.615, 0%2050.938, 0%2034.662, 0%20C28.662, 0%2023.035, 12.002%2018.660, 12.002%20C14.285, 12.002%208.594, 0%202.658, 0%20Z%22/%3E%3C/svg%3E') no-repeat;- background-size: 100% auto;- height: 6px;- width: 18px;- content: "";- margin-bottom: 5px;-}--[data-tooltip]:hover::before,-[data-tooltip][data-tooltip-visible]::before,-[data-tooltip]:hover::after,-[data-tooltip][data-tooltip-visible]::after {- -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";- filter: alpha(opacity=100);- -khtml-opacity: 1;- -moz-opacity: 1;- opacity: 1;- pointer-events: auto;- -webkit-transform: translate(-50%, 0);- transform: translate(-50%, 0);-}--[data-tooltip].font-awesome::after {- font-family: "FontAwesome";-}--[data-tooltip][data-tooltip-break]::after {- white-space: pre;-}--[data-tooltip-pos="down"]::before,-[data-tooltip-pos="down"]::after {- bottom: auto;- left: 50%;- top: 100%;- -webkit-transform: translate(-50%, -10px);- transform: translate(-50%, -10px);-}--[data-tooltip-pos="down"]::after {- margin-top: 11px;-}--[data-tooltip-pos="down"]::before {- background: url('data:image/svg+xml;charset=utf-8, %3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817, %2017, %2017, %200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658, 0%20C-13.615, 0%2050.938, 0%2034.662, 0%20C28.662, 0%2023.035, 12.002%2018.660, 12.002%20C14.285, 12.002%208.594, 0%202.658, 0%20Z%22/%3E%3C/svg%3E') no-repeat;- background-size: 100% auto;- height: 6px;- width: 18px;- margin-top: 5px;- margin-bottom: 0;-}--[data-tooltip-pos="down"]:hover::before,-[data-tooltip-pos="down"][data-tooltip-visible]::before,-[data-tooltip-pos="down"]:hover::after,-[data-tooltip-pos="down"][data-tooltip-visible]::after {- -webkit-transform: translate(-50%, 0);- transform: translate(-50%, 0);-}--[data-tooltip-pos="left"]::before,-[data-tooltip-pos="left"]::after {- bottom: auto;- left: auto;- right: 100%;- top: 50%;- -webkit-transform: translate(10px, -50%);- transform: translate(10px, -50%);-}--[data-tooltip-pos="left"]::after {- margin-right: 11px;-}--[data-tooltip-pos="left"]::before {- background: url('data:image/svg+xml;charset=utf-8, %3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817, %2017, %2017, %200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658, 0%20C-13.615, 0%2050.938, 0%2034.662, 0%20C28.662, 0%2023.035, 12.002%2018.660, 12.002%20C14.285, 12.002%208.594, 0%202.658, 0%20Z%22/%3E%3C/svg%3E') no-repeat;- background-size: 100% auto;- height: 18px;- width: 6px;- margin-right: 5px;- margin-bottom: 0;-}--[data-tooltip-pos="left"]:hover::before,-[data-tooltip-pos="left"][data-tooltip-visible]::before,-[data-tooltip-pos="left"]:hover::after,-[data-tooltip-pos="left"][data-tooltip-visible]::after {- -webkit-transform: translate(0, -50%);- transform: translate(0, -50%);-}--[data-tooltip-pos="right"]::before,-[data-tooltip-pos="right"]::after {- bottom: auto;- left: 100%;- top: 50%;- -webkit-transform: translate(-10px, -50%);- transform: translate(-10px, -50%);-}--[data-tooltip-pos="right"]::after {- margin-left: 11px;-}--[data-tooltip-pos="right"]::before {- background: url('data:image/svg+xml;charset=utf-8, %3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817, %2017, %2017, %200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658, 0%20C-13.615, 0%2050.938, 0%2034.662, 0%20C28.662, 0%2023.035, 12.002%2018.660, 12.002%20C14.285, 12.002%208.594, 0%202.658, 0%20Z%22/%3E%3C/svg%3E') no-repeat;- background-size: 100% auto;- height: 18px;- width: 6px;- margin-bottom: 0;- margin-left: 5px;-}--[data-tooltip-pos="right"]:hover::before,-[data-tooltip-pos="right"][data-tooltip-visible]::before,-[data-tooltip-pos="right"]:hover::after,-[data-tooltip-pos="right"][data-tooltip-visible]::after {- -webkit-transform: translate(0, -50%);- transform: translate(0, -50%);-}--[data-tooltip-length]::after {- white-space: normal;-}--[data-tooltip-length="small"]::after {- width: 80px;-}--[data-tooltip-length="medium"]::after {- width: 150px;-}--[data-tooltip-length="large"]::after {- width: 260px;-}--[data-tooltip-length="xlarge"]::after {- width: 320px;-}--@media screen and (min-width: 768px) {- [data-tooltip-length="xlarge"]::after {- width: 380px;- }-}--[data-tooltip-length="fit"]::after {- width: 100%;-}-/* https://stackoverflow.com/a/4407335 */.noselect {-webkit-touch-callout: none; /* iOS Safari */diff --git a/web/index.html b/web/index.htmlindex baf7729ac..b1dd4391e 100644--- a/web/index.html+++ b/web/index.html@@ -6,9 +6,9 @@ This code was originally developed at NASA/Goddard Space Flight Center for the ECopyright (C) 2013 - 2019 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)+Licensed under the NASA Open Source Agreement, Version 1.3 (https://opensource.gsfc.nasa.gov/nosa.php)-->-<html lang="en">+<html lang="en" prefix="og: https://ogp.me/ns#"><head><title>@OFFICIAL_NAME@</title>@@ -39,8 +39,15 @@ Licensed under the NASA Open Source Agreement, Version 1.3 (http://opensource.gs<!-- open graph for social sharing --><meta property="og:title" content="Worldview: Explore Your Dynamic Planet">- <meta property="og:image" content="images/preview.png" />+ <meta property="og:site_name" content="Worldview">+ <meta property="og:url" content="https://worldview.earthdata.nasa.gov/"><meta property="og:description" content="The NASA Worldview app provides a satellite's perspective of the planet as it looks today and as it has in the past through daily satellite images. Worldview is part of NASA’s Earth Observing System Data and Information System. EOSDIS makes the agency's large repository of data accessible and freely available to the public.">+ <meta property="og:type" content="website">+ <meta property="og:image" content="images/preview.png">++ <!-- twitter card optimization -->+ <meta name="twitter:card" content="summary">+ <meta name="twitter:site" content="@NASAEarth"><link type="text/css" rel="Stylesheet" href="build/wv.css?v=@BUILD_NONCE@"><script type="text/javascript" src="build/wv.js?v=@BUILD_NONCE@"></script>diff --git a/web/js/app.js b/web/js/app.jsindex 9e36c25ae..fa7e7ed3b 100644--- a/web/js/app.js+++ b/web/js/app.js@@ -60,9 +60,7 @@ import '../css/map.css';import '../css/link.css';import '../css/palettes.css';import '../css/image.css';-import '../css/debug.css';import '../css/projection.css';-import '../css/menuPicker.css';import '../css/tour.css';import '../css/products.css';import '../css/indicator.css';diff --git a/web/js/components/about/about-page.js b/web/js/components/about/about-page.jsindex acf4eb867..70fd7cc4e 100644--- a/web/js/components/about/about-page.js+++ b/web/js/components/about/about-page.js@@ -248,7 +248,7 @@ export default function AboutPage() {{' '}and{' '}- <a href="http://www.naturalearthdata.com/" target="_blank" rel="noopener noreferrer">Natural Earth</a>+ <a href="https://www.naturalearthdata.com/" target="_blank" rel="noopener noreferrer">Natural Earth</a>. This data is available under the{' '}<a href="https://www.openstreetmap.org/copyright" target="_blank" rel="noopener noreferrer">diff --git a/web/js/edsc/geoutil.js b/web/js/edsc/geoutil.jsindex b403d8082..f55d14409 100644--- a/web/js/edsc/geoutil.js+++ b/web/js/edsc/geoutil.js@@ -24,11 +24,11 @@ export default function (L, Coordinate, Arc, config) {lat2 = p2.lat * DEG_TO_RAD;lon2 = p2.lng * DEG_TO_RAD;- // http://williams.best.vwh.net/avform.htm#Dist+ // https://williams.best.vwh.net/avform.htm#Distd = 2 * asin(sqrt(pow(sin((lat1 - lat2) / 2), 2) + cos(lat1) * cos(lat2) * pow(sin((lon1 - lon2) / 2), 2)));/**- * http://williams.best.vwh.net/avform.htm#Intermediate+ * https://williams.best.vwh.net/avform.htm#Intermediate* This is a special case where f = 1/2 and therefore A = B, allowing us* to simplify a few expressions*/@@ -55,7 +55,7 @@ export default function (L, Coordinate, Arc, config) {// Determines the initial course direction from latlng1 setting off toward latlng2_course = function (latlng1, latlng2) {var PI, atan2, c1, c2, cos, denom, lat1, lat2, lng1, lng2, numer, result, sin;- // http://williams.best.vwh.net/avform.htm#Crs+ // https://williams.best.vwh.net/avform.htm#Crssin = Math.sin, cos = Math.cos, atan2 = Math.atan2, PI = Math.PI;c1 = Coordinate.fromLatLng(latlng1);c2 = Coordinate.fromLatLng(latlng1);@@ -79,7 +79,7 @@ export default function (L, Coordinate, Arc, config) {};// Determines the difference between the given angles in the interval (-180, 180)- // See: http://www.element84.com/determining-if-a-spherical-polygon-contains-a-pole.html+ // See: https://www.element84.com/determining-if-a-spherical-polygon-contains-a-pole.html_angleDelta = function (a1, a2) {var left_turn_amount;if (a2 < a1) {@@ -134,7 +134,7 @@ export default function (L, Coordinate, Arc, config) {}return results;})();- // http://www.element84.com/determining-if-a-spherical-polygon-contains-a-pole.html+ // https://www.element84.com/determining-if-a-spherical-polygon-contains-a-pole.htmldelta = 0;len = latlngs.length;for (i = j = 0, ref = len; ref >= 0 ? j < ref : j > ref; i = ref >= 0 ? ++j : --j) {@@ -208,9 +208,9 @@ export default function (L, Coordinate, Arc, config) {* more calculations.* If polygons still cause problems, interpolate more :)* Example of a problematic polygon before interpolation:- * http://edsc.dev/search/datasets?polygon=-38.53125%2C37.125%2C-60.75%2C56.109375%2C1.6875%2C0.28125%2C-38.53125%2C37.125&m=15.5390625!10.8984375!2!1!0!+ * https://edsc.dev/search/datasets?polygon=-38.53125%2C37.125%2C-60.75%2C56.109375%2C1.6875%2C0.28125%2C-38.53125%2C37.125&m=15.5390625!10.8984375!2!1!0!* Example of a problematic polygon after interpolation:- * http://edsc.dev/search/datasets?polygon=-38.53125%2C37.125%2C-60.75%2C56.109375%2C-11.390625%2C-4.5%2C-38.53125%2C37.125&m=15.5390625!10.8984375!2!1!0!+ * https://edsc.dev/search/datasets?polygon=-38.53125%2C37.125%2C-60.75%2C56.109375%2C-11.390625%2C-4.5%2C-38.53125%2C37.125&m=15.5390625!10.8984375!2!1!0!*/latlngs = [];len = origLatlngs.length;@@ -222,7 +222,7 @@ export default function (L, Coordinate, Arc, config) {latlngs.push(gcInterpolate(latlngA, latlngB));}}- // http://trs-new.jpl.nasa.gov/dspace/bitstream/2014/40409/3/JPL%20Pub%2007-3%20%20w%20Errata.pdf+ // https://trs-new.jpl.nasa.gov/dspace/bitstream/2014/40409/3/JPL%20Pub%2007-3%20%20w%20Errata.pdf// Page 7PI = Math.PI;crossesMeridian = false;diff --git a/web/js/edsc/spherical-polygon.js b/web/js/edsc/spherical-polygon.jsindex c946995f8..f5ed8b77c 100644--- a/web/js/edsc/spherical-polygon.js+++ b/web/js/edsc/spherical-polygon.js@@ -58,7 +58,7 @@ export default function (L, geoutil, Arc, Coordinate) {};// Prints a string of latLng objects to a format useful in Jason's visualization- // tools: http://testbed.echo.nasa.gov/spatial-viz/interactive_spherical_polygon_coverage+ // tools: https://testbed.echo.nasa.gov/spatial-viz/interactive_spherical_polygon_coveragell2j = function (latlngs) {var ll;return ((function () {diff --git a/web/js/location.js b/web/js/location.jsindex 9bd4da850..7c827618e 100644--- a/web/js/location.js+++ b/web/js/location.js@@ -2,7 +2,6 @@ import { assign as lodashAssign, get } from 'lodash';import update from 'immutability-helper';import { encode } from './modules/link/util';// legacy crutches-// import { getLayersParameterSetup } from './modules/layers/util';import { serializeDate, tryCatchDate, mapLocationToDateState } from './modules/date/util';import {checkTourBuildTimestamp,diff --git a/web/js/map/data/cmr.js b/web/js/map/data/cmr.jsindex dc553b2ed..3187cadf9 100644--- a/web/js/map/data/cmr.js+++ b/web/js/map/data/cmr.js@@ -1,9 +1,9 @@import OlGeomPolygon from 'ol/geom/Polygon';import util from '../../util/util';-export const REL_DATA = 'http://esipfed.org/ns/fedsearch/1.1/data#';-export const REL_METADATA = 'http://esipfed.org/ns/fedsearch/1.1/metadata#';-export const REL_BROWSE = 'http://esipfed.org/ns/fedsearch/1.1/browse#';+export const REL_DATA = 'https://esipfed.org/ns/fedsearch/1.1/data#';+export const REL_METADATA = 'https://esipfed.org/ns/fedsearch/1.1/metadata#';+export const REL_BROWSE = 'https://esipfed.org/ns/fedsearch/1.1/browse#';export const DATA_EXTS = ['hdf', 'he5', 'h5', 'hdf5', 'nc', 'bz2'];export function dataCmrClient(spec, store) {diff --git a/web/js/map/fa-map-icons.js b/web/js/map/fa-map-icons.jsindex 73c738931..a3b34d17d 100644--- a/web/js/map/fa-map-icons.js+++ b/web/js/map/fa-map-icons.js@@ -1,7 +1,7 @@// string DOM element SVGs to bridge the gap for non-React FontAwesome icons in the map part of the app-export const faIconUndoSVGDomEl = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="undo" class="svg-inline--fa fa-undo fa-w-16 " role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"></path></svg>';-export const faIconRedoSVGDomEl = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="redo" class="svg-inline--fa fa-redo fa-w-16 " role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M500.33 0h-47.41a12 12 0 0 0-12 12.57l4 82.76A247.42 247.42 0 0 0 256 8C119.34 8 7.9 119.53 8 256.19 8.1 393.07 119.1 504 256 504a247.1 247.1 0 0 0 166.18-63.91 12 12 0 0 0 .48-17.43l-34-34a12 12 0 0 0-16.38-.55A176 176 0 1 1 402.1 157.8l-101.53-4.87a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12h200.33a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12z"></path></svg>';-export const faIconInfoCircleSVGDomEl = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="info-circle" class="svg-inline--fa fa-info-circle fa-w-16 fa-3x " role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"></path></svg>';-export const faIconPlusSVGDomEl = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="plus" class="svg-inline--fa fa-plus fa-w-14 fa-1x " role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"></path></svg>';-export const faIconMinusSVGDomEl = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="minus" class="svg-inline--fa fa-minus fa-w-14 fa-1x " role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"></path></svg>';-export const faIconArrowsAltHSVGDomEl = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="arrows-alt-h" class="svg-inline--fa fa-arrows-alt-h fa-w-16 " role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M377.941 169.941V216H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.568 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296h243.882v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.568 0-33.941l-86.059-86.059c-15.119-15.12-40.971-4.412-40.971 16.97z"></path></svg>';+export const faIconUndoSVGDomEl = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="undo" class="svg-inline--fa fa-undo fa-w-16 " role="img" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"></path></svg>';+export const faIconRedoSVGDomEl = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="redo" class="svg-inline--fa fa-redo fa-w-16 " role="img" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M500.33 0h-47.41a12 12 0 0 0-12 12.57l4 82.76A247.42 247.42 0 0 0 256 8C119.34 8 7.9 119.53 8 256.19 8.1 393.07 119.1 504 256 504a247.1 247.1 0 0 0 166.18-63.91 12 12 0 0 0 .48-17.43l-34-34a12 12 0 0 0-16.38-.55A176 176 0 1 1 402.1 157.8l-101.53-4.87a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12h200.33a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12z"></path></svg>';+export const faIconInfoCircleSVGDomEl = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="info-circle" class="svg-inline--fa fa-info-circle fa-w-16 fa-3x " role="img" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"></path></svg>';+export const faIconPlusSVGDomEl = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="plus" class="svg-inline--fa fa-plus fa-w-14 fa-1x " role="img" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"></path></svg>';+export const faIconMinusSVGDomEl = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="minus" class="svg-inline--fa fa-minus fa-w-14 fa-1x " role="img" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"></path></svg>';+export const faIconArrowsAltHSVGDomEl = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="arrows-alt-h" class="svg-inline--fa fa-arrows-alt-h fa-w-16 " role="img" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M377.941 169.941V216H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.568 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296h243.882v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.568 0-33.941l-86.059-86.059c-15.119-15.12-40.971-4.412-40.971 16.97z"></path></svg>';diff --git a/web/js/modules/link/constants.js b/web/js/modules/link/constants.jsindex 024700408..dde9f22be 100644--- a/web/js/modules/link/constants.js+++ b/web/js/modules/link/constants.js@@ -8,7 +8,7 @@ export const REQUEST_SHORT_LINK = 'REQUEST_BITLY_SHORTENED_LINK';export const MOCK_SHORT_LINK_RESPONSE_BODY = {data: {- url: 'http://go.nasa.gov/1iKIZ4j',+ url: 'https://go.nasa.gov/1iKIZ4j',},status_code: 200,status_txt: 'OK',diff --git a/web/js/modules/link/util.js b/web/js/modules/link/util.jsindex af2a490cd..340958802 100644--- a/web/js/modules/link/util.js+++ b/web/js/modules/link/util.js@@ -62,7 +62,7 @@ export function getSharelink(type, url) {case 'email':return emailUrlParams(shareMessage, emailBody);default:- // return undefined+ return undefined;}}export function openPromisedSocial(url, win) {diff --git a/web/js/modules/palettes/util.js b/web/js/modules/palettes/util.jsindex c38c5fd99..6dcc112d4 100644--- a/web/js/modules/palettes/util.js+++ b/web/js/modules/palettes/util.js@@ -32,12 +32,10 @@ export function getCheckerboard() {const g = canvas.getContext('2d');- // g.fillStyle = "rgb(102, 102, 102)";g.fillStyle = 'rgb(200, 200, 200)';g.fillRect(0, 0, size, size);g.fillRect(size, size, size, size);- // g.fillStyle = "rgb(153, 153, 153)";g.fillStyle = 'rgb(240, 240, 240)';g.fillRect(0, size, size, size);g.fillRect(size, 0, size, size);diff --git a/web/js/util/util.js b/web/js/util/util.jsindex 2098a8839..7dcc2d4f0 100644--- a/web/js/util/util.js+++ b/web/js/util/util.js@@ -287,7 +287,7 @@ export default (function(self) {* @param {String} text The text to be rendered.* @param {String} font The css font descriptor that text is to be rendered with (e.g. "bold 14px verdana").*- * @see http://stackoverflow.com/questions/118241/calculate-text-width-with-javascript/21015393#21015393+ * @see https://stackoverflow.com/questions/118241/calculate-text-width-with-javascript/21015393#21015393*/self.getTextWidth = function(text, font) {// re-use canvas object for better performance@@ -827,7 +827,7 @@ export default (function(self) {/*** Http request using promises- * http://www.html5rocks.com/en/tutorials/es6/promises/#toc-promisifying-xmlhttprequest+ * https://www.html5rocks.com/en/tutorials/es6/promises/#toc-promisifying-xmlhttprequest** @method get* @param {url} func the function to wrapdiff --git a/web/pages/css/document.css b/web/pages/css/document.cssindex 8a4241f09..a87f2a33b 100644--- a/web/pages/css/document.css+++ b/web/pages/css/document.css@@ -110,6 +110,3 @@.about-page .wv-document {padding: 10px 15px 0 10px;}---diff --git a/web/pages/curl.html b/web/pages/curl.htmlindex 85d8ff824..074a15977 100644--- a/web/pages/curl.html+++ b/web/pages/curl.html@@ -13,7 +13,7 @@<b>Note</b>: some of your download links are password-protected and require a free<a href='https://urs.earthdata.nasa.gov/users/new' target='_blank'>Earthdata Login profile</a>.<br/><br/></div>- <h3>Using <code><a href='http://en.wikipedia.org/wiki/CURL' target='_blank'>cURL</a></code> to Bulk Download Your Data</h3>+ <h3>Using <code><a href='https://en.wikipedia.org/wiki/CURL' target='_blank'>cURL</a></code> to Bulk Download Your Data</h3><div id="netrc-instructions"><p>Since some of your download links are password-protected, you will need to add the netrc entries:diff --git a/web/pages/wget.html b/web/pages/wget.htmlindex d1ed1be0c..c84363408 100644--- a/web/pages/wget.html+++ b/web/pages/wget.html@@ -16,7 +16,7 @@</div><br/>- <h3>Using <code><a href='http://en.wikipedia.org/wiki/Wget' target='_blank'>wget</a></code> to Bulk Download Your Data</h3>+ <h3>Using <code><a href='https://en.wikipedia.org/wiki/Wget' target='_blank'>wget</a></code> to Bulk Download Your Data</h3><div id="netrc-instructions"><p>@@ -54,7 +54,7 @@ wget --input-file=links.txt</pre></p><br/><div id="fdm"></div>- <h3>Using <code><a href='http://en.wikipedia.org/wiki/Free_Download_Manager' target='_blank'>Free Download Manager</a></code> for Windows to Bulk Download Your Data</h3>+ <h3>Using <code><a href='https://en.wikipedia.org/wiki/Free_Download_Manager' target='_blank'>Free Download Manager</a></code> for Windows to Bulk Download Your Data</h3><div id="fdm-password-instructions"><p>