Team:TU Delft/PartViewExample

From 2010.igem.org

(Difference between revisions)
(New page: {{Team:TU_Delft/PartView|part=BBa_B0032}})
 
(16 intermediate revisions not shown)
Line 1: Line 1:
-
{{Team:TU_Delft/PartView|part=BBa_B0032}}
+
<html>
 +
<style>
 +
.partview_label {
 +
font-weight: bold;
 +
width: 200px;
 +
}
 +
.partview_data {
 +
margin: 10px;
 +
font-family: courier;
 +
width: 400px;
 +
overflow: auto;
 +
}
 +
</style>
 +
<div id="partview">
 +
<div class="partview_label">Part Name:</div><div class="partview_name partview_data"></div>
 +
<div class="partview_label">Part Description:</div><div class="partview_desc partview_data"></div>
 +
<div class="partview_label">Part Author:</div><div class="partview_author partview_data"></div>
 +
<div class="partview_label">Part Sequence Length:</div><div class="partview_sequence_len partview_data"></div>
 +
<div class="partview_label">Part Sequence:</div><div class="partview_sequence partview_data"></div>
 +
</div>
 +
 
 +
<script type="text/javascript">
 +
 
 +
function PartInfoCallback(parts) {
 +
var part = parts[0];
 +
$(".partview_name").text(part.name);
 +
$(".partview_desc").text(part.desc);
 +
$(".partview_author").text(part.author);
 +
$(".partview_sequence").text(part.sequence);
 +
$(".partview_sequence_len").text(part.sequence.length);
 +
}
 +
</script>
 +
 
 +
</html>
 +
 
 +
{{Team:TU_Delft/PartView|part=BBa_K398005|callback=PartInfoCallback}}
 +
 
 +
Made by using template [[Template:Team:TU_Delft/PartView|PartView]]
 +
<html>
 +
<pre>
 +
{{Team:TU_Delft/PartView|part=BBa_K398005|callback=PartInfoCallback}}
 +
</pre></html>

Latest revision as of 20:02, 26 October 2010

Part Name:
Part Description:
Part Author:
Part Sequence Length:
Part Sequence:

Made by using template PartView

 {{Team:TU_Delft/PartView|part=BBa_K398005|callback=PartInfoCallback}}