Mercurial > zeropaste
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/assets/javascripts/init.tabs.js Mon Nov 12 10:42:00 2012 +0700 @@ -0,0 +1,6 @@ +$(document).ready(function() { + raw = $('#plain > pre').text(); + $('#highlight > pre').text(raw); + $('#markdown > div').html(marked(raw)); + window.prettyPrint && prettyPrint(); +});