From: Michael Stapelberg Date: Tue, 27 Dec 2011 16:56:07 +0000 (+0100) Subject: Hide old versions by default X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3d4641181f0e7e1972301fd9b585f20738bce23b;p=i3%2Fi3.github.io Hide old versions by default --- diff --git a/css/style.css b/css/style.css index 95ff56a..01f46dc 100644 --- a/css/style.css +++ b/css/style.css @@ -364,6 +364,18 @@ img { text-decoration: none; } +table#downloads tr { + opacity: 0.7; +} + +table#downloads thead tr { + opacity: 1.0; +} + +table#downloads tbody tr:first-child { + opacity: 1.0; +} + /* clearfix */ .clearfix:after { content: "."; diff --git a/downloads/index.html.mako b/downloads/index.html.mako index 4bf7e33..4548b66 100644 --- a/downloads/index.html.mako +++ b/downloads/index.html.mako @@ -1,5 +1,8 @@ <%! section = "downloads" + javascript = 'downloads.min.js' + require_jquery = True + js_callback = 'initDownloads();' %> <%inherit file="_templates/i3.mako" />
@@ -86,7 +89,8 @@ We also provide Debian and Ubuntu repositories to enable the work-around!

- +
+ @@ -95,6 +99,9 @@ We also provide Debian and Ubuntu repositories + + + @@ -103,6 +110,7 @@ We also provide Debian and Ubuntu repositories + @@ -111,6 +119,7 @@ We also provide Debian and Ubuntu repositories + @@ -119,6 +128,7 @@ We also provide Debian and Ubuntu repositories + @@ -127,6 +137,7 @@ We also provide Debian and Ubuntu repositories + @@ -135,7 +146,8 @@ We also provide Debian and Ubuntu repositories - + + @@ -143,7 +155,8 @@ We also provide Debian and Ubuntu repositories - + + @@ -151,7 +164,8 @@ We also provide Debian and Ubuntu repositories - + + @@ -159,7 +173,8 @@ We also provide Debian and Ubuntu repositories - + + @@ -167,7 +182,8 @@ We also provide Debian and Ubuntu repositories - + + @@ -176,7 +192,7 @@ We also provide Debian and Ubuntu repositories - + @@ -185,7 +201,7 @@ We also provide Debian and Ubuntu repositories - + @@ -194,7 +210,7 @@ We also provide Debian and Ubuntu repositories - + @@ -203,7 +219,7 @@ We also provide Debian and Ubuntu repositories - + @@ -212,7 +228,7 @@ We also provide Debian and Ubuntu repositories - + @@ -221,7 +237,7 @@ We also provide Debian and Ubuntu repositories - + @@ -229,6 +245,7 @@ We also provide Debian and Ubuntu repositories +
Version DownloadRelease date Release notes
4.1.1 i3-4.1.1.tar.bz22011-12-24 release notes
4.1 i3-4.1.tar.bz22011-11-11 release notes
4.0.2 i3-4.0.2.tar.bz22011-08-28 release notes
4.0.1 i3-4.0.1.tar.bz22011-08-01 release notes
4.0 i3-4.0.tar.bz22011-07-31 release notes
3.ε-bf3 i3-3.e-bf3.tar.bz2 353 KiB2011-05-08 release notes
3.ε-bf2 i3-3.e-bf2.tar.bz2 285 KiB2011-01-19 release notes
3.ε-bf1 i3-3.e-bf1.tar.bz2 285 KiB2010-06-09 release notes
3.ε i3-3.e.tar.bz2 271 KiB2010-03-30 release notes
3.δ-bf1 i3-3.d-bf1.tar.bz2 153 KiBrelease notes
3.δ i3-3.d.tar.bz2 153 KiBrelease notes
3.γ i3-3.c.tar.bz2 107 KiBrelease notes
3.β i3-3.b.tar.bz2 96 KiBrelease notes
3.α-bf2 i3-3.a-bf2.tar.bz2 65 KiBrelease notes
3.α-bf1 i3-3.a-bf1.tar.bz2 65 KiBrelease notes
3.α i3-3.a.tar.bz2 50 KiB2009-03-15 release notes
diff --git a/js/downloads.js b/js/downloads.js new file mode 100644 index 0000000..f0dca41 --- /dev/null +++ b/js/downloads.js @@ -0,0 +1,14 @@ +// vim:ts=4:sw=4:expandtab +// © 2011 Michael Stapelberg + +function initDownloads() { + var old = $('.oldversion'); + old.hide(); + $('table#downloads').after('display ' + + old.length + ' old versions…'); + $('#showOldDownloads').click(function() { + $('.oldversion').show('fast'); + $(this).hide(); + return false; + }); +} diff --git a/js/downloads.min.js b/js/downloads.min.js new file mode 100644 index 0000000..1ef1089 --- /dev/null +++ b/js/downloads.min.js @@ -0,0 +1 @@ +function initDownloads(){var a=$(".oldversion");a.hide();$("table#downloads").after('display '+a.length+" old versions…");$("#showOldDownloads").click(function(){$(".oldversion").show("fast");$(this).hide();return false})}; \ No newline at end of file