view about-mozilla.js @ 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
line wrap: on
line source

function onIssueLoaded() {
  $("#raw-entry a[name]").each(
    function(i) {
      var headline = $(this).next().text();
      var body = $("<div></div>");
      for (var node = $(this).parent().next();
           node.length && !node.find("a[name]").length;
           node = node.next(":not(.postmetadata)"))
        body.append(node.clone());
    }
  );
}

$(window).ready(
  function() {
    $("#raw-entry").load("issue-2009-02-24.html .entry",
                         null,
                         onIssueLoaded);
  });