Template:Paris/Menu

From 2008.igem.org

(Difference between revisions)
 
(260 intermediate revisions not shown)
Line 2: Line 2:
<style type="text/css">
<style type="text/css">
-
#menu {
+
body {
-
height: 208px;
+
background: #69c;
-
background: url(https://static.igem.org/mediawiki/2008/4/4c/Panoramique.jpg) no-repeat center;
+
}
}
-
#menu ul{
+
 
-
list-style: none;
+
#content {
-
padding-top: 11px;
+
padding: 0px 5px;
}
}
-
#menu li{
+
 
-
display: inline;
+
#p-logo a{
-
padding: 3px;
+
color: transparent;
-
border: none;
+
-
background: none;
+
}
}
-
#menu a {
+
 
-
font-size: 10pt;
+
h1.firstHeading {
-
font-family: Lucida Grande, Verdana, Arial, Sans-Serif;
+
display: none;
-
text-decoration: none;
+
-
color: #CFE4E7;
+
}
}
-
#menu a:hover {
+
 
-
color: #CFE4E7;
+
#menu {
 +
margin: 0;
 +
position: relative;
 +
left: 70px;
 +
top: -26px;
 +
padding: 0;
}
}
-
</style>
 
-
<center>
+
#menu ul {
-
<div id=menu>
+
margin: 0;
-
<ul>
+
padding: 0;
-
<li><a href="http://www.acapela-group.com/Greetings/sam-1-b9c43028fe727 "> sdfgsfd </a></li>
+
list-style: none;
-
</ul>
+
text-align: center;
-
</div>
+
-
</center>
+
-
</html><br>
+
-
<html>
+
-
<style type="text/css">
+
-
#nav, #nav ul {
+
-
position: relative;
+
-
margin: 0 auto; /* purpose: allow centering ul table */
+
-
padding: 0;
+
-
display: table /* purpose: ul doesn't stretch width 100% */
+
}
}
-
#nav li {
+
#menu li {
-
display: table-cell; /* purpose: li behaves like table-cell */
+
margin: 0;
-
position: relative; /* purpose: non-overlap li elements in ul */
+
padding: 0;
-
list-style: none; /* purpose: remove default html list-style */
+
display: inline;
}
}
-
#nav li a {
+
#menu li a {
-
display: block; /* purpose: non-overlap div on a */
+
margin: 0;
-
margin: 0 1px 0 0; /* purpose: spacing main menu items */
+
padding: 0 8px;
-
padding: 4px 16px;
+
font: 1.5em Arial, sans-serif;
-
background-color: #649cd7;
+
color: white;
-
color: #FFF;
+
text-decoration: none;
-
text-align: center;
+
border: dashed 1px transparent;
-
text-decoration: none; /* purpose: remove underline from a */
+
-
font: bold 13px arial;
+
}
}
-
#nav li a:hover {
+
#menu li a:hover, #menu li a:focus, #menu li a:active {
-
background-color: #d4e2ef;
+
border: dashed 1px white;
-
color: black;
+
}
}
-
#nav div {
+
#menu li:not(:last-child) a:after {
-
position: absolute; /* purpose: li of div doesn't spread out */
+
padding-left: 8px;
-
display: none;
+
content: ">";
-
width: 10em;
+
-
opacity: 0.8;
+
-
filter: alpha(opacity=80);
+
-
border: 1px solid #5970B2;
+
-
background: #EAEBD8;
+
}
}
-
#nav span a, #nav div a {
+
#links {
-
position: relative;
+
float: right;
-
display: block; /* purpose: a's in div have same width */
+
margin: 1em;
-
margin: 0;
+
padding: 0.8em;
-
padding: 5px 10px;
+
border: dotted 1px #69c;
-
text-align: left;
+
width: 13em;
-
font: 11px arial;
+
background: #fff;
-
}
+
}
-
+
-
#nav span a:hover, #nav div a:hover {
+
-
background-color: #d4e2ef;
+
-
color: #000;
+
-
}
+
-
 
