Template:Team:Cambridge/CAM 2012 TEMPLATE HEAD DIARY

From 2012.igem.org

(Difference between revisions)
Line 61: Line 61:
     var pathname = window.location.pathname;
     var pathname = window.location.pathname;
     pathname = pathname.split("/");
     pathname = pathname.split("/");
-
     alert(pathname[3]);
+
      
$(document).ready(function() {
$(document).ready(function() {
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/Diary/Week_1");
+
             window.location.replace("https://2012.igem.org/Team:Cambridge/Diary/" + pathname[3]);
             return false;
             return false;
         });
         });

Revision as of 17:24, 23 August 2012