Team:DTU-Denmark/Templates/Standard page begin
From 2011.igem.org
(Difference between revisions)
(43 intermediate revisions not shown) | |||
Line 8: | 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 20: | Line 31: | ||
} else { | } else { | ||
$(".navigation").removeClass("stickToTop"); | $(".navigation").removeClass("stickToTop"); | ||
+ | } | ||
+ | if (scrollPos > 180) { | ||
+ | $(".toc").addClass("stickBelowNavigation"); | ||
+ | } else { | ||
+ | $(".toc").removeClass("stickBelowNavigation"); | ||
} | } | ||
}); | }); | ||
Line 43: | 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 49: | 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 62: | Line 79: | ||
</script> | </script> | ||
- | <!-- Empty heading? - Then remove it.. --> | + | <!-- iGem wiki hacks --> |
- | + | <!-- Remove all empty <p> tags --> | |
- | + | <script type="text/javascript"> | |
- | + | $(document).ready(function() { | |
- | + | $("p").filter( function() { | |
- | + | return $.trim($(this).html()) == ''; | |
- | + | }).remove(); | |
- | + | }); | |
+ | </script> | ||
+ | |||
+ | <!-- Remove "team" from the menubar --> | ||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function() { | ||
+ | $("menubar > ul > li:last-child").remove(); | ||
+ | }); | ||
+ | </script> | ||
+ | |||
+ | <!-- Empty heading? - Then remove it.. --> | ||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function() { | ||
+ | if ("" == "</html>{{{1}}}<html>") { | ||
+ | $("#heading").remove(); | ||
+ | } | ||
+ | }); | ||
+ | </script> | ||
+ | |||
<!-- HTML CONTENT --> | <!-- HTML CONTENT --> | ||
Line 86: | Line 121: | ||
<div id="heading"> | <div id="heading"> | ||
<div class="centering"> | <div class="centering"> | ||
- | + | <h1> | |
- | <h1>{{{1}}}</h1> | + | </html> |
- | + | {{{1}}} | |
+ | <html> | ||
+ | </h1> | ||
</div> | </div> | ||
</div> | </div> | ||
Line 95: | Line 132: | ||
<div id="innercontent"> | <div id="innercontent"> | ||
<div class="centering"> | <div class="centering"> | ||
- | <div class="whitebox"> | + | <div class="whitebox article"> |
</html> | </html> |
Latest revision as of 22:32, 21 September 2011