diff --git a/web/gplv3-127x51.png b/web/gplv3-127x51.png index fe375326d2..139e8e4cf9 100644 Binary files a/web/gplv3-127x51.png and b/web/gplv3-127x51.png differ diff --git a/web/index.html b/web/index.html index b2e9be39be..3d96874217 100644 --- a/web/index.html +++ b/web/index.html @@ -15,13 +15,36 @@ $(function() { $("#screenshots").cycle(); - $("#trademarktoggle").toggle(function() { - $("#trademarks").show(); - $("#footer").height(145); - }, - function() { - $("#trademarks").hide(); - $("#footer").height(25); + //Work out what to show for downloads + var useragent = navigator.userAgent.toLowerCase(); + if (useragent.indexOf("x11") != -1 || useragent.indexOf("linux") != -1) { + $("#down_btn_linux").show(); + $("#down_link_win").show(); + $("#down_link_mac").show(); + } + else if (useragent.indexOf("mac") != -1) { + $("#down_btn_mac").show(); + $("#down_link_win").show(); + $("#down_link_linux").show(); + } + else { + $("#down_btn_win").show(); + $("#down_link_mac").show(); + $("#down_link_linux").show(); + } + + $.get("downloads.txt", function(data) { + $("#stats_down").html(data); + }); + + $.get("/master/list.php", function(data) { + if (data.length <= 3) return; + var m, sum = 0; + var p = /^\s*Players: (\d+)/g; + while ((m = p.exec(data)) != null) { + sum += (Number)(m[1]); + } + $("#stats_players").html(sum); }); }); @@ -45,22 +68,42 @@ diff --git a/web/openra.css b/web/openra.css index 2c0471fcba..9558e5096f 100644 --- a/web/openra.css +++ b/web/openra.css @@ -89,20 +89,28 @@ div#sidebar a.desc div.download { - border: solid 3px #650b03; + border: solid 3px #bd0000; background-color: #272d2c; margin: 20px auto; width: 280px; height: 40px; - padding: 10px 10px + padding: 12px 10px 10px 10px; + display: none; } div.download:hover { - border-color: gray; + border-color: white; + background-color: #3f4544; cursor: pointer } +p.download +{ + display: none; + font-size: 0.8em; +} + div#screenshots { width: 506px; @@ -115,26 +123,23 @@ div#footer { font-size: 0.7em; margin-bottom: 10px; - padding-top:9px; - padding-right:10px; text-align: center; - height: 25px; } p#trademarks { - padding-right: 10px; + margin-top: 10px; margin-bottom: 10px } span.links { - border-bottom: solid 3px #650b03; + border: none; margin: 0px 10px; font-size: 1.2em; } span.links:hover { - border-bottom-color: gray; + border-bottom: solid 3px #bd0000; } div.rounded diff --git a/web/releases/windows/latest.php b/web/releases/windows/latest.php index 64260617e4..b236ed43f4 100644 --- a/web/releases/windows/latest.php +++ b/web/releases/windows/latest.php @@ -1,4 +1,7 @@ - \ No newline at end of file +