Line 5: | Line 5: | ||
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> | <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> | ||
<style> | <style> | ||
+ | .requirement {display:none;} | ||
+ | .w3-container{} | ||
+ | .w3-container:after,.w3-row:after {content:"";display:table;clear:both} | ||
+ | .w3-third {float:left;width:33.33333%} | ||
+ | .w3-bottombar{border-bottom:6px solid #ccc!important} | ||
+ | .w3-hover-light-grey:hover{color:#000!important;background-color:#f1f1f1!important} | ||
+ | .w3-padding {padding:8px 16px!important} | ||
+ | .w3-border-green,.w3-hover-border-green:hover{border-color:##0C9476!important} | ||
+ | |||
@media only screen and (max-width: 1024px) { | @media only screen and (max-width: 1024px) { | ||
video {display:none;} | video {display:none;} | ||
} | } | ||
− | |||
− | |||
</style> | </style> | ||
</head> | </head> | ||
Line 66: | Line 73: | ||
</div> | </div> | ||
<div class="article"> | <div class="article"> | ||
+ | |||
<video id="Logo" src="https://static.igem.org/mediawiki/2016/b/b7/T--Duesseldorf--Logo-Animation.mov" autoplay="autoplay" width="100%;" height="auto;"></video> | <video id="Logo" src="https://static.igem.org/mediawiki/2016/b/b7/T--Duesseldorf--Logo-Animation.mov" autoplay="autoplay" width="100%;" height="auto;"></video> | ||
− | + | <h2 id="Medal_Criteria">Medal Criteria</h2> | |
− | + | <div class="w3-container" style="margin-bottom:50px;margin-top: 20px;"> | |
− | + | <div class="w3-row"> | |
+ | <a href="javascript:void(0)" onclick="openrequirement(event, 'Bronze');"> | ||
+ | <span class="w3-third tablink w3-bottombar w3-hover-light-grey w3-padding" style="text-align:center;"><img src="https://static.igem.org/mediawiki/2016/a/a8/T--duesseldorf--medalbronze.PNG" style="width: 120px; height:120px; margin:auto;"></span> | ||
+ | </a> | ||
+ | <a href="javascript:void(0)" onclick="openrequirement(event, 'Silver');"> | ||
+ | <span class="w3-third tablink w3-bottombar w3-hover-light-grey w3-padding" style="text-align:center;"><img src="https://static.igem.org/mediawiki/2016/a/a0/T--duesseldorf--medalsilver.PNG" style="width: 120px; height:120px; margin:auto;"></span> | ||
+ | </a> | ||
+ | <a href="javascript:void(0)" onclick="openrequirement(event, 'Gold');"> | ||
+ | <span class="w3-third tablink w3-bottombar w3-hover-light-grey w3-padding" style="text-align:center;"><img src="https://static.igem.org/mediawiki/2016/8/86/T--duesseldorf--medalgold.PNG" style="width: 120px; height:120px; margin:auto;"></span> | ||
+ | </a> | ||
+ | </div> | ||
+ | |||
+ | <div id="Bronze" class="w3-container requirement"> | ||
+ | <h2>Bronze</h2> | ||
+ | <p>Bronze text.</p> | ||
+ | </div> | ||
+ | |||
+ | <div id="Silver" class="w3-container requirement"> | ||
+ | <h2>Silver</h2> | ||
+ | <p>Silver text.</p> | ||
+ | </div> | ||
+ | |||
+ | <div id="Gold" class="w3-container requirement"> | ||
+ | <h2>Gold</h2> | ||
+ | <p>Gold text.</p> | ||
+ | </div> | ||
+ | </div> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Line 119: | Line 140: | ||
</div> | </div> | ||
</div> | </div> | ||
− | </ | + | |
+ | <script> | ||
+ | function openrequirement(evt, requirementName) { | ||
+ | var i, x, tablinks; | ||
+ | x = document.getElementsByClassName("requirement"); | ||
+ | for (i = 0; i < x.length; i++) { | ||
+ | x[i].style.display = "none"; | ||
+ | } | ||
+ | tablinks = document.getElementsByClassName("tablink"); | ||
+ | for (i = 0; i < x.length; i++) { | ||
+ | tablinks[i].className = tablinks[i].className.replace(" w3-border-green", ""); | ||
+ | } | ||
+ | document.getElementById(requirementName).style.display = "block"; | ||
+ | evt.currentTarget.firstElementChild.className += " w3-border-green"; | ||
+ | } | ||
+ | </script> | ||
</body> | </body> |
Revision as of 13:36, 18 October 2016