mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-11 09:11:05 +01:00
12 lines
410 B
JavaScript
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(); });
|
||
|
});
|