User:Hisa/SemanticSbox: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
== | == test == | ||
<html> | <html> | ||
<script type="text/javascript"> | <br> | ||
$(document).ready(function() { | <!-- tf enrich table: start--> | ||
<script type="text/javascript" charset="utf-8"> | |||
var ffcp_tf_enrichscore_d= | |||
[chr12:107078493..107078533,+!p3@RFX4!2.02!102.95!RFX4;;chr7:100065686..100065701,-!p2@TSC22D4!2.00!98.04!TSC22D4;;chr4:57547454..57547469,-!p1@HOPX!1.94!86.97!HOPX;;chr7:5111723..5111807,+!p2@RBAK!1.90!78.52!RBAK;;chr2:114036488..114036504,-!p1@PAX8!1.78!58.94!PAX8]; | |||
$(document).ready(function() { | |||
$('#ffcp_tf_enrichscore').html( '<table cellpadding="0" cellspacing="0" border="0" class="display" id="ffcp_tf_enrichscore_cont"></table>' ); | |||
$('#ffcp_tf_enrichscore_cont').dataTable( { | |||
"sDom": '<"toolbar">frtip', | |||
"sScrollY": "300px", | "sScrollY": "300px", | ||
"bPaginate": false, | "bPaginate": false, | ||
"bScrollCollapse": true, | "bScrollCollapse": true, | ||
"iDisplayLength": -1, | "iDisplayLength": -1, | ||
" | "aaData": ffcp_tf_enrichscore_d, | ||
" | "aoColumns": [ | ||
}); | { "sTitle": "FFCP Phase1","sWidth": "30px", | ||
}); | "fnRender": function(obj) { | ||
</script> | var id = obj.aData[ obj.iDataColumn ].split("!"); | ||
return sReturn = "<a href=\"/resource_browser/"+encodeURI(id[0])+"\">"+id[1]+"</a>"; | |||
} | |||
}, | |||
{ "sTitle": "Enrichment Score","sWidth": "30px"}, | |||
{ "sTitle": "TPM","sWidth": "30px"}, | |||
{ "sTitle": "TF","sWidth": "30px"} | |||
], | |||
"aaSorting": [[ 1, "desc" ]] | |||
} ); | |||
$("div.toolbar").html('<b>TF expression and enrichment</b>'); | |||
$("div.toolbar").css('border-width', '0 0 2px 0'); | |||
$("div.toolbar").css('border-color', '#6495ED'); | |||
$("div.toolbar").css('border-style', 'solid'); | |||
} ); | |||
</script> | |||
<!-- tf enrich table: end--> | |||
</html> | </html> | ||
Revision as of 09:57, 6 September 2012
test