Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Bulk downloads now in footer

Mike McGann0056a500d146
diff --git a/src/css/dataDownload.css b/src/css/dataDownload.css
index 104ef7ab1..e24ab2625 100644
--- a/src/css/dataDownload.css
+++ b/src/css/dataDownload.css
@@ -152,3 +152,7 @@
color:#000;
background-color:#ccc;
}
+
+#DataDownload_DownloadListPanel .ft {
+ padding: 10px;
+}
diff --git a/src/js/Worldview/DataDownload/DownloadListPanel.js b/src/js/Worldview/DataDownload/DownloadListPanel.js
index 29078f877..689033e8c 100644
--- a/src/js/Worldview/DataDownload/DownloadListPanel.js
+++ b/src/js/Worldview/DataDownload/DownloadListPanel.js
@@ -43,7 +43,7 @@ Worldview.DataDownload.DownloadListPanel = function(config, model) {
newPanel = true;
panel = new YAHOO.widget.Panel("DataDownload_DownloadListPanel", {
width: "600px",
- height: "400px",
+ height: "500px",
zIndex: 1020,
visible: false,
constraintoviewport: true
@@ -51,6 +51,9 @@ Worldview.DataDownload.DownloadListPanel = function(config, model) {
panel.setHeader("Download Links");
}
panel.setBody(bodyText(selection));
+ if ( isBulkDownloadable() ) {
+ panel.setFooter(bulkDownloadText());
+ }
if ( newPanel ) {
panel.render(document.body);
panel.show();
@@ -250,23 +253,24 @@ Worldview.DataDownload.DownloadListPanel = function(config, model) {
elements.push("\n<br/>\n" + productText(product));
});
- if ( isBulkDownloadable() ) {
- var bulk =
- "<h4>Bulk Download</h4>" +
- "<ul class='BulkDownload'>" +
- "<li><a class='wget' href='#'>Link List:</a> " +
- "For wget or download managers that accept a list of " +
- "URLs</li>" +
- "<li><a class='curl' href='#'>cURL Commands:</a> " +
- "List of commands that can be copied and pasted to " +
- "a terminal window to download using cURL.</li>" +
- "</ul>";
- elements.push(bulk);
- }
var text = elements.join("\n<br/>\n") + "<br/>";
return text;
};
+ var bulkDownloadText = function() {
+ var bulk =
+ "<h4>Bulk Download</h4>" +
+ "<ul class='BulkDownload'>" +
+ "<li><a class='wget' href='#'>Link List:</a> " +
+ "For wget or download managers that accept a list of " +
+ "URLs</li>" +
+ "<li><a class='curl' href='#'>cURL Commands:</a> " +
+ "List of commands that can be copied and pasted to " +
+ "a terminal window to download using cURL.</li>" +
+ "</ul>";
+ return bulk;
+ };
+
var showWgetPage = function() {
Worldview.DataDownload.BulkDownloadPage.show(selection, "wget");
};