mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-08 23:05:10 +02:00
Add jqplot for graphing
This commit is contained in:
12
phpgwapi/js/jquery/jqplot/examples/example.js
vendored
Normal file
12
phpgwapi/js/jquery/jqplot/examples/example.js
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
$(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(); });
|
||||
});
|
Reference in New Issue
Block a user