Template:Team:Cambridge/CAM 2012 TEMPLATE HEAD DIARY
From 2012.igem.org
(Difference between revisions)
Pdmallaband (Talk | contribs) |
Pdmallaband (Talk | contribs) |
||
Line 82: | Line 82: | ||
}); | }); | ||
+ | |||
+ | $('#cam_Lab_link').click(function() { | ||
+ | if (pathname[2]=="Diary"){ | ||
+ | location.replace("https://2012.igem.org/Team:Cambridge/Lab_book" + "/"+ pathname[3]); | ||
+ | return false; | ||
+ | } | ||
+ | else if (pathname[2] =="Lab_book"){ | ||
+ | location.replace("https://2012.igem.org/Team:Cambridge/Lab_book" + "/"+ pathname[3]); | ||
+ | return false; | ||
+ | } | ||
+ | else { | ||
+ | location.replace("https://2012.igem.org/Team:Cambridge/Lab_book/Week_1"); | ||
+ | return false; | ||
+ | } | ||
+ | |||
+ | }); | ||
+ | |||
+ | |||
$('#cam_grid_diary_title').mouseover(function() { | $('#cam_grid_diary_title').mouseover(function() { | ||
Line 182: | Line 200: | ||
<ul class = "subtitles"> | <ul class = "subtitles"> | ||
<li><a id = 'cam_diary_link' href ="#" class='cam-external'>Diary</a></li> | <li><a id = 'cam_diary_link' href ="#" class='cam-external'>Diary</a></li> | ||
- | <li><a href ="https://2012.igem.org/Team:Cambridge/Lab_book/Week_3" class='cam-external'>Lab book </a></li> | + | <li><a id = 'cam_lab_link' href ="https://2012.igem.org/Team:Cambridge/Lab_book/Week_3" class='cam-external'>Lab book </a></li> |
<li><a href ="https://2012.igem.org/Team:Cambridge/Protocols" class='cam-external'>Protocols </a></li> | <li><a href ="https://2012.igem.org/Team:Cambridge/Protocols" class='cam-external'>Protocols </a></li> | ||
</ul> | </ul> |
Revision as of 17:59, 23 August 2012