feature: initial simulator

This commit is contained in:
Matthias Jung
2026-08-04 21:21:15 +02:00
parent 500b99079d
commit 2b7d2bab21
8 changed files with 1227 additions and 11 deletions
+14 -10
View File
@@ -150,15 +150,19 @@ document.addEventListener("DOMContentLoaded", function() {
"\\sps": "\\text{sps}",
};
renderMathInElement(document.body, {
delimiters: [
{ left: '$$', right: '$$', display: true }, // Note: $$ has to come before $
{ left: '$', right: '$', display: false },
{ left: '\\[', right: '\\]', display: true },
{ left: "\\(", right: "\\)", display: false },
],
throwOnError: false,
macros: macros
});
window.renderFiftyOhmMath = function(root) {
renderMathInElement(root || document.body, {
delimiters: [
{ left: '$$', right: '$$', display: true }, // Note: $$ has to come before $
{ left: '$', right: '$', display: false },
{ left: '\\[', right: '\\]', display: true },
{ left: "\\(", right: "\\)", display: false },
],
throwOnError: false,
macros: macros
});
};
window.renderFiftyOhmMath(document.body);
});