Difference between revisions of "Template:NYU Shanghai"
Line 8: | Line 8: | ||
font-family: "kabel"; | font-family: "kabel"; | ||
src: url("https://static.igem.org/mediawiki/2015/4/4a/NYU_Shanghai_Kabel.ttf") format("truetype"); | src: url("https://static.igem.org/mediawiki/2015/4/4a/NYU_Shanghai_Kabel.ttf") format("truetype"); | ||
+ | } | ||
+ | @font-face { | ||
+ | font-family: "bebas"; | ||
+ | src: url("https://static.igem.org/mediawiki/2015/a/a1/NYU_Shanghai_Bebas.ttf") format("truetype"); | ||
} | } | ||
Line 40: | Line 44: | ||
position: fixed; | position: fixed; | ||
margin: -3px auto; | margin: -3px auto; | ||
− | font-family: " | + | font-family: "bebas"; |
font-size: 20px; | font-size: 20px; | ||
text-align: center; | text-align: center; | ||
Line 170: | Line 174: | ||
} | } | ||
function revealProject() { | function revealProject() { | ||
− | + | if (document.getElementById("project").className === "active") { | |
− | + | document.getElementById("project").className = "inactive"; | |
− | + | } else{ | |
− | + | document.getElementById("project-submenu").style.visibility = "visible"; | |
− | + | document.getElementById("project").style.borderWidth = "0px 1px 1px"; | |
− | + | document.getElementById("project-span").style.display = "block"; | |
− | + | document.getElementById("project").className = "active"; | |
− | + | }; | |
} | } | ||
function revealTeam() { | function revealTeam() { | ||
− | + | if (document.getElementById("team").className === "active") { | |
− | + | document.getElementById("team").className = "inactive"; | |
− | + | } else{ | |
− | + | document.getElementById("team-submenu").style.visibility = "visible"; | |
− | + | document.getElementById("team").style.borderWidth = "0px 1px 1px"; | |
− | + | document.getElementById("team-span").style.display = "block"; | |
− | + | document.getElementById("team").className = "active"; | |
− | + | }; | |
} | } | ||
function revealOutreach() { | function revealOutreach() { | ||
− | + | if (document.getElementById("outreach").className === "active") { | |
− | + | document.getElementById("outreach").className = "inactive"; | |
− | + | } else{ | |
− | + | document.getElementById("outreach-submenu").style.visibility = "visible"; | |
− | + | document.getElementById("outreach").style.borderWidth = "0px 1px 1px"; | |
− | + | document.getElementById("outreach-span").style.display = "block"; | |
− | + | document.getElementById("outreach").className = "active"; | |
− | + | }; | |
} | } | ||
function revealNotebook() { | function revealNotebook() { | ||
− | + | if (document.getElementById("notebook").className === "active") { | |
− | + | document.getElementById("notebook").className = "inactive"; | |
− | + | } else{ | |
− | + | document.getElementById("notebook-submenu").style.visibility = "visible"; | |
− | + | document.getElementById("notebook").style.borderWidth = "0px 1px 1px"; | |
− | + | document.getElementById("notebook-span").style.display = "block"; | |
− | + | document.getElementById("notebook").className = "active"; | |
− | + | }; | |
} | } | ||
function selectProject() { | function selectProject() { | ||
− | + | if (document.getElementById("project").className === "active") { | |
− | + | return; | |
− | + | } else{ | |
− | + | document.getElementById("project").style.borderWidth = "0px 1px"; | |
− | + | }; | |
} | } | ||
function selectTeam() { | function selectTeam() { | ||
− | + | if (document.getElementById("team").className === "active") { | |
− | + | return; | |
− | + | } else{ | |
− | + | document.getElementById("team").style.borderWidth = "0px 1px"; | |
− | + | }; | |
} | } | ||
function selectOutreach() { | function selectOutreach() { | ||
− | + | if (document.getElementById("outreach").className === "active") { | |
− | + | return; | |
− | + | } else{ | |
− | + | document.getElementById("outreach").style.borderWidth = "0px 1px"; | |
− | + | }; | |
} | } | ||
function selectNotebook() { | function selectNotebook() { | ||
− | + | if (document.getElementById("notebook").className === "active") { | |
− | + | return; | |
− | + | } else{ | |
− | + | document.getElementById("notebook").style.borderWidth = "0px 1px"; | |
− | + | }; | |
} | } | ||
function deselectProject() { | function deselectProject() { | ||
− | + | if (document.getElementById("project").className === "active") { | |
− | + | return; | |
− | + | } else{ | |
− | + | document.getElementById("project").style.borderWidth = "0px"; | |
− | + | }; | |
} | } | ||
function deselectTeam() { | function deselectTeam() { | ||
− | + | if (document.getElementById("team").className === "active") { | |
− | + | return; | |
− | + | } else{ | |
− | + | document.getElementById("team").style.borderWidth = "0px"; | |
− | + | }; | |
} | } | ||
function deselectOutreach() { | function deselectOutreach() { | ||
− | + | if (document.getElementById("outreach").className === "active") { | |
− | + | return; | |
− | + | } else{ | |
− | + | document.getElementById("outreach").style.borderWidth = "0px"; | |
− | + | }; | |
} | } | ||
function deselectNotebook() { | function deselectNotebook() { | ||
− | + | if (document.getElementById("notebook").className === "active") { | |
− | + | return; | |
− | + | } else{ | |
− | + | document.getElementById("notebook").style.borderWidth = "0px"; | |
− | + | }; | |
} | } | ||
</script> | </script> |
Revision as of 11:27, 17 August 2015