User:Hisa/tabletest: 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"> | ||
Line 16: | Line 6: | ||
<script type="text/javascript" charset="utf-8"> | <script type="text/javascript" charset="utf-8"> | ||
var | var ffcp_tf_enrichscore= | ||
[ | [ | ||
</html> | </html> | ||
Line 34: | Line 24: | ||
"bScrollCollapse": true, | "bScrollCollapse": true, | ||
"iDisplayLength": -1, | "iDisplayLength": -1, | ||
"aaData": | "aaData": ffcp_tf_enrichscore, | ||
"aoColumns": [ | "aoColumns": [ | ||
{ "sTitle": "FFCP Phase1","sWidth": "30px", | { "sTitle": "FFCP Phase1","sWidth": "30px", | ||
Line 56: | Line 46: | ||
</script> | </script> | ||
<div id="dynamic" style="float:left;"></div> | <div id="dynamic" style="float:left;"></div> | ||
</html> | |||
<html> | |||
<script type="text/javascript" charset="utf-8"> | |||
var top_motif_d= | |||
[ | |||
</html> | |||
{{#top_motifs_dtarr: | |||
HNF4A_NR2F1,2:3.18450366489;ESRRA:2.63315509929;ZEB1:2.5915728042;FOXN1:2.35072647535;PAX2:2.31193040361;RXR{A,B,G}_{NR1H2,PPAR}dimers:2.2694092643;ATF4:2.19997604008;SNAI1..3:2.08612881781;FOXM1:2.08504951106;PDX1:1.99052891189;TBX4,5:1.87606945968;ATF5_CREB3:1.80657359091;HNF1A:1.76360033291;PPARG:1.73810790227;SP1:1.7106315154;NR6A1:1.70614392642;NFIX:1.65973758591;CREB1:1.61336416687;NR5A1,2:1.54149969552;FOSL2:1.5366103188;GTF2A1,2:1.31596141512;bHLH_family:1.25734734857;PAX8:1.19920494356;FOS_FOS{B,L1}_JUN{B,D}:1.16304348973;FOX{D1,D2}:1.11321842664;AR:1.09771252655;IRF1,2:1.08364495761;DMAP1_NCOR{1,2}_SMARC:0.987062702842;FOX{I1,J2}:0.976635010608 | |||
}} | |||
<html> | |||
]; | |||
$(document).ready(function() { | |||
$('#top_motiftb').html( '<table cellpadding="0" cellspacing="0" border="0" class="display" id="top_motiftb_cont"></table>' ); | |||
$('#top_motiftb_cont').dataTable( { | |||
"sDom": '<"toolbar">frtip', | |||
"sScrollY": "300px", | |||
"bPaginate": false, | |||
"bScrollCollapse": true, | |||
"iDisplayLength": -1, | |||
"aaData": top_motif_d, | |||
"aoColumns": [ | |||
{ "sTitle": "FFCP Phase1","sWidth": "30px", | |||
"fnRender": function(obj) { | |||
var id = obj.aData[ obj.iDataColumn ].split("!"); | |||
return sReturn = "<a href=\"/resource_browser/"+id[0]+"\">"+id[1]+"</a>"; | |||
} | |||
}, | |||
{ "sTitle": "Enrichment Score","sWidth": "30px"}, | |||
], | |||
"aaSorting": [[ 1, "desc" ],[ 0, "asc" ]] | |||
} ); | |||
$("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> | |||
<div id="top_motiftb" style="float:left;"></div> | |||
</html> | </html> |
Revision as of 15:33, 8 May 2012