Mercurial > zeropaste
annotate 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 |
rev | line source |
---|---|
59
1833de28583a
Turns out the init file is required.
Edho Arief <edho@myconan.net>
parents:
diff
changeset
|
1 $(document).ready(function() { |
100
90b59418828a
Three times more fun with tabs (added plain and markdown tab).
Edho Arief <edho@myconan.net>
parents:
59
diff
changeset
|
2 raw = $('#plain > pre').text(); |
90b59418828a
Three times more fun with tabs (added plain and markdown tab).
Edho Arief <edho@myconan.net>
parents:
59
diff
changeset
|
3 $('#highlight > pre').text(raw); |
90b59418828a
Three times more fun with tabs (added plain and markdown tab).
Edho Arief <edho@myconan.net>
parents:
59
diff
changeset
|
4 $('#markdown > div').html(marked(raw)); |
59
1833de28583a
Turns out the init file is required.
Edho Arief <edho@myconan.net>
parents:
diff
changeset
|
5 window.prettyPrint && prettyPrint(); |
1833de28583a
Turns out the init file is required.
Edho Arief <edho@myconan.net>
parents:
diff
changeset
|
6 }); |