Team:DTU-Denmark/Templates/Standard page begin
From 2011.igem.org
(Difference between revisions)
(34 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
- | |||
- | |||
- | |||
<!-- STYLESHEET --> | <!-- STYLESHEET --> | ||
Line 11: | Line 8: | ||
<!-- JAVASCRIPTS --> | <!-- JAVASCRIPTS --> | ||
<!-- *********** --> | <!-- *********** --> | ||
+ | |||
+ | <!-- ie9.js (fixes all Internet Explorer browsers older than ie9) --> | ||
+ | <!--[if lt IE 9]> | ||
+ | <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script> | ||
+ | <![endif]--> | ||
<!-- jQuery Tools (slider) --> | <!-- jQuery Tools (slider) --> | ||
- | <script src="http://cdn.jquerytools.org/1.2.5/jquery.tools.min.js"></script> | + | <script src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></script> |
+ | <script> | ||
+ | $(function() { | ||
+ | // initialize scrollable | ||
+ | $(".scrollable").scrollable().navigator(); | ||
+ | }); | ||
+ | </script> | ||
<!-- Navigation scroll follow --> | <!-- Navigation scroll follow --> | ||
Line 24: | Line 32: | ||
$(".navigation").removeClass("stickToTop"); | $(".navigation").removeClass("stickToTop"); | ||
} | } | ||
- | if (scrollPos > | + | if (scrollPos > 180) { |
$(".toc").addClass("stickBelowNavigation"); | $(".toc").addClass("stickBelowNavigation"); | ||
} else { | } else { | ||
Line 51: | Line 59: | ||
function() { | function() { | ||
// Hover over | // Hover over | ||
- | $(this).find("ul.subnav"). | + | $(this).parent().find("ul.subnav").hide(); |
+ | $(this).find("ul.subnav").show(); | ||
// Hover out | // Hover out | ||
$(this).hover( | $(this).hover( | ||
Line 57: | Line 66: | ||
}, | }, | ||
function(){ | function(){ | ||
- | $(this).find("ul.subnav"). | + | $(this).find("ul.subnav").hide(); |
} | } | ||
); | ); | ||
}, | }, | ||
function(){ | function(){ | ||
- | $(this).find("ul.subnav"). | + | $(this).find("ul.subnav").hide(); |
} | } | ||
Line 76: | Line 85: | ||
$("p").filter( function() { | $("p").filter( function() { | ||
return $.trim($(this).html()) == ''; | return $.trim($(this).html()) == ''; | ||
- | }).remove() | + | }).remove(); |
+ | }); | ||
+ | </script> | ||
+ | |||
+ | <!-- Remove "team" from the menubar --> | ||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function() { | ||
+ | $("menubar > ul > li:last-child").remove(); | ||
}); | }); | ||
</script> | </script> | ||
Line 88: | Line 104: | ||
}); | }); | ||
</script> | </script> | ||
+ | |||
<!-- HTML CONTENT --> | <!-- HTML CONTENT --> |
Latest revision as of 22:32, 21 September 2011