Team:Warsaw/Templates/2014Page
From 2014.igem.org
(Difference between revisions)
(32 intermediate revisions not shown) | |||
Line 12: | Line 12: | ||
/* Wiki hacks */ | /* Wiki hacks */ | ||
- | #top | + | |
+ | #top { | ||
display: none !important; | display: none !important; | ||
} | } | ||
- | #top { | + | #top-section { |
- | + | height: 20px !important; | |
+ | border: none !important; | ||
+ | } | ||
+ | #menubar, | ||
+ | #menubar:hover { | ||
+ | background: none !important; | ||
+ | } | ||
+ | #menubar ul li a { | ||
+ | color: #234887 !important; | ||
+ | } | ||
+ | .right-menu li a { | ||
+ | background: none !important; | ||
} | } | ||
#content { | #content { | ||
Line 47: | Line 59: | ||
font-family: 'Droid Sans', sans-serif; | font-family: 'Droid Sans', sans-serif; | ||
} | } | ||
+ | |||
+ | ul.flags { | ||
+ | display: block; | ||
+ | list-style: none; | ||
+ | padding: 0; | ||
+ | width: 870px; | ||
+ | margin: 0 auto; | ||
+ | padding-top: 10px; | ||
+ | height: 20px; | ||
+ | text-align: right; | ||
+ | } | ||
+ | ul.flags li { | ||
+ | display: inline-block; | ||
+ | width: 30px; | ||
+ | height: 20px; | ||
+ | padding: 0; | ||
+ | margin-left: 5px; | ||
+ | cursor: pointer; | ||
+ | } | ||
+ | |||
.celulare-logo { | .celulare-logo { | ||
width: 870px; | width: 870px; | ||
margin: 0 auto; | margin: 0 auto; | ||
- | margin-top: | + | margin-top: 5px; |
margin-bottom: 30px; | margin-bottom: 30px; | ||
height: 140px; | height: 140px; | ||
Line 57: | Line 89: | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
} | } | ||
+ | |||
+ | |||
+ | |||
+ | |||
ul.main-menu { | ul.main-menu { | ||
display: block; | display: block; | ||
Line 68: | Line 104: | ||
padding-left: 60px; | padding-left: 60px; | ||
margin-bottom: 20px; | margin-bottom: 20px; | ||
+ | z-index: 10; | ||
} | } | ||
Line 121: | Line 158: | ||
ul.main-menu > li > ul > li { | ul.main-menu > li > ul > li { | ||
display: block; | display: block; | ||
- | + | height: auto; | |
} | } | ||
/* Links */ | /* Links */ | ||
Line 165: | Line 202: | ||
top: 5px; | top: 5px; | ||
left: 5px; | left: 5px; | ||
+ | } | ||
+ | |||
+ | .lang-en, .lang-pl, .lang-fr, .lang-ne { | ||
+ | display: none; | ||
} | } | ||
</style> | </style> | ||
+ | |||
+ | <script> | ||
+ | function setCookie(cname, cvalue, exdays) { | ||
+ | var d = new Date(); | ||
+ | d.setTime(d.getTime() + (exdays*24*60*60*1000)); | ||
+ | var expires = "expires="+d.toUTCString(); | ||
+ | document.cookie = cname + "=" + cvalue + "; " + expires; | ||
+ | } | ||
+ | |||
+ | function getCookie(cname) { | ||
+ | var name = cname + "="; | ||
+ | var ca = document.cookie.split(';'); | ||
+ | for(var i=0; i<ca.length; i++) { | ||
+ | var c = ca[i]; | ||
+ | while (c.charAt(0)==' ') c = c.substring(1); | ||
+ | if (c.indexOf(name) != -1) return c.substring(name.length,c.length); | ||
+ | } | ||
+ | return ''; | ||
+ | } | ||
+ | |||
+ | var allLanguages = ['pl', 'en', 'fr', 'ne']; | ||
+ | |||
+ | function applyLanguage() { | ||
+ | var appliedLang = getCookie('lang'); | ||
+ | if (!appliedLang) { | ||
+ | appliedLang = 'pl'; | ||
+ | } | ||
+ | for (var i = 0; i < allLanguages.length; ++i) { | ||
+ | var elems = document.getElementsByClassName('lang-' + allLanguages[i]); | ||
+ | for (var j = 0; j < elems.length; ++j) { | ||
+ | if (allLanguages[i] === appliedLang) { | ||
+ | elems[j].style.display = 'block'; // set display block | ||
+ | } else { | ||
+ | elems[j].style.display = 'none'; | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | |||
+ | function changeAndGo(lang) { | ||
+ | setCookie('lang', lang, 1); | ||
+ | applyLanguage(); | ||
+ | location.href='https://2014.igem.org/Team:Warsaw'; | ||
+ | } | ||
+ | </script> | ||
</head> | </head> | ||
- | <body> | + | <body onload="applyLanguage()"> |
+ | <br><br> | ||
+ | <ul class="flags"> | ||
+ | <li style="background-image: url('https://static.igem.org/mediawiki/2014/f/fb/2014-iGEM-site-flag-pl.png')" | ||
+ | onclick="changeAndGo('pl');"></li> | ||
+ | <li style="background-image: url('https://static.igem.org/mediawiki/2014/4/48/2014-iGEM-site-flag-en.png')" | ||
+ | onclick="changeAndGo('en');"></li> | ||
+ | <li style="background-image: url('https://static.igem.org/mediawiki/2014/5/5e/2014-iGEM-site-flag-fr.png')" | ||
+ | onclick="changeAndGo('fr');"></li> | ||
+ | <li style="background-image: url('https://static.igem.org/mediawiki/2014/c/c9/2014-iGEM-site-flag-ne.png')" | ||
+ | onclick="changeAndGo('ne');"></li> | ||
+ | </ul> | ||
<div class="celulare-logo"></div> | <div class="celulare-logo"></div> | ||
<ul class="main-menu"> | <ul class="main-menu"> | ||
<!-- Menu items --> | <!-- Menu items --> | ||
<li> | <li> | ||
- | <a href="/Team:Warsaw/Project">Project</a> | + | <a href="https://2014.igem.org/Team:Warsaw">Project</a> |
+ | <ul> | ||
+ | <li><a href="https://2014.igem.org/Team:Warsaw/Project#background">Background</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:Warsaw/Project#proof_of_concept">Proof of concept</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:Warsaw/Project#detailed_explanation">Detailed explanation</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:Warsaw/Project#modelling">Modelling</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:Warsaw/Project#weeestudy">WEEE study</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:Warsaw/Project#safety">Safety</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:Warsaw/Project#possibilities_of_development">Possibilities of development</a> | ||
+ | </ul> | ||
</li> | </li> | ||
<li> | <li> | ||
<a href="/Team:Warsaw/Achievements">Achievements</a> | <a href="/Team:Warsaw/Achievements">Achievements</a> | ||
<ul> | <ul> | ||
- | <li><a href="/"> | + | <li><a href="https://2014.igem.org/Team:Warsaw/Achievements#parts">Parts</a></li> |
- | <li><a href="/"> | + | <li><a href="https://2014.igem.org/Team:Warsaw/Achievements#results">Results</a></li> |
+ | <li><a href="https://2014.igem.org/Team:Warsaw/Achievements#cooperation">Cooperation</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:Warsaw/Achievements#medal_criteria">Medal Criteria</a></li> | ||
+ | |||
</ul> | </ul> | ||
</li> | </li> | ||
Line 186: | Line 295: | ||
<a href="/Team:Warsaw/HP">HP</a> | <a href="/Team:Warsaw/HP">HP</a> | ||
<ul> | <ul> | ||
- | <li><a href="/"> | + | <li><a href="https://2014.igem.org/Team:Warsaw/HP#overview">Overview</a></li> |
- | <li><a href="/"> | + | <li><a href="https://2014.igem.org/Team:Warsaw/HP#lanthan_hospital">Lanthan Hospital</a></li> |
+ | <li><a href="https://2014.igem.org/Team:Warsaw/HP#science_festival">Science Festival</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:Warsaw/HP#media">Media</a></li> | ||
</ul> | </ul> | ||
</li> | </li> | ||
Line 193: | Line 304: | ||
<a href="/Team:Warsaw/EXTRAS">EXTRAS</a> | <a href="/Team:Warsaw/EXTRAS">EXTRAS</a> | ||
<ul> | <ul> | ||
- | <li><a href="/"> | + | <li><a href="https://2014.igem.org/Team:Warsaw/EXTRAS#bioprocess">Bioprocess</a></li> |
- | <li><a href="/"> | + | <li><a href="https://2014.igem.org/Team:Warsaw/EXTRAS#discussion">Discussion</a></li> |
+ | <li><a href="https://2014.igem.org/Team:Warsaw/EXTRAS#alternative_methods">Alternative methods</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:Warsaw/Notebook">Notebook</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:Warsaw/Protocoles">Protocoles</a></li> | ||
+ | |||
+ | |||
</ul> | </ul> | ||
</li> | </li> | ||
Line 200: | Line 316: | ||
<a href="/Team:Warsaw/Team">Team</a> | <a href="/Team:Warsaw/Team">Team</a> | ||
<ul> | <ul> | ||
- | <li><a href="/"> | + | <li><a href="https://2014.igem.org/Team:Warsaw/Team#members">Members</a></li> |
- | <li><a href="/"> | + | <li><a href="https://2014.igem.org/Team:Warsaw/Team#advisors">Advisors</a></li> |
+ | <li><a href="https://2014.igem.org/Team:Warsaw/Team#sponsors">Sponsors</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:Warsaw/Team#acknowledgements">Acknowledgements</a></li> | ||
</ul> | </ul> | ||
</li> | </li> |
Latest revision as of 21:27, 17 October 2014