comparison app/assets/javascripts/init.tabs.js @ 100:90b59418828a

Three times more fun with tabs (added plain and markdown tab).
author Edho Arief <edho@myconan.net>
date Mon, 12 Nov 2012 10:42:00 +0700
parents app/assets/javascripts/init.prettify.js@1833de28583a
children a8768ad51926
comparison
equal deleted inserted replaced
99:e0e99705e79d 100:90b59418828a
1 $(document).ready(function() {
2 raw = $('#plain > pre').text();
3 $('#highlight > pre').text(raw);
4 $('#markdown > div').html(marked(raw));
5 window.prettyPrint && prettyPrint();
6 });