mirror of https://github.com/MISP/MISP
Fixed the annoying collapsing top bar
parent
2ddad51056
commit
51d83f8ceb
|
@ -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="glass"></div>
|
||||||
<div class="navbar navbar-inverse">
|
<div class="navbar navbar-inverse">
|
||||||
<div class="navbar-inner" style="border-radius: 10px;">
|
<div class="navbar-inner" style="border-radius: 10px;">
|
||||||
|
@ -185,6 +185,8 @@ window.onresize = resizeLogo;
|
||||||
|
|
||||||
function resizeLogo() {
|
function resizeLogo() {
|
||||||
var testElem = document.getElementById('fullLogo');
|
var testElem = document.getElementById('fullLogo');
|
||||||
|
var topBar = document.getElementById('topBar');
|
||||||
|
|
||||||
if (testElem != null) {
|
if (testElem != null) {
|
||||||
if ($(window).width() < 1400) {
|
if ($(window).width() < 1400) {
|
||||||
document.getElementById('fullLogo').style.display='none';
|
document.getElementById('fullLogo').style.display='none';
|
||||||
|
@ -195,5 +197,12 @@ function resizeLogo() {
|
||||||
document.getElementById('smallLogo').style.display='none';
|
document.getElementById('smallLogo').style.display='none';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($(window).width() < 1185) {
|
||||||
|
topBar.style.width = '1185px';
|
||||||
|
}
|
||||||
|
if ($(window).width() > 1184) {
|
||||||
|
topBar.style.width = '100%';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
Loading…
Reference in New Issue