1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00
This commit is contained in:
Zack Scholl
2016-02-07 13:21:24 -05:00
parent cf70bf9b5c
commit 63982d402d
82 changed files with 22 additions and 2 deletions

View File

@ -7,7 +7,8 @@
{{ template "header" }}
<link rel="stylesheet" type="text/css" href="/static/css/view.css">
<link rel="stylesheet" type="text/css" href="/static/css/katex.min.css">
<script src="/static/js/katex.min.js"></script>
</head>
@ -42,6 +43,17 @@
</div>
<script>
$( document ).ready(function() {
var tex = document.getElementsByClassName("tex");
Array.prototype.forEach.call(tex, function(el) {
katex.render(el.getAttribute("data-expr"), el);
});
});
</script>
</body>
</html>