Template:Team:DukeNB/CSS

From 2014.igem.org

(Difference between revisions)
Line 51: Line 51:
height:100px;
height:100px;
}
}
-
 
-
/* our menu styles - must be fixed. */
 
-
#sticky_cal_wrap { width:100%;}
 
-
#sticky_cal { width:100%;}
 
-
 
-
/* anchors for each date */
 
Line 63: Line 57:
</style>
</style>
-
 
-
<script>
 
-
$(function() {
 
-
 
-
    // grab the initial top offset of the navigation
 
-
    var sticky_cal_offset_top = $('#sticky_cal').offset().top;
 
-
   
 
-
    // our function that decides whether the navigation bar should have "fixed" css position or not.
 
-
    var sticky_navigation = function(){
 
-
        var scroll_top = $(window).scrollTop(); // our current vertical position from the top
 
-
       
 
-
        // if we've scrolled more than the navigation, change its position to fixed to stick to top,
 
-
        // otherwise change it back to relative
 
-
        if (scroll_top > sticky_cal_offset_top) {
 
-
            $('#sticky_cal').css({ 'position': 'fixed', 'top':60px, 'left':0 });
 
-
        } else {
 
-
            $('#sticky_cal').css({ 'position': 'relative' });
 
-
        } 
 
-
    };
 
-
   
 
-
    // run our function on load
 
-
    sticky_navigation();
 
-
   
 
-
    // and run it again every time you scroll
 
-
    $(window).scroll(function() {
 
-
        sticky_cal();
 
-
    });
 
-
 
-
});
 
-
</script>
 

Revision as of 20:35, 28 July 2014

April 2014
Month 1 of Project
sun mon tue wed thu fri sat
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
May 2014
Month 2 of Project
sun mon tue wed thu fri sat
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
June 2014
Month 3 of Project
sun mon tue wed thu fri sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
July 2014
Month 4 of Project
sun mon tue wed thu fri sat
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
August 2014
Month 5 of Project
sun mon tue wed thu fri sat
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
September 2014
Month 6 of Project
sun mon tue wed thu fri sat
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
October 2014
Month 7 of Project
sun mon tue wed thu fri sat
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31