comparison app/assets/javascripts/init.tabs.js @ 109:90eee69e4ee9

Shorter selector.
author Edho Arief <edho@myconan.net>
date Mon, 12 Nov 2012 12:28:51 +0700
parents a949b71c9afb
children e8c632b0eb80
comparison
equal deleted inserted replaced
108:a949b71c9afb 109:90eee69e4ee9
1 $(document).ready(function() { 1 $(document).ready(function() {
2 raw = $('#plain > pre').text(); 2 raw = $('#plain pre').text();
3 3
4 $('#highlight pre').text(raw); 4 $('#highlight pre').text(raw);
5 window.prettyPrint && prettyPrint(); 5 window.prettyPrint && prettyPrint();
6 6
7 $('#markdown div').html(marked(raw)); 7 $('#markdown div').html(marked(raw));