Team:Heidelberg/Templates/StartPage

From 2013.igem.org

(Difference between revisions)
m
m
Line 5: Line 5:
<script type="text/javascript">
<script type="text/javascript">
<!--
<!--
-
function check_size() {
 
-
var viewportWidth = document.documentElement.clientWidth;
 
-
var top = document.getElementById("top-matter");
 
-
var top_wiki = document.getElementById("top-section");
 
-
var goto_top = document.getElementById("goto-top");
 
-
var tour_navi = document.getElementById("tour-navi");
 
-
if (viewportWidth >= 1024) {
 
-
top.style.position = "fixed";
 
-
top_wiki.style.position = "fixed";
 
-
goto_top.style.marginLeft = "750px";
 
-
tour_navi.style.marginLeft = "650px";
 
-
} else {
 
-
top_wiki.style.position = "absolute";
 
-
top.style.position = "absolute";
 
-
goto_top.style.marginLeft = (viewportWidth - 270) + "px";
 
-
tour_navi.style.marginLeft = (viewportWidth - 370) + "px";
 
-
}
 
-
}
 
window.onload = function() {
window.onload = function() {
-
check_size();
 
var drop_lists = document.getElementsByClassName("drop-navi-left");
var drop_lists = document.getElementsByClassName("drop-navi-left");
for (var i = 0; i < drop_lists.length; i++) {
for (var i = 0; i < drop_lists.length; i++) {
Line 41: Line 22:
}
}
}
}
-
window.onresize = check_size;
 
function start_tour() {
function start_tour() {
var tour_navi = document.getElementById("tour-navi");
var tour_navi = document.getElementById("tour-navi");

Revision as of 10:59, 19 August 2013

PHILOSOPHER'S STONE

igem-2013

{{{1}}}

Go to top