Difference between revisions of "Template:DTU-Denmark"

Line 133: Line 133:
 
   } else {
 
   } else {
 
     largescreennavbar();
 
     largescreennavbar();
 +
}
 +
 +
if ($(window).width() < 1100) {
 +
    //if the window is less than 700 wide then turn on footer as coloumn.
 +
$('nav').addClass('black');
 +
 +
  } else {
 +
    $('nav').removeClass('black');
 
}
 
}
 
});
 
});
Line 145: Line 153:
 
   } else {
 
   } else {
 
     largescreennavbar();
 
     largescreennavbar();
 +
}
 +
 +
  if (windowsize < 1100) {
 +
    //if the window is less than 700 wide then turn on footer as coloumn.
 +
$('nav').addClass('black');
 +
 +
  } else {
 +
    $('nav').removeClass('black');
 
}
 
}
 
});
 
});
 +
 +
 +
  
 
function smallscreennavbar() {
 
function smallscreennavbar() {
Line 421: Line 440:
 
         text-align: center;
 
         text-align: center;
 
     }
 
     }
 +
}
 +
 +
@media screen and (max-width: 1100px) {
 +
   
 
}
 
}
  

Revision as of 13:35, 5 September 2019