Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

#2047, remove any href attrs from anchor elements where the value included 'javascript:'

Jason Kent42591e984b47
diff --git a/web/css/dataDownload.css b/web/css/dataDownload.css
index c18daa712..e5f26b08c 100644
--- a/web/css/dataDownload.css
+++ b/web/css/dataDownload.css
@@ -29,6 +29,10 @@
margin-left: 10px;
}
+ul.BulkDownload li a.link {
+ color: #7bf;
+}
+
#wv-data-selection h3 {
font-size: 16px;
line-height: 16px;
diff --git a/web/js/components/animation-widget/loop-button.js b/web/js/components/animation-widget/loop-button.js
index 9beb6afca..d3df312eb 100644
--- a/web/js/components/animation-widget/loop-button.js
+++ b/web/js/components/animation-widget/loop-button.js
@@ -9,7 +9,6 @@ class LoopButton extends React.Component {
render() {
return (
<a
- href="javascript:void(null)"
title={this.props.looping ? 'Stop Loop' : 'Loop video'}
className={
this.props.looping
diff --git a/web/js/components/animation-widget/play-button.js b/web/js/components/animation-widget/play-button.js
index 3d37a4936..04f0cc07c 100644
--- a/web/js/components/animation-widget/play-button.js
+++ b/web/js/components/animation-widget/play-button.js
@@ -9,7 +9,6 @@ class PlayButton extends React.Component {
render() {
return (
<a
- href="javascript:void(null)"
title={this.props.playing ? 'Pause video' : 'Play video'}
className="wv-anim-play-case wv-icon-case"
onClick={this.props.playing ? this.props.pause : this.props.play}
diff --git a/web/js/components/tour/widget-steps.js b/web/js/components/tour/widget-steps.js
index 3284c6728..9a0abad98 100644
--- a/web/js/components/tour/widget-steps.js
+++ b/web/js/components/tour/widget-steps.js
@@ -6,7 +6,6 @@ class Steps extends React.Component {
return (
<div className="step-container">
<a
- href="javascript:void(0);"
className={'step-previous'}
aria-label="Previous"
onClick={this.props.decreaseStep}
@@ -20,7 +19,6 @@ class Steps extends React.Component {
</p>
</div>
<a
- href="javascript:void(0);"
className="step-next"
aria-label="Next"
onClick={this.props.incrementStep}
diff --git a/web/js/containers/animation-widget.js b/web/js/containers/animation-widget.js
index 01e1bb2e3..3e6e29ca7 100644
--- a/web/js/containers/animation-widget.js
+++ b/web/js/containers/animation-widget.js
@@ -389,7 +389,6 @@ class AnimationWidget extends React.Component {
<span className="wv-slider-label">{sliderLabel}</span>
</div>
<a
- href="javascript:void(null)"
title={
!isCompareActive
? 'Create Animated GIF'
diff --git a/web/js/map/data/ui.js b/web/js/map/data/ui.js
index a4f11b863..889a4a46f 100644
--- a/web/js/map/data/ui.js
+++ b/web/js/map/data/ui.js
@@ -740,10 +740,10 @@ var dataUiDownloadListPanel = function(config, store) {
"<div class='bulk dd-collapse'>" +
'<h5>Bulk Download</h5>' +
"<ul class='BulkDownload'>" +
- "<li><a class='wget' href='javascript:void(null)'>List of Links</a>: " +
+ "<li><a class='link wget'>List of Links</a>: " +
'for wget or download managers that accept a list of ' +
'URLs</li>' +
- "<li><a class='curl' href='javascript:void(null)'>List of cURL Commands</a>: " +
+ "<li><a class='link curl''>List of cURL Commands</a>: " +
'can be copied and pasted to ' +
'a terminal window to download using cURL.</li>' +
'</ul>' +