Initial commit
This commit is contained in:
commit
6072b2ba29
844 changed files with 220532 additions and 0 deletions
35
app/src/main/assets/MathML-template.html
Normal file
35
app/src/main/assets/MathML-template.html
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<!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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue