Template:Team:Cambridge/CAM 2012 TEMPLATE HEAD PROJECT

From 2012.igem.org

(Difference between revisions)
Line 36: Line 36:
function Swap(id,nu){
function Swap(id,nu){
  document.getElementById(id).src=MapAry[nu].src;
  document.getElementById(id).src=MapAry[nu].src;
 +
}
 +
 +
function ScrollBit(x, y){
 +
    window.scrollTo(100,900);
 +
}
}
Line 88: Line 93:
<script type="text/javascript">
<script type="text/javascript">
$(document).ready(function() {
$(document).ready(function() {
-
/*
 
-
    if(window.location.hash) {
 
-
  // Fragment exists
 
-
        $('html').scrollTop($($(this).attr('href')).position().top + 150)
 
-
 
-
        } else {
 
-
  // Fragment doesn't exist
 
 +
    ScrollBit();
-
      }*/
 
     var top = $('#cam_top_logos').offset().top - parseFloat($('#cam_top_logos').css('marginTop').replace(/auto/, 0));
     var top = $('#cam_top_logos').offset().top - parseFloat($('#cam_top_logos').css('marginTop').replace(/auto/, 0));
       $(window).scroll(function (event) {
       $(window).scroll(function (event) {

Revision as of 13:54, 26 September 2012


Previous iGEM teams have charaterised an impressive array of inducible promoters, along with other elements of biosensing circuitry... Read More