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

Line 119: Line 119:
 
hr=$(this).attr("href");
 
hr=$(this).attr("href");
  
if(hr \&\& hr.match(/\/\/2015/g) \&\& !hr.match(/http:/g)) {
+
if(hr){
 +
if(hr.match(/\/\/2015/g)){
 +
if(!hr.match(/http:/g)) {
  
 
if(~window.location.indexOf(hr)){
 
if(~window.location.indexOf(hr)){
 
console.log(hr)
 
console.log(hr)
 
}
 
}
 
+
}
 +
}
 
}
 
}
  

Revision as of 00:05, 4 August 2015