Skip to content

Commit

Permalink
backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfarmer committed Dec 21, 2022
1 parent 4fde731 commit 9ddfd5a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions jquery.espy.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,3 +192,4 @@
}
})(jQuery, window);


11 changes: 8 additions & 3 deletions knowl.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ var mjvers = 0;
if (window.MathJax !== undefined) {
mjvers = MathJax.version;
console.log("mjvers", mjvers);
if (typeof mjvers == 'undefined') {
mjvers = "2.14159";
}
mjvers = parseFloat(mjvers.substring(0,3));
}
console.log(" mjvers", mjvers);
Expand Down Expand Up @@ -287,7 +290,8 @@ $(function() {
}
var knowlc = knowl_click_handler($knowl, evt);
console.log("after click handler", knowlc);
setTimeout(function () {
if (typeof knowlc !== "undefined") {
setTimeout(function () {
if (knowlc[0]["innerHTML"].includes("knowl-output error")) {
console.log("seem to have a bad knowl")
var missing_knowl_message = "<div style='padding: 0.5rem 1rem'>";
Expand All @@ -302,8 +306,9 @@ $(function() {
missing_knowl_message += "</div>";
knowlc[0]["innerHTML"] = missing_knowl_message
}
}, 1000
)
}, 1000
)
}
});
});

Expand Down

0 comments on commit 9ddfd5a

Please sign in to comment.