Team:DTU-Denmark/Templates/Standard page begin
From 2011.igem.org
(Difference between revisions)
Line 67: | Line 67: | ||
</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> | ||
+ | |||
+ | <!-- Empty heading? - Then remove it.. --> | ||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function() { | ||
+ | if ("" == "</html>{{{1}}}<html>") { | ||
+ | $("#heading").remove(); | ||
+ | } | ||
+ | }); | ||
+ | </script> | ||
<!-- HTML CONTENT --> | <!-- HTML CONTENT --> |
Revision as of 18:52, 18 September 2011