/*jslint undef: true, nomen: true, eqeqeq: true, plusplus: true, newcap: true, immed: true, browser: true, devel: true, passfail: false */
/*global window: false, readConvertLinksToFootnotes: false, readStyle: false, readSize: false, readMargin: false, Typekit: false, ActiveXObject: false */
-var dbg = (typeof console !== 'undefined') ? function(s) {
- console.log("Readability: " + s);
-} : function() {};
+var dbg = function(s) {
+ window.console.log("Readability: " + s);
+};
/*
* Readability. An Arc90 Lab Experiment.
/* Pull out any possible next page link first */
var nextPageLink = readability.findNextPageLink(document.body);
-
+
readability.prepDocument();
/* Build readability's DOM tree */
articlePage.innerHTML = articlePage.innerHTML + nextPageMarkup;
return;
}
-
+
/**
* Now that we've built the article page DOM element, get the page content
* asynchronously and load the cleaned content into the div we created for it.
**/
- (function(pageUrl, thisPage) {
+ var replaceContent = function(pageUrl, thisPage) {
readability.ajax(pageUrl, {
success: function(r) {
}
}
});
- }(nextPageLink, articlePage));
+ }(nextPageLink, articlePage);
},
/**