Mercurial > zeropaste
view 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 |
line wrap: on
line source
$(document).ready(function() { raw = $('#plain > pre').text(); $('#highlight > pre').text(raw); $('#markdown > div').html(marked(raw)); window.prettyPrint && prettyPrint(); });
