Team:TU Delft/PartViewExample

From 2010.igem.org

(Difference between revisions)
(New page: {{Team:TU_Delft/PartView|part=BBa_B0032}})
Line 1: Line 1:
-
{{Team:TU_Delft/PartView|part=BBa_B0032}}
+
 
 +
<html>
 +
<style>
 +
#partview div {
 +
margin: 10px;
 +
}
 +
</style>
 +
<div id="#partview">
 +
<div class="partview_name"></div>
 +
<br>
 +
<div class="partview_desc"></div>
 +
<br>
 +
<div class="partview_author"></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);
 +
}
 +
</script>
 +
 
 +
</html>
 +
 
 +
{{Team:TU_Delft/PartView|part=BBa_B0032|callback=PartInfoCallback}}

Revision as of 19:43, 26 October 2010