Template:Team:Cambridge/CAM 2012 TEMPLATE HEAD DIARY

From 2012.igem.org

(Difference between revisions)
Line 67: Line 67:
$('.cam_grid_headover h6').css("display","none");
$('.cam_grid_headover h6').css("display","none");
         $('#cam_diary_link').click(function() {
         $('#cam_diary_link').click(function() {
-
             window.location.replace("https://2012.igem.org/Team:Cambridge/" +pathname[2] + pathname[3]);
+
             if ((pathname[2]!="Diary") && (pathname[2])!="Lab_book"){
 +
              window.location.replace("https://2012.igem.org/Team:Cambridge/Diary/Week_1);
 +
            }
 +
            else {
 +
              window.location.replace("https://2012.igem.org/Team:Cambridge/" +pathname[2] + "/" pathname[3]);
 +
            {
 +
 
             return false;
             return false;
         });
         });

Revision as of 17:34, 23 August 2012