Skip to content

Instantly share code, notes, and snippets.

@natejenkins
Created March 17, 2015 10:36
Show Gist options
  • Save natejenkins/b1176b89ac19eb38ad14 to your computer and use it in GitHub Desktop.
Save natejenkins/b1176b89ac19eb38ad14 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js" type="text/javascript"></script>
<script type="text/javascript"
src="https://cdn.mathjax.org/mathjax/2.5-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
</head>
<body>
<div id="test">
\(x=5\)
</div>
</body>
</html>
<script>
function test(){
var html = $("#test").html();
$("#test").html(html);
MathJax.Hub.Queue(["PreProcess",MathJax.Hub],["Reprocess",MathJax.Hub]);
}
$(document).ready(function() {
setInterval(test, 2000);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment