Files
librenms-librenms/html/js/jqplot/examples/example.js
T
Adam Amstrong 64c3a11742 new menu. it's pretty. it should work.
git-svn-id: http://www.observium.org/svn/observer/trunk@2408 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-02 19:25:54 +00:00

12 lines
410 B
JavaScript

$(document).ready(function(){
$('script.code').each(function(index) {
if ($('pre.code').eq(index).length ) {
$('pre.code').eq(index).text($(this).html());
}
else {
var str = $(this).html();
$('div.jqplot-target').eq(index).after($('<pre class="code">'+str+'</pre>'));
}
});
$(document).unload(function() {$('*').unbind(); });
});