Team:SDU-Denmark/core/header

From 2013.igem.org

(Difference between revisions)
Line 2: Line 2:
<link rel="stylesheet" href="https://2013.igem.org/Team:SDU-Denmark/core/stylesheet?action=raw&ctype=text/css" type="text/css" />
<link rel="stylesheet" href="https://2013.igem.org/Team:SDU-Denmark/core/stylesheet?action=raw&ctype=text/css" type="text/css" />
<link rel="stylesheet" href="https://2013.igem.org/Team:SDU-Denmark/core/BasicStyles?action=raw&ctype=text/css" type="text/css" />
<link rel="stylesheet" href="https://2013.igem.org/Team:SDU-Denmark/core/BasicStyles?action=raw&ctype=text/css" type="text/css" />
 +
<script src="https://2013.igem.org/Team:SDU-Denmark/core/scripts?action=raw" type="text/javascript" ></script>
-
<script type="text/javascript">
 
-
    function sticky_relocate() {
 
-
        var viewportHeight = $(window).height();
 
-
        var totalPageHeight = $(document).height();
 
-
        if (totalPageHeight > viewportHeight) {
 
-
            $(".MainLayout").css("margin-bottom", "100px");
 
-
        }
 
-
        else {
 
-
            $(".MainLayout").css("margin-bottom", "0");
 
-
        }
 
-
 
-
        var window_top = $(window).scrollTop();
 
-
        var div_top = $('#sticky-anchor').offset().top;
 
-
        if (window_top > div_top) {
 
-
            $('.top').addClass('stick');
 
-
            $(".topMargin").css("margin-top", "113px");
 
-
        } else {
 
-
            $('.top').removeClass('stick');
 
-
            $(".topMargin").css("margin-top", "25px");
 
-
        }
 
-
    }
 
-
 
-
    $(document).ready(function () {
 
-
        $('.left-menu').children().first().children().last().css('color', '');
 
-
        $('.left-menu').children().first().children().last().css('font-size', '10px');
 
-
        $('#menubar').bind("mouseover", function () {
 
-
            $(this).css("background", "transparent");
 
-
            $('#menubar').css("background", "transparent");
 
-
        });
 
-
        $(window).scroll(sticky_relocate);
 
-
        $('#btnMenu, .menuPopup, #btnMenu2').hover(
 
-
          function () {
 
-
              $('.menuPopup').show();
 
-
          },
 
-
          function () {
 
-
              $('.menuPopup').hide();
 
-
          }
 
-
        );
 
-
    });
 
-
</script>
 
<div class="BackgroundLayout">
<div class="BackgroundLayout">

Revision as of 10:00, 11 August 2013