Template:Team:Hannover/main.tmpl

From 2014.igem.org

(Difference between revisions)
Line 7: Line 7:
<script type='text/javascript'>
<script type='text/javascript'>
-
 
+
alert("P1");
function annotate_all() {
function annotate_all() {
  // Move all annotations to the height of the referred element.
  // Move all annotations to the height of the referred element.
  $( ".annotation" ).each(function(elem) {
  $( ".annotation" ).each(function(elem) {
-
   console.log("Annotating...");
+
   alert("P3");
   var thise = $(this);
   var thise = $(this);
   var e = thise.attr('ref');
   var e = thise.attr('ref');
   var reff = $('#' + e);
   var reff = $('#' + e);
   if (reff) {
   if (reff) {
 +
      alert("P4");
     var apos = thise.offset();  
     var apos = thise.offset();  
     var rpos = reff.offset();
     var rpos = reff.offset();
Line 26: Line 27:
       'visibility' : 'visible'
       'visibility' : 'visible'
     });
     });
 +
        alert("P5");
   }
   }
});
});
$( document ).ready( annotate_all );
$( document ).ready( annotate_all );
-
 
+
alert("P2");
function preload(arrayOfImages) {
function preload(arrayOfImages) {
     $(arrayOfImages).each(function(){
     $(arrayOfImages).each(function(){

Revision as of 11:30, 18 September 2014