Team:TU-Eindhoven/Templates/header

From 2012.igem.org

(Difference between revisions)
 
(9 intermediate revisions not shown)
Line 11: Line 11:
     background-repeat:repeat-y
     background-repeat:repeat-y
     }
     }
-
h1, h2, h3, h4, h5{font-family:"Vollkorn", serif; font-size:200%; line-height:35px; border-bottom:0; margin-bottom:5px; border-top:1px dotted #e3e3e3; margin-top:10px; padding-top:30px; font-weight:normal;}
 
-
h2.noline{ border-top:0; margin-top:0; padding-top:0; margin-bottom:0; line-height:20px; padding-top:2px; font-size:20px;}
 
-
h2.topheader{border-top:0; padding-top:0; margin-top:5px;}
 
</style>
</style>
Line 169: Line 166:
     });
     });
$('a.image').lightBox();
$('a.image').lightBox();
 +
 +
var top = $('#accmenu').offset().top - parseFloat($('#accmenu').css('margin-top').replace(/auto/, 0));
 +
 +
$(window).scroll(function () {
 +
  // what the y position of the scroll is
 +
  var y = $(window).scrollTop();
 +
 +
  // whether that's below the form
 +
  if(y >= top) {
 +
    // if so, add the fixed class
 +
    $('#accmenu').addClass('fixed');
 +
  } else {
 +
    // otherwise, remove it
 +
    $('#accmenu').removeClass('fixed');
 +
  }
 +
});
 +
});
});
</script>
</script>
Line 183: Line 197:
<!-- start header -->
<!-- start header -->
-
<div id="header"><!--<img align="center" style="margin-bottom:0px; padding:0;" src="https://static.igem.org/mediawiki/2012/b/b1/EindhovenHeader.png" usemap="#headermap" alt="iGEM TU/e 2012">--> </div>  
+
<div id="header" class="clickableDiv">
-
<map name="headermap">
+
    <a href="https://2012.igem.org/Team:TU-Eindhoven">&nbsp;</a>
-
              <area shape="rect" coords="10,30,250,240" href="https://2012.igem.org/Team:TU-Eindhoven" />
+
</div>
-
        </map>
+
<script type="text/javascript">
 +
$(".clickableDiv").click(function(){
 +
    window.location=$(this).find("a").attr("href");
 +
    return false;
 +
});
 +
</script>
<!-- end header -->
<!-- end header -->
Line 192: Line 211:
<div id="left">  
<div id="left">  
</html>
</html>
-
{{:Team:TU-Eindhoven/menu
+
{{:Team:TU-Eindhoven/menu}}
-
}}
+
<html>
<html>
</div>
</div>
Line 200: Line 218:
<!-- begin right column -->
<!-- begin right column -->
<div id="right">
<div id="right">
-
 
+
</html>
-
<!-- begin Under Construction notice -->
+
-
<p style="margin: 10px; padding: 5px; border: 2px solid red">
+
-
Please note: This page is still heavily under development, so many links will not yet function.
+
-
</p>
+
-
<!-- end Under Construction notice -->
+

Latest revision as of 10:42, 25 September 2012