Difference between revisions of "Template:ETH Zurich"
m |
m |
||
Line 9: | Line 9: | ||
<script type="text/javascript" src="https://2015.igem.org/Template:ETH_Zurich/getElements.js?action=raw&ctype=text/javascript"></script> | <script type="text/javascript" src="https://2015.igem.org/Template:ETH_Zurich/getElements.js?action=raw&ctype=text/javascript"></script> | ||
<link rel="stylesheet" type="text/css" href="https://2015.igem.org/Template:ETH_Zurich/template.css?action=raw&ctype=text/css" /> | <link rel="stylesheet" type="text/css" href="https://2015.igem.org/Template:ETH_Zurich/template.css?action=raw&ctype=text/css" /> | ||
− | |||
− | |||
<script> | <script> | ||
Line 102: | Line 100: | ||
width = parseInt(width); | width = parseInt(width); | ||
if (width < 1150) { | if (width < 1150) { | ||
+ | $('#sidemenuContainer').css('display','none'); | ||
+ | $('#mainContainer').css('width','initial'); | ||
+ | $('#menuContainer a').css('font-size','40px'); | ||
+ | $('#menuContainer li.sub').css('border-radius','20px 0px 0px 20px'); | ||
+ | $('#menuContainer li').css({'float':'clear','width':'440px','height':'60px'}); | ||
+ | $('#menuContainer li ul').css({'width':'440px','margin-left':'440px','margin-top':'-29px','float':'right','position':'absolute','border-radius':'0px 20px 20px 20px'}); | ||
+ | /* | ||
$('#menuContainer li').css('float', 'clear'); | $('#menuContainer li').css('float', 'clear'); | ||
$('#menuContainer li').css('width','440px'); | $('#menuContainer li').css('width','440px'); | ||
$('#menuContainer li').css('height','60px'); | $('#menuContainer li').css('height','60px'); | ||
$('#menuContainer li ul').css('width','440px'); | $('#menuContainer li ul').css('width','440px'); | ||
− | |||
− | |||
$('#menuContainer li ul').css('margin-left','440px'); | $('#menuContainer li ul').css('margin-left','440px'); | ||
$('#menuContainer li ul').css('margin-top','-29px'); | $('#menuContainer li ul').css('margin-top','-29px'); | ||
$('#menuContainer li ul').css('float','right'); | $('#menuContainer li ul').css('float','right'); | ||
$('#menuContainer li ul').css('position','absolute'); | $('#menuContainer li ul').css('position','absolute'); | ||
− | |||
− | |||
$('#menuContainer li ul').css('border-radius', '0px 20px 20px 20px'); | $('#menuContainer li ul').css('border-radius', '0px 20px 20px 20px'); | ||
+ | */ | ||
} else { | } else { | ||
$('#sidemenuContainer').removeAttr('style'); | $('#sidemenuContainer').removeAttr('style'); | ||
$('#menuContainer li').removeAttr('style'); | $('#menuContainer li').removeAttr('style'); | ||
− | |||
$('#mainContainer').removeAttr('style'); | $('#mainContainer').removeAttr('style'); | ||
$('#menuContainer li ul').removeAttr('style'); | $('#menuContainer li ul').removeAttr('style'); | ||
$('#menuContainer a').removeAttr('style'); | $('#menuContainer a').removeAttr('style'); | ||
$('#menuContainer li.sub').removeAttr('style'); | $('#menuContainer li.sub').removeAttr('style'); | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
} | } |
Revision as of 14:41, 18 August 2015