+
-
#nav span div {
+
-
position: relative;
+
-
margin: 0;
+
-
border: none; /* purpose: reset border to none */
+
-
border-top: 1px solid #5970B2; /* purpose: add a seperator */
+
-
border-bottom: 1px solid #5970B2; /* purpose: add a seperator */
+
-
opacity: 1.0; /* purpose: opacity already 0.8 by #nav div */
+
-
filter: alpha(opacity=100); /* purpose: opacity already 80 by #nav div */
+
-
}
+
-
+
-
#nav span div a {
+
-
text-indent: 10px;
+
-
}
+
-
+
-
#nav span div span div a {
+
-
text-indent: 20px;
+
-
}
+
-
#nav .expand {
+
#links span {
-
background-image: url('https://static.igem.org/mediawiki/2008/e/ef/Icon-expand.png');
+
font-weight: bold;
-
background-repeat: no-repeat;
+
-
background-position: 95% 50%;
+
}
}
-
#nav .collapse {
+
.button {
-
background-image: url('https://static.igem.org/mediawiki/2008/c/cd/Icon-collapse.png');
+
font-size: 1.1em;
-
background-repeat: no-repeat;
+
font-weight: bold;
-
background-position: 95% 50%;
+
cursor:pointer;
 +
display: inline;
 +
color: white;
 +
background: #69c;
 +
margin: 10px;
 +
padding: 4px 8px
 +
border: 10px solid f00;
 +
-webkit-border-radius: 5px;
 +
-moz-border-radius: 5px
}
}
 +
 +
pre {font-size: 1.2em}
 +
