Team:Freiburg Bioware/jquery

From 2010.igem.org

(Difference between revisions)
Line 17: Line 17:
   $(this).append("<sup>" + footnote + "</sup>");
   $(this).append("<sup>" + footnote + "</sup>");
   cite="<li>";
   cite="<li>";
-
  url=$(this).attr("cite");
 
   title=$(this).attr("title");
   title=$(this).attr("title");
-
   if(title && url) {
+
   cite+=title;
-
      cite+="<a href=\""+url+"\">"+title+"</a>";
+
-
  } else if(title) {
+
-
      cite+=title;
+
-
  } else if(url) {
+
-
      cite+="<a href=\""+url+"\">"+url+"</a>";
+
-
  }
+
-
  cite+="</li>";
+
   $("#footnotes").append(cite);
   $("#footnotes").append(cite);
-
  footnote++;
 
   });
   });
});
});

Revision as of 22:25, 11 October 2010