|
|
(52 intermediate revisions not shown) |
Line 1: |
Line 1: |
- | {{:Team:Freiburg_Bioware/jquery142}} | + | {{:Team:Freiburg_Bioware/jquery_newsticker}} |
| <html> | | <html> |
| <head> | | <head> |
- |
| |
| | | |
| <script type="text/javascript"> | | <script type="text/javascript"> |
| | | |
| $(document).ready(function() { | | $(document).ready(function() { |
- | $("img").wrap('<div class="img" />'); | + | $("li[style]").addClass("menubar_current"); |
- | $("img").after(function() { | + | $("li[style]").removeAttr("style"); |
- | return '<div>' + this.alt + '</div>'; | + | $("#news").newsticker(); |
- | }); | + | $('div.left-menu ul').prepend('<li class="pad-right"><a href="https://2010.igem.org/Team:Freiburg_Bioware">Freiburg Bioware</a>'); |
| + | $('div.left-menu ul').prepend('<li class="pad-right"><a href="https://2010.igem.org/Main_Page">iGEM 2010</a>'); |
| }); | | }); |
- | </script>
| |
- |
| |
- | <script type="text/javascript">
| |
- | $(document).ready(function() {
| |
- | $("#wrap").append("<ol id=\"footnotes\"></ol>");
| |
- | footnote = 1;
| |
- | $("span[title],blockquote[cite],blockquote[title]").addClass("footnote");
| |
- | $(".footnote").each(function() {
| |
- | $(this).append("<sup>"+footnote+"</sup>");
| |
- | cite="<li>";
| |
- | url=$(this).attr("cite");
| |
- | title=$(this).attr("title");
| |
- | if(title && url) {
| |
- | 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);
| |
- | footnote++;
| |
- | });
| |
- | });
| |
- |
| |
- | $(".pageContent").append("<ul id=\"footnotes\"></ul>");
| |
- | footnote = 1;
| |
- | $("q[title],blockquote[cite],blockquote[title]").addClass("footnote")
| |
- | $(".footnote").each(function() {
| |
- | $(this).wrap(function() {
| |
- | return '<a href="#footnote' + footnote + '" />';
| |
- | });
| |
- | newid = "#' + footnote + '";
| |
- | &(this).attr('id', newid);
| |
- | $(this).append("<sup>"+footnote+"</sup>");
| |
- | cite="<a href="' + newid + '>' + footnote ' .</a> <li>";
| |
- | title=$(this).attr("title");
| |
- | cite+=title;
| |
- | cite+="</li>";
| |
- | $("#footnotes").append(cite);
| |
- | footnote++;
| |
- | });
| |
| </script> | | </script> |
| </head> | | </head> |
| </html> | | </html> |