User:Hisa/tabletest: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
<html> | <html> | ||
<!-- tf enrich table: start--> | <!-- tf enrich table: start--> | ||
<style type="text/css" title="currentStyle"> | <style type="text/css" title="currentStyle"> | ||
Line 10: | Line 13: | ||
<script type="text/javascript" charset="utf-8"> | <script type="text/javascript" charset="utf-8"> | ||
$(document).ready(function() { | $(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( { | |||
</html>{{#exptable_hg19_dtarr: | |||
{{#ask:[[Category:FFCP]][[EntrezGene::10]][[Species::Human (Homo sapiens)]]|?short_description|?id|?Phase1 expression|limit=1000|format=template|template=Exptable_imput|sep=$}} | {{#ask:[[Category:FFCP]][[EntrezGene::10]][[Species::Human (Homo sapiens)]]|?short_description|?id|?Phase1 expression|limit=1000|format=template|template=Exptable_imput|sep=$}} | ||
|hg19 | |hg19 | ||
}} | }} | ||
<html>; | <html> | ||
}); | |||
// hyperlink on column header | |||
for(i1=1;i1<$("#ffcp_tf_enrichscore tr")[0].cells.length;i1++){ | |||
var cellcont = $("#ffcp_tf_enrichscore tr")[0].cells[i1].innerHTML.split("!"); | |||
$("#ffcp_tf_enrichscore tr")[0].cells[i1].innerHTML = "<a href=\"FFCP_PHASE1:Hg19::"+encodeURI(cellcont[0])+"\">"+cellcont[1]+"</a>"; | |||
} | |||
// hyperlink on sample record | |||
for(i1=1;i1<$("#ffcp_tf_enrichscore tr").length;i1++){ | |||
var cellcont = $("#ffcp_tf_enrichscore tr")[i1].cells[0].innerHTML; | |||
$("#ffcp_tf_enrichscore tr")[i1].cells[0].innerHTML = cellcont.split(".").pop(); | |||
} | |||
}); | |||
} ); | |||
</script> | </script> | ||
<!-- tf enrich table: end--> | <!-- tf enrich table: end--> | ||
Line 63: | Line 79: | ||
} ); | } ); | ||
</script> | </script> | ||
<div id="test1"></div> | |||
<div id="ffcp_tf_enrichscore" style="float:left;"></div> | <div id="ffcp_tf_enrichscore" style="float:left;"></div> | ||
<div id="top_motiftb" style="float:left;padding-left:15px;"></div> | <div id="top_motiftb" style="float:left;padding-left:15px;"></div> | ||
<!-- top motif table: end--> | <!-- top motif table: end--> | ||
</html> | </html> |
Revision as of 13:48, 16 May 2012