Mercurial > about-mozilla-redesign
changeset 2:2be94bbd7f04
Now processing the original issue in a hidden div.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sat, 28 Feb 2009 13:08:03 -0800 |
parents | 4dd50afc32c8 |
children | b7aa5afa19de |
files | about-mozilla.css about-mozilla.html about-mozilla.js |
diffstat | 3 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/about-mozilla.css Sat Feb 28 13:02:50 2009 -0800 +++ b/about-mozilla.css Sat Feb 28 13:08:03 2009 -0800 @@ -1,3 +1,7 @@ body { font-family: Helvetica; } + +#raw-entry { + display: none; +}
--- a/about-mozilla.html Sat Feb 28 13:02:50 2009 -0800 +++ b/about-mozilla.html Sat Feb 28 13:08:03 2009 -0800 @@ -8,6 +8,8 @@ <title></title> </head> <body> +<div id="raw-entry"> +</div> </body> <script src="jquery.js"></script> <script src="about-mozilla.js"></script>
--- a/about-mozilla.js Sat Feb 28 13:02:50 2009 -0800 +++ b/about-mozilla.js Sat Feb 28 13:08:03 2009 -0800 @@ -1,5 +1,5 @@ function onIssueLoaded() { - $("a[name]").each( + $("#raw-entry a[name]").each( function(i) { var headline = $(this).next().text(); var body = $("<div></div>"); @@ -13,7 +13,7 @@ $(window).ready( function() { - $(document.body).load("issue-2009-02-24.html .entry", - null, - onIssueLoaded); + $("#raw-entry").load("issue-2009-02-24.html .entry", + null, + onIssueLoaded); });