diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-05-16 21:16:23 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-05-30 11:09:24 +0200 |
commit | 1e7c6b98caec18a1f3747a7e0303df88b42ffac2 (patch) | |
tree | 2ec42bcb2378e776dd674fbb4b8af66647f53557 /website/index.js | |
parent | 2d9195a2296e36ce904719b63ff0e5c0321b2a74 (diff) | |
download | lombok-1e7c6b98caec18a1f3747a7e0303df88b42ffac2.tar.gz lombok-1e7c6b98caec18a1f3747a7e0303df88b42ffac2.tar.bz2 lombok-1e7c6b98caec18a1f3747a7e0303df88b42ffac2.zip |
Updating website with a shiny new download page listing all the various frameworks and tools lombok now works under.
Diffstat (limited to 'website/index.js')
-rw-r--r-- | website/index.js | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/website/index.js b/website/index.js deleted file mode 100644 index d67ca409..00000000 --- a/website/index.js +++ /dev/null @@ -1,49 +0,0 @@ -$(function() { - fixDownloadLink(); -}); - -function fixDownloadLink() { - $("#downloadLink").attr("href", "http://projectlombok.googlecode.com/files/lombok.jar") - .click(function(event) { - showDownloadInfo(); - event.preventDefault(); - }); - - $(".backToBar").click(function(event) { - toggleButtonBar(true); - }); -} - -function showDownloadInfo() { - if ( !$("#downloadInfo").data("filled") ) { - $("#downloadInfo").data("filled", true); - $.ajax({ - type: "GET", - url: "download.html", - success: function(html) { - var pos = html.search(/<p\s+id\s*=\s*"downloadHelp"[^>]*>/i); - if ( pos == -1 ) return; - html = html.substring(pos); - pos = html.search(">"); - html = html.substring(pos + 1); - pos = html.search(/<\s*\/\s*p\s*>/); - html = html.substring(0, pos); - var p = $("<p>").html(html).append($("#downloadInfo .downloadActions")); - $("#downloadInfo span:first-child").replaceWith(p); - toggleButtonBar(false); - } - }); - } else { - toggleButtonBar(false); - } -} - -function toggleButtonBar(showOriginal) { - if ( showOriginal ) { - $("#downloadInfo").hide(); - $("#buttonBar").show(); - } else { - $("#downloadInfo").show(); - $("#buttonBar").hide(); - } -} |