m |
m |
||
Line 1: | Line 1: | ||
− | |||
<html> | <html> | ||
<head> | <head> | ||
Line 5: | Line 4: | ||
body {margin:0;} | body {margin:0;} | ||
/********************************* menu bar formatting ********************************/ | /********************************* menu bar formatting ********************************/ | ||
− | + | menu_ul{ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
color:green; | color:green; | ||
margin: -15px; | margin: -15px; | ||
Line 23: | Line 15: | ||
} | } | ||
− | + | menu_li { | |
float: left; | float: left; | ||
https://2016.igem.org/Team:Manchester | https://2016.igem.org/Team:Manchester | ||
Line 29: | Line 21: | ||
− | + | menu_li a { | |
− | display: | + | display: inline; |
color: green; | color: green; | ||
text-align: center; | text-align: center; | ||
Line 38: | Line 30: | ||
} | } | ||
− | + | menu_li a:hover{ | |
color:white; | color:white; | ||
background-color:purple; | background-color:purple; | ||
} | } | ||
− | + | menu_li .active { | |
background-color: #4CAF50; | background-color: #4CAF50; | ||
} | } | ||
Line 186: | Line 178: | ||
$(function() { | $(function() { | ||
var pgurl = window.location.href.substr(window.location.href.lastIndexOf("/")+1); | var pgurl = window.location.href.substr(window.location.href.lastIndexOf("/")+1); | ||
− | $("# | + | $("#menu_li a").each(function(){ |
if($(this).attr("href") == pgurl || $(this).attr("href") == '' ) | if($(this).attr("href") == pgurl || $(this).attr("href") == '' ) | ||
$(this).addClass("active"); | $(this).addClass("active"); | ||
Line 202: | Line 194: | ||
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> | <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> | ||
− | |||
− | |||
− | + | <menu_ul> | |
− | + | ||
− | + | ||
− | </ | + | <menu_li><a href="https://2016.igem.org/Team:Manchester"><strong>Home</strong></a></menu_li> |
− | </ | + | <menu_li><a href="https://2016.igem.org/Team:Manchester/Team"><strong>Team</strong></a></menu_li> |
+ | <menu_li><a href="https://2016.igem.org/Team:Manchester/Description"><strong>Project</strong></a></menu_li> | ||
− | </ | + | </menu_ul> |
+ | |||
+ | </body> | ||
+ | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> | ||
</html> | </html> |
Revision as of 16:14, 12 July 2016