Team:SYSU-China/Project.js
From 2013.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
+ | /*Navigater start*/ | ||
+ | |||
$(document).ready(function(){ | $(document).ready(function(){ | ||
+ | $("div.navigater").html('<UL> <LI class="column" id="HOME"><A href="https://2013.igem.org/Team:SYSU-China">Home</A> <LI class="column" id="PROJECT"><A href="https://2013.igem.org/Team:SYSU-China/Project">PROJECT</A> <UL> <LI><A style="color:#777;" href="">Overview</A></LI> <LI><A href="https://2013.igem.org/Team:SYSU-China/Project?#h2_0">Background</A></LI> <LI><A href="https://2013.igem.org/Team:SYSU-China/Project/Design">Design</A></LI> <LI><A href="https://2013.igem.org/Team:SYSU-China/Project/Results">Results</A></LI> <LI><A href="https://2013.igem.org/Team:SYSU-China/Project/Future_work">Future work</A></LI> <LI><A style="color:#777;" href="">Modeling</A></LI></UL></LI> <LI class="column" id="JUDGING" ><A href="">JUDGING</A> <UL> <LI><A style="color:#777;" href="">Biobrick</A></LI> <LI><A style="color:#777;" href="">Achievements</A></LI></UL></LI> <LI class="column" id="SAFETY"><A href="">Safety</A> <UL> <LI><A style="color:#777;" href="">Safety</A></LI> <LI><A style="color:#777;" href="">Ethics</A></LI> <LI><A href="https://2013.igem.org/Team:SYSU-China/Safety/Human practice">Human practice</A></LI></UL></LI> <LI class="column" id="NOTEBOOK"><A href="">NOTEBOOK</A> <UL> <LI><A style="color:#777;" href="">Methods</A></LI> <LI><A style="color:#777;" href="">Labnotes</A></LI></UL></LI> <LI class="column" id="TEAM"><A href="">TEAM</A> <UL> <LI><A href="https://2013.igem.org/Team:SYSU-China/Team/Member">Member</A></LI> <LI><A style="color:#777;" href="">Attributions</A></LI> <LI><A style="color:#777;" href="">Gallery</A></LI> <LI><A style="color:#777;" href="">Contact us</A></LI> <LI><A style="color:#777;" href="">Acknowledgments</A></LI></UL></LI></UL> ') | ||
- | /* | + | /*Navigater End*/ |
- | + | /* Reference Anchor Start */ | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | /* | + | |
- | + | anchor_quote = $(".quote"); | |
- | + | name = 0; | |
- | + | anchor_quote.each(function() { | |
- | + | var refer_num = $(this).text(); | |
- | + | name = name + 1; | |
- | + | $(this).attr("href",'#"+name+"'); | |
- | + | $(".references:contains("+refer_num+")").each(function(){ | |
- | + | if ($(this).attr("name") == "undefined") { | |
- | + | $(this).attr("name",'#"+name+"'); | |
- | + | return false; | |
- | + | } else { | |
- | + | return true; | |
- | + | } | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | var | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | } else | + | |
- | + | ||
- | + | ||
- | } | + | |
}); | }); | ||
+ | alert(name); | ||
}); | }); | ||
- | + | }); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | /* Reference Anchor End */ | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + |
Revision as of 07:36, 26 September 2013
/*Navigater start*/
$(document).ready(function(){
$("div.navigater").html('- <A href="https://2013.igem.org/Team:SYSU-China">Home</A>
- <A href="https://2013.igem.org/Team:SYSU-China/Project">PROJECT</A>
- <A style="color:#777;" href="">Overview</A>
- <A href="https://2013.igem.org/Team:SYSU-China/Project?#h2_0">Background</A>
- <A href="https://2013.igem.org/Team:SYSU-China/Project/Design">Design</A>
- <A href="https://2013.igem.org/Team:SYSU-China/Project/Results">Results</A>
- <A href="https://2013.igem.org/Team:SYSU-China/Project/Future_work">Future work</A>
- <A style="color:#777;" href="">Modeling</A>
- <A href="">JUDGING</A>
- <A style="color:#777;" href="">Biobrick</A>
- <A style="color:#777;" href="">Achievements</A>
- <A href="">Safety</A>
- <A style="color:#777;" href="">Safety</A>
- <A style="color:#777;" href="">Ethics</A>
- <A href="https://2013.igem.org/Team:SYSU-China/Safety/Human practice">Human practice</A>
- <A href="">NOTEBOOK</A>
- <A style="color:#777;" href="">Methods</A>
- <A style="color:#777;" href="">Labnotes</A>
- <A href="">TEAM</A>
- <A href="https://2013.igem.org/Team:SYSU-China/Team/Member">Member</A>
- <A style="color:#777;" href="">Attributions</A>
- <A style="color:#777;" href="">Gallery</A>
- <A style="color:#777;" href="">Contact us</A>
- <A style="color:#777;" href="">Acknowledgments</A>
/*Navigater End*/
/* Reference Anchor Start */
anchor_quote = $(".quote"); name = 0; anchor_quote.each(function() { var refer_num = $(this).text(); name = name + 1; $(this).attr("href",'#"+name+"'); $(".references:contains("+refer_num+")").each(function(){ if ($(this).attr("name") == "undefined") { $(this).attr("name",'#"+name+"'); return false; } else { return true; } }); alert(name); }); });
/* Reference Anchor End */