Difference between revisions of "Team:Cambridge-JIC/Templates/Menu"

Line 114: Line 114:
 
$(this).css('cursor','pointer');
 
$(this).css('cursor','pointer');
 
});
 
});
 +
 +
// highlight curr page
 +
$("a").each(function(){
 +
hr=$(this).attr("href");
 +
 +
if(hr && hr.match(/\/\/2015/g) && !hr.match(/http:/g)) {
 +
 +
if(~window.location.indexOf(hr)){
 +
console.log(hr)
 +
}
 +
 +
}
 +
 +
})
  
 
});
 
});

Revision as of 23:58, 3 August 2015