span.keyword {color: #0000FF}
 +
span.comment {color: #228B22}
 +
span.string {color: #A020F0}
 +
span.untermstring {color: #B20000}
 +
span.syscmd {color: #B28C00}
</style>
</style>
-
<script type="text/javascript" src="http://student.kuleuven.be/~s0173901/scripts/jquery.js"></script>
 
<script type="text/javascript">
<script type="text/javascript">
 +
function toggle(layer){
 +
layer=document.getElementById(layer);
 +
layer.style.display=((layer.style.display=="none") ? "block" : "none");
 +
}
-
function ddmsie() {
+
function toggleNext(el) {
-
$("#nav ul").css('display', 'inline-block');
+
var next=el.nextSibling;
-
$("#nav li").css('display', 'inline');
+
while(next.nodeType != 1) next=next.nextSibling;
-
$("#nav a").css('display', 'inline-block');
+
next.style.display=((next.style.display=="none") ? "block" : "none");
-
$("#nav a").hover(function () {$(this).css('background-color', '#d4e2ef')},
+
-
function () {$(this).css('background-color', '#649cd7')});
+
-
$("#nav div a").css('display', 'block');
+
-
$("#nav div").css('left', '0');
+
-
$("#nav div").css('top', '100%');
+
-
$("#nav span div").css('top', '0');
+
}
}
-
function ddmozilla() {
+
function getElementsByTagAndClassName(tag,cname) {
-
+
var tags=document.getElementsByTagName(tag);
 +
var cEls=new Array();
 +
for (i=0; i<tags.length; i++) {
 +
  var rE = new RegExp("(^|\s)" + cname + "(\s|$)");
 +
  if (rE.test(tags[i].className)) {
 +
  cEls.push(tags[i]);
 +
  }
 +
  }
 +
return cEls;
}
}
-
+
function toggleNextByTagAndClassName(tag,cname) {
-
function ddnav() {
+
var ccn="button";
-
$("#nav li").hover(
+
clickers=getElementsByTagAndClassName(tag,cname);
-
function () {
+
for (i=0; i<clickers.length; i++) {
-
$(this).find("div:first").css('display', 'inline');},
+
  clickers[i].className+=" "+ccn;
-
function () {
+
  clickers[i].onclick=function() {toggleNext(this)}
-
$(this).find("div:first").css('display', 'none');}
+
  toggleNext(clickers[i]);
-
);
+
}
-
+
}
-
$("#nav span > a").toggle(
+
window.onload=function(){
-
function () {
+
toggleNextByTagAndClassName('div','toggleswitch');
-
$(this).removeClass("#nav expand").addClass("#nav collapse");
+
-
$(this).css('background-color', '#99AAFF');
+
-
$(this).parent().find("div:first").css('display', 'block');},
+
-
function () {
+
-
$(this).removeClass("#nav collapse").addClass("#nav expand");
+
-
$(this).hover(
+
-
function () {
+
-
$(this).css('background-color', '#d4e2ef');},
+
-
function () {
+
-
$(this).css('background-color', '#649cd7');}
+
-
);
+
-
$(this).parent().find("div:first").css('display', 'none');
+
-
}
+
-
).addClass("#nav expand");
+
}
}
-
 
-
$(function () {
 
-
if(jQuery.browser.msie) ddmsie();
 
-
if(jQuery.browser.mozilla) ddmozilla();
 
-
ddnav();
 
-
});
 
</script>
</script>
-
<div align="center" id="nav">
+
<div id="header"><a href="https://2008.igem.org/Team:Paris"><img src="https://static.igem.org/mediawiki/2008/c/c7/ParisBanner.jpg"/></a></div>
-
<ul>
+
<div id="menu"><ul>
-
<li>
+
<li><a href="https://2008.igem.org/Team:Paris/Project">Project</a></li>
-
<a href="https://2008.igem.org/Team:Paris">Home</a>
+
<li><a href="https://2008.igem.org/Team:Paris/Analysis">Analysis</a></li>
-
</li>
+
<li><a href="https://2008.igem.org/Team:Paris/Construction">Construction</a></li>
-
<li>
+
<li><a href="https://2008.igem.org/Team:Paris/Characterization">Characterization</a></li>
-
<a>The Team</a>
+
<li><a href="https://2008.igem.org/Team:Paris/Perspectives">Perspectives</a></li>
-
<div>
+
</ul></div>
-
<a href="https://2008.igem.org/Team:Paris/Team">Presentation</a>
+
</html>
-
<a href="https://2008.igem.org/Team:Paris/Team/Students">Students</a>
+
{|cellspacing="5" cellpadding="10" style="margin-top: 3px; background:#649CD7; width: 965px;"
-
<a href="https://2008.igem.org/Team:Paris/Team/Instructors">Instructors</a>
+
|-valign="top"
-
<a href="https://2008.igem.org/Team:Paris/Team/Adisors">Advisors</a>
+
|style="background:#fff"|
-
</div>
+
-
</li>
+
-
<li>
+
-
<a>The Project</a>
+
-
<div>
+
-
<a href="https://2008.igem.org/Team:Paris/Project">Summary</a>
+
-
<span>
+
-
<a>The Modules</a>
+
-
<div>
+
-
<a href="https://2008.igem.org/Team:Paris/Project/Oscillations">Oscillations</a>
+
-
<a href="https://2008.igem.org/Team:Paris/Project/FIFO">FIFO</a>
+
-
<a href="https://2008.igem.org/Team:Paris/Project/Synchronization">Synchronization</a>
+
-
</div>
+
-
</span>
+
-
<a href="https://static.igem.org/mediawiki/2008/7/78/IGEM_Paris_2008_project.pdf">More...</a>
+
-
</div>
+
-
</li>
+
-
<li>
+
-
<a>Parts Submitted to the Registry</a>
+
-
<div>
+
-
<a href="https://2008.igem.org/Team:Paris/Parts">Parts</a>
+
-
                        <a href="https://2008.igem.org/Team:Paris/Parts/Plastest">Measurement</a>
+
-
</div>
+
-
</li>
+
-
<li>
+
-
<a>Modeling</a>
+
-
<div>
+
-
<a href="https://2008.igem.org/Team:Paris/Modeling#Introduction">Modeling</a>
+
-
                        <a href="https://2008.igem.org/Team:Paris/Modeling/linear_approach">Linear approach</a>
+
-
                <a href="https://2008.igem.org/Team:Paris/Modeling/hill_approach">Hill approach</a>
+
-
                        <a href="https://2008.igem.org/Team:Paris/Modeling/Roadmap">Notebook</a>
+
-
 
+
-
</div>
+
-
</li>
+
-
<li>
+
-
<a>Notebook</a>
+
-
<div>
+
-
<a href="https://2008.igem.org/Team:Paris/Notebook">Calendar</a>
+
-
<a href="https://2008.igem.org/Team:Paris/Notebook/Freezer">Freezer</a>
+
-
                        <a href="https://2008.igem.org/Team:Paris/Notebook/Oligo">Oligos</a>
+
-
                        <a href="https://2008.igem.org/Team:Paris/Notebook/Protocols">Protocols</a>
+
-
</div>
+
-
</li>
+
-
<li>
+
-
<a>Links</a>
+
-
<div>
+
-
<a href="http://igem-paris.org">iGEM Paris</a>
+
-
                        <a href="http://biosynthetique.free.fr/">SynBioSys</a>
+
-
 
+
-
</div>
+
-
</li>
+
-
</ul>
+
-
</div>
+
-
</html><br>
+

Latest revision as of 07:30, 30 October 2008