Template:Team:Washington/Templates/Top

From 2012.igem.org

(Difference between revisions)
Line 184: Line 184:
}  
}  
          
          
-
         #igemuwmenu a.active {
+
         #igemuwmenu a.selected {
background-color: #000000;
background-color: #000000;
         }
         }
Line 268: Line 268:
#igemuwmenu ul a:hover {
#igemuwmenu ul a:hover {
-
background-color: #785D84;
 
-
background-image: -moz-linear-gradient(#B6A0BA,  #785D84);
 
-
background-image: -webkit-gradient(linear, left top, left bottom, from(#B6A0BA), to(#785D84));
 
-
background-image: -webkit-linear-gradient(#B6A0BA, #785D84);
 
-
background-image: -o-linear-gradient(#B6A0BA, #785D84);
 
-
background-image: -ms-linear-gradient(#B6A0BA, #785D84);
 
-
background-image: linear-gradient(#B6A0BA, #785D84);
 
-
}
 
-
 
-
        #igemuwmenu ul a.active {
 
background-color: #785D84;
background-color: #785D84;
background-image: -moz-linear-gradient(#B6A0BA,  #785D84);
background-image: -moz-linear-gradient(#B6A0BA,  #785D84);
Line 588: Line 578:
// selection
// selection
-
$(document).ready(function(){
+
var path = location.pathname;
-
var currentUrl = $(this).attr('href');
+
var home = "/";
-
if (currentUrl)
+
  $("a[href='" + [ path ] + "']").parents("li").each(function() {
-
$('a[href='" + currentUrl + "']').addClass('active');
+
      $(this).addClass("selected");
-
});
+
  });
</script>
</script>

Revision as of 04:24, 29 September 2012