Difference between revisions of "Template:Sidebar"
Adelo Vieira (talk | contribs) |
Adelo Vieira (talk | contribs) |
||
Line 112: | Line 112: | ||
position: relative; | position: relative; | ||
top: -145px; | top: -145px; | ||
+ | margin-left: 1px; | ||
padding-left: 10px; | padding-left: 10px; | ||
− | |||
-webkit-user-select: none; | -webkit-user-select: none; | ||
user-select: none; | user-select: none; | ||
Line 306: | Line 306: | ||
$('#content').css('margin-left', '300px') | $('#content').css('margin-left', '300px') | ||
$('#left-navigation').css({'cssText':'margin-left:300px'}) | $('#left-navigation').css({'cssText':'margin-left:300px'}) | ||
− | |||
$('#footer').css('margin-left', '308px') | $('#footer').css('margin-left', '308px') | ||
} else { | } else { | ||
$('#content').css('margin-left', '180px') | $('#content').css('margin-left', '180px') | ||
$('#left-navigation').css({'cssText':'margin-left:180px'}) | $('#left-navigation').css({'cssText':'margin-left:180px'}) | ||
− | |||
$('#footer').css('margin-left', '180px') | $('#footer').css('margin-left', '180px') | ||
} | } | ||
Line 330: | Line 328: | ||
} | } | ||
− | + | function moveSidebarToBody() { | |
+ | document.body.appendChild(document.getElementById('MySidebar')) | ||
+ | } | ||
$(document).ready( function() { | $(document).ready( function() { | ||
$('#totalItems, #enteredItems').keyup(function(){ | $('#totalItems, #enteredItems').keyup(function(){ | ||
checkUser(); | checkUser(); | ||
− | + | moveSidebarToBody() | |
}); | }); | ||
checkUser(); | checkUser(); | ||
− | + | moveSidebarToBody() | |
}); | }); | ||
</script> | </script> |
Revision as of 14:53, 8 March 2021