diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-03-11 16:57:22 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-03-11 16:57:22 +0100 |
commit | 2f1a26b6069d6d75729a971be20d45f0fc5fefcc (patch) | |
tree | 54d04577522105782dbd63560403f5d27c0af2fc /website/resources/js/supporters.js | |
parent | cc55391a7544b0ce0cc37b8aa628dc8f9a46db49 (diff) | |
download | lombok-2f1a26b6069d6d75729a971be20d45f0fc5fefcc.tar.gz lombok-2f1a26b6069d6d75729a971be20d45f0fc5fefcc.tar.bz2 lombok-2f1a26b6069d6d75729a971be20d45f0fc5fefcc.zip |
[website] added supporters infrastructure.
Diffstat (limited to 'website/resources/js/supporters.js')
-rw-r--r-- | website/resources/js/supporters.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/website/resources/js/supporters.js b/website/resources/js/supporters.js index 5ec1b057..5f21c79c 100644 --- a/website/resources/js/supporters.js +++ b/website/resources/js/supporters.js @@ -3,7 +3,7 @@ (function($) { var supporters = {}; var weights = {}; - var types = ["patron", "professional", "enterprise"]; + var types = ["enterprise", "professional", "patron"]; function shuffle(array) { var i = 0, j = 0, temp = null; @@ -49,7 +49,7 @@ var d = $("<div />").addClass("supportItem").addClass(this.type); var a = d; if (this.url) { - a = $("<a />").attr("href", this.url).attr("rel", "noopener"); + a = $("<a />").attr("href", this.url).attr("rel", "noopener").attr("target", "_blank"); d.append(a); } var n = $("<span />").text(this.name); @@ -69,8 +69,13 @@ var ht = Math.round(h / f); i.width = wt; i.height = ht; + var ji = $(i); if (!showName) a.empty(); - a.prepend(i); + ji.css("width", wt + "px"); + ji.css("height", ht + "px"); + ji.attr("alt", n); + ji.attr("title", n); + a.prepend(ji); }; i.src = 'files/' + this.logo; } @@ -129,6 +134,8 @@ var s = $(".supporterBar"); s.find(".introText").show(); s.append($("<div />").addClass("sbCnt")); + var sf = s.find(".supporterFooter").show(); + s.append(sf); s = s.find(".sbCnt"); var now = new Date(); var list = []; |