Template:Team:Cambridge/CAM 2012 TEMPLATE HEAD DIARY

From 2012.igem.org

(Difference between revisions)
Line 69: Line 69:
         $('#cam_diary_link').click(function() {
         $('#cam_diary_link').click(function() {
             if (pathname[2]=="Diary"){
             if (pathname[2]=="Diary"){
-
               alert(pathname[2]);
+
               alert(pathname[2])
-
               url = "https://2012.igem.org/Team:Cambridge/Diary/" + pathname[3];
+
               return false;
-
              return false;
+
             }
             }
-
            else if (pathname[2]=="Lab_book"){
+
 
-
              url = "https://2012.igem.org/Team:Cambridge/Diary/" + pathname[3];
+
-
            {
+
-
            else{
+
-
            url = "https://2012.igem.org/Team:Cambridge/Diary/Week_1" ;
+
-
          }
+
-
            window.location.replace(url);
+
-
            return false;
+
         });
         });

Revision as of 17:50, 23 August 2012