Skip to content

Commit

Permalink
reload mathjax
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoGeNintendo committed Feb 4, 2020
1 parent 85eea4e commit 4d1097e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions WebContent/pview.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<h5>Memory Limit Per Test:<%=p.ml %> KB</h5>
<h5>Problem Difficulty:<%=p.diff %>x</h5>
<h5>Problem Version:v<%=p.ver %></h5>
<button onclick="reloadMathjax()">Render Mathjax Manually</button>
<hr/>
<div id="txt">Loading Statement...</div>
<hr/>
Expand All @@ -52,8 +53,13 @@
var text=data;
html=converter.makeHtml(text);
document.getElementById("txt").innerHTML=html;
reloadMathjax();
})
function reloadMathjax(){
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
}
</script>
</body>
</html>

0 comments on commit 4d1097e

Please sign in to comment.