Browse coexpression clusters: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<html> | <html> | ||
<style type="text/css" title="currentStyle"> | <style type="text/css" title="currentStyle"> | ||
@import "/resource_browser/rb_js/datatables/media/css/jquery.dataTables.css"; | @import "/resource_browser/rb_js/datatables/media/css/jquery.dataTables.css"; | ||
</style> | </style> | ||
<script type="text/ | <script type="text/javascript" src="/resource_browser/rb_js/datatables/media/js/jquery.dataTables.min.js"></script> | ||
<script type="text/javascript" language="javascript" src="/resource_browser/rb_js/datatables/media/js/datatables.sortdefs.js"></script> | <script type="text/javascript" language="javascript" src="/resource_browser/rb_js/datatables/media/js/datatables.sortdefs.js"></script> | ||
<script type="text/javascript | |||
<script type="text/javascript"> | |||
var aDataSet = | var aDataSet = | ||
[ | [ | ||
</html> | </html> | ||
{{#ask:[[ | {{#ask:[[Concept:Coexpression_clusters_major]]|mainlabel=-|?id|?full_id|?Cp_member_count|format=template|template=Triplecolumn_to_array|sep=,|limit=310}} | ||
<html> | <html> | ||
]; | ]; | ||
Line 19: | Line 19: | ||
$('#example').dataTable( { | $('#example').dataTable( { | ||
"iDisplayLength": 25, | "iDisplayLength": 25, | ||
"aLengthMenu": [[25, 100 | "aLengthMenu": [[25, 100, -1], [25, 100, "All"]], | ||
"aaData": aDataSet, | "aaData": aDataSet, | ||
"aoColumns": [ | "aoColumns": [ | ||
{ "sTitle": "Id", | { "sTitle": "Id", "sType": "num-html", | ||
"fnRender": function(obj) { | "fnRender": function(obj) { | ||
var id = obj.aData[ obj.iDataColumn ]; | var id = obj.aData[ obj.iDataColumn ]; | ||
return sReturn = "<a href=\"/resource_browser/Coexpression_cluster:"+id+"\">"+id.slice(1)+"</a>"; | return sReturn = "<a href=\"/resource_browser/Coexpression_cluster:"+id+"\">"+id.slice(1)+"</a>"; | ||
}}, | }}, | ||
{ "sTitle": "Full id"}, | { "sTitle": "Full id", "bSortable": false}, | ||
{ "sTitle": "Number of FFCP members"} | { "sTitle": "Number of FFCP members", "bSortable": false} | ||
] | ] | ||
} ); | } ); |
Revision as of 14:27, 19 September 2012