`(EE x in N)[x^3 = 27] `
Last active
August 29, 2015 13:56
-
-
Save ento/9132805 to your computer and use it in GitHub Desktop.
mathjax on bl.ocks experiment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/marked/0.3.1/marked.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.3/MathJax.js?config=AM_HTMLorMML-full"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> | |
<script src="./index.js"></script> | |
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/foundation/5.1.1/css/normalize.min.css"> | |
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/foundation/5.1.1/css/foundation.min.css"> | |
<link rel="stylesheet" href="./style.css"> | |
<body> | |
<div id="message">loading</div> | |
<div class="row"> | |
<div id="content" class="small-12 columns"></div> | |
</div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
$.get('./content.md') | |
.done(function(data) { | |
$('#content').html(marked(data)); | |
MathJax.Hub.Register.MessageHook("End Process", function (message) { | |
$('#message').hide(); | |
$('#content').show(); | |
}); | |
MathJax.Hub.Queue(["Typeset", MathJax.Hub, "content"]); | |
}); | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#content { | |
display: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment