Team:St Andrews/Template:Header

From 2012.igem.org

(Difference between revisions)
(JS hack moves MediaWiki menubar to somewhere visible (top of globalWrapper))
Line 12: Line 12:
</head>
</head>
 +
<script type="text/javascript">
 +
// HAX
 +
function onBodyLoad () {
 +
    // Move the terrible MediaWiki menus to the global wrapper where they're actually visible.
 +
    for (i=0;i<2;i++) { document.getElementById('globalWrapper').appendChild(document.getElementById('menubar')) }
 +
    // (Duplicate ids that we can't change are so fun to work around. The first iter moves the left side bar
 +
    //  and the second the right side bar...)
 +
}
 +
</script>
-
<body>
+
<body onload="onBodyLoad()">
   <div class="navbar navbar-fixed-top">
   <div class="navbar navbar-fixed-top">
     <div class="navbar-inner">
     <div class="navbar-inner">

Revision as of 10:52, 6 June 2012