Fixed the annoying collapsing top bar

pull/304/merge
iglocska 2014-08-01 15:41:48 +02:00
parent 2ddad51056
commit 51d83f8ceb
1 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,4 @@
<div class="navbar-wrapper header <?php echo $debugMode;?>" style="height:42px;">
<div id = "topBar" class="navbar-wrapper header <?php echo $debugMode;?>" style="height:42px;width:100%">
<div class="glass"></div>
<div class="navbar navbar-inverse">
<div class="navbar-inner" style="border-radius: 10px;">
@ -185,6 +185,8 @@ window.onresize = resizeLogo;
function resizeLogo() {
var testElem = document.getElementById('fullLogo');
var topBar = document.getElementById('topBar');
if (testElem != null) {
if ($(window).width() < 1400) {
document.getElementById('fullLogo').style.display='none';
@ -195,5 +197,12 @@ function resizeLogo() {
document.getElementById('smallLogo').style.display='none';
}
}
if ($(window).width() < 1185) {
topBar.style.width = '1185px';
}
if ($(window).width() > 1184) {
topBar.style.width = '100%';
}
}
</script>