Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Unified Diff: src/site/js/download-info.js

Issue 701913002: Editing Sam's downloads page (Closed) Base URL: https://github.com/dart-lang/www.dartlang.org.git@master
Patch Set: Add back original download page for A-B testing Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/site/js/download-info.js
diff --git a/src/site/js/download-info.js b/src/site/js/download-info.js
index 2b0b3afaa27e0f640949c289bfc6ac10a0684362..0a2046fcc2483bce213367e82c26a0aec29cbdd2 100644
--- a/src/site/js/download-info.js
+++ b/src/site/js/download-info.js
@@ -8,24 +8,4 @@ $(document).ready(function() {
.append($("<span></span>").text(", built on " + revDate))
.append($("<span></span>").text(", at revision " + data.revision));
});
-
- $(".has-sha").each(getSha);
});
-
-function getSha(el) {
- var button = $(el);
- var shaUrl = button.attr("href") + ".sha256sum";
- $.get(
- shaUrl,
- function( data ) {
- var space = data.indexOf(" ");
- if (space == -1) { return; }
-
- var sha = data.substring(0, space);
- var a = $("<a></a>")
- .attr("href", shaUrl)
- .addClass("sha")
- .text("SHA-256: " + sha);
- button.after(' ').after(a).after(' ');
- }).fail(function () {});
-}

Powered by Google App Engine
This is Rietveld 408576698