# HG changeset patch # User Atul Varma # Date 1235929163 28800 # Node ID d0f57c5ef95c78d8c879f5df5399fdc07606cf42 # Parent 63fc59f4bd3376657ff196cc30e23f09a8c278c2 the 'issue' GET parameter can now be used to specify an issue number, with 0 being the most recent issue. diff -r 63fc59f4bd33 -r d0f57c5ef95c about-mozilla.html --- a/about-mozilla.html Sun Mar 01 09:30:16 2009 -0800 +++ b/about-mozilla.html Sun Mar 01 09:39:23 2009 -0800 @@ -18,6 +18,7 @@ + diff -r 63fc59f4bd33 -r d0f57c5ef95c about-mozilla.js --- a/about-mozilla.js Sun Mar 01 09:30:16 2009 -0800 +++ b/about-mozilla.js Sun Mar 01 09:39:23 2009 -0800 @@ -51,7 +51,9 @@ var feed = new google.feeds.Feed(ATOM_URL); feed.load( function(result) { - var entry = result.feed.entries[0]; + var qs = new Querystring(); + var issue = qs.get("issue", "0"); + var entry = result.feed.entries[issue]; $("#raw-issue").html(entry.content); var pubDate = new Date(entry.publishedDate); var dateStr = (MONTHS[pubDate.getMonth()] + " " + diff -r 63fc59f4bd33 -r d0f57c5ef95c querystring.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/querystring.js Sun Mar 01 09:39:23 2009 -0800 @@ -0,0 +1,37 @@ +/* Client-side access to querystring name=value pairs + Version 1.2.4 + 30 March 2008 + Adam Vandenberg +*/ +function Querystring(qs) { // optionally pass a querystring to parse + this.params = {}; + this.get=Querystring_get; + + if (qs == null); + qs=location.search.substring(1,location.search.length); + + if (qs.length == 0) + return; + +// Turn back to +// See: http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4.1 + qs = qs.replace(/\+/g, ' '); + var args = qs.split('&'); // parse out name/value pairs separated via & + +// split out each name=value pair + for (var i=0;i