Template:Team:Washington/Templates/Top
From 2012.igem.org
(Difference between revisions)
Housekeeper (Talk | contribs) |
Housekeeper (Talk | contribs) |
||
Line 264: | Line 264: | ||
#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:selected { | ||
background-color: #785D84; | background-color: #785D84; | ||
background-image: -moz-linear-gradient(#B6A0BA, #785D84); | background-image: -moz-linear-gradient(#B6A0BA, #785D84); | ||
Line 571: | Line 580: | ||
var isiPad = navigator.userAgent.match(/iPad/i) != null; | var isiPad = navigator.userAgent.match(/iPad/i) != null; | ||
if (isiPad) $('#igemuwmenu ul').addClass('no-transition'); | if (isiPad) $('#igemuwmenu ul').addClass('no-transition'); | ||
- | }); | + | }); |
+ | |||
+ | $(document).ready(function(){ | ||
+ | $currenturl = location.href; | ||
+ | $('a[href=$currenturl]').addClass('selected'); | ||
+ | }); | ||
</script> | </script> |