feat(economics): models of production update latex labels

This commit is contained in:
Barrett Ruth 2025-03-24 10:28:03 -04:00
parent 720658bf47
commit 9c2f993d8f

View file

@ -662,3 +662,19 @@ document.addEventListener("DOMContentLoaded", function () {
drawRomerSolowChangeGraph();
window.onresize = drawRomerSolowChangeGraph();
});
document.addEventListener("DOMContentLoaded", function () {
MathJax.typeset()
document.querySelectorAll(".sliders").forEach((slidersDiv) => {
slidersDiv.addEventListener("input", function (event) {
const graphDiv = slidersDiv.previousElementSibling;
if (graphDiv && graphDiv.querySelector("svg")) {
const svg = graphDiv.querySelector("svg");
svg.querySelectorAll("foreignObject body").forEach((body) => {
MathJax.typesetPromise([body]);
});
}
});
});
});