diff --git a/website/index.css b/website/index.css index c3a7697b..ffe1c9a3 100644 --- a/website/index.css +++ b/website/index.css @@ -94,16 +94,11 @@ code { } #downloadInfo { - display: block; - position: absolute; - left: 50%; - top: 35px; font-size: 16px; - margin-left: -400px; } #downloadInfo p { - margin: 12px; + padding: 12px; } .downloadActions { diff --git a/website/index.html b/website/index.html index c4f85a39..ef6299b4 100644 --- a/website/index.html +++ b/website/index.html @@ -11,15 +11,15 @@ Fork me on GitHub -

Project Lombok

+
diff --git a/website/index.js b/website/index.js index ee36dd3c..8bff4155 100644 --- a/website/index.js +++ b/website/index.js @@ -11,7 +11,7 @@ function fixDownloadLink() { }); $(".backToBar").click(function(event) { - $("#downloadInfo").hide(); + toggleButtonBar(true); }); } @@ -31,11 +31,21 @@ function showDownloadInfo() { html = html.substring(0, pos); var p = $("

").html(html).append($("#downloadInfo .downloadActions")); $("#downloadInfo span:first-child").replaceWith(p); - $("#downloadInfo").show(); + toggleButtonBar(false); } }); + } else { + toggleButtonBar(false); + } +} + +function toggleButtonBar(showOriginal) { + if ( showOriginal ) { + $("#downloadInfo").hide(); + $("#buttonBar").show(); } else { $("#downloadInfo").show(); + $("#buttonBar").hide(); } }