Difference between revisions of "Template:DTU-Denmark"

Line 127: Line 127:
  
 
$(document).ready(function() {
 
$(document).ready(function() {
   if ($(window).width()< 800 || isMobileDevice()) {
+
   if ($(window).width()< 800 ) {
 
     //if the window is less than 700 wide then turn on footer as coloumn.
 
     //if the window is less than 700 wide then turn on footer as coloumn.
 
smallscreennavbar();
 
smallscreennavbar();
Line 136: Line 136:
 
});
 
});
  
function isMobileDevice() {
 
    return (typeof window.orientation !== "undefined") || (navigator.userAgent.indexOf('IEMobile') !== -1);
 
};
 
  
 
$(window).resize(function() {
 
$(window).resize(function() {

Revision as of 13:03, 5 September 2019