Difference between revisions of "Team:Oxford/GavHomepage"

Line 20: Line 20:
 
}
 
}
  
function jump(h)
+
function scrollDown()
 
{
 
{
alert();
+
window.location = (""+window.location).replace(/#[A-Za-z0-9_]*$/,'')+"#video"
    var url = location.href;              //Save down the URL without hash.
+
    location.href = "#"+h;                //Go to the target element.
+
    history.replaceState(null,null,url);  //Don't like hashes. Changing it back.
+
 
}​
 
}​
  
Line 32: Line 29:
 
<title>Oxford iGEM 2016 Homepage</title>
 
<title>Oxford iGEM 2016 Homepage</title>
  
<body class="mainBody" style="background-color:#FFF;">
+
<body class="mainBody" style="background-color:#FFF;" onscroll="scrollDown()">
  
 
<div id="banner" style="text-align: center;
 
<div id="banner" style="text-align: center;
     background-image: url(https://static.igem.org/mediawiki/2016/3/3a/T--Oxford--Radcam2.jpg); height:calc(100vh - 88px);" onclick="alert()">
+
     background-image: url(https://static.igem.org/mediawiki/2016/3/3a/T--Oxford--Radcam2.jpg); height:calc(100vh - 88px);">
  
 
<div class="table_style">
 
<div class="table_style">

Revision as of 20:55, 26 September 2016

iGEM Oxford 2016 - Cure for Copper

Oxford iGEM 2016 Homepage