35 lines
No EOL
1.2 KiB
HTML
35 lines
No EOL
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<script>
|
|
console.log("MATH_DIAGNOSTIC: MathML-template.html script block started.");
|
|
window.MathJax = {
|
|
svg: {
|
|
fontCache: 'none', // Disable font cache for better performance in this context
|
|
displayAlign: 'left',
|
|
displayIndent: '0',
|
|
scale: 1.0,
|
|
},
|
|
startup: {
|
|
ready: () => {
|
|
console.log("MATH_DIAGNOSTIC: MathJax startup.ready callback fired.");
|
|
MathJax.startup.defaultReady();
|
|
if (window.AndroidBridge) {
|
|
console.log("MATH_DIAGNOSTIC: Calling AndroidBridge.onMathJaxReady()");
|
|
window.AndroidBridge.onMathJaxReady();
|
|
} else {
|
|
console.error("MATH_DIAGNOSTIC: AndroidBridge not found!");
|
|
}
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
<script type="text/javascript" id="MathJax-script" async
|
|
src="file:///android_asset/mathjax/tex-mml-svg.js">
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="math-container"></div>
|
|
</body>
|
|
</html> |