Difference between revisions of "Template:Sidebar"
Adelo Vieira (talk | contribs) |
Adelo Vieira (talk | contribs) |
||
Line 238: | Line 238: | ||
</script> | </script> | ||
− | <nav role="navigation" style="position: fixed;" class="oculto"> | + | <nav id="MySidebar" role="navigation" style="position: fixed;" class="oculto"> |
<div id="menuToggle"> | <div id="menuToggle"> | ||
<!-- | <!-- | ||
Line 327: | Line 327: | ||
// $('body').css('background','blue'); | // $('body').css('background','blue'); | ||
// $('#hideThis').show(); | // $('#hideThis').show(); | ||
+ | } | ||
+ | } | ||
+ | |||
+ | function moveSidebarToBody() { | ||
+ | var newParent = document.body; | ||
+ | var oldParent = document.getElementById('MySidebar'); | ||
+ | |||
+ | while (oldParent.childNodes.length > 0) { | ||
+ | newParent.appendChild(oldParent.childNodes[0]); | ||
} | } | ||
} | } |
Revision as of 14:15, 8 March 2021