Difference between revisions of "Template:ETH Zurich"
m |
m |
||
Line 12: | Line 12: | ||
<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> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
+ | function expand(obj) { | ||
+ | |||
+ | if (getStyle(obj.parentElement.getElementsByClassName('info')[0],'max-height') == "999999px") { | ||
+ | obj.parentElement.getElementsByClassName('info')[0].style.maxHeight = "100px"; | ||
+ | obj.getElementsByTagName('img')[0].style.backgroundPosition = "0px 0px"; | ||
+ | } else { | ||
+ | obj.parentElement.getElementsByClassName('info')[0].style.maxHeight = "999999px"; | ||
+ | obj.getElementsByTagName('img')[0].style.backgroundPosition = "0px 24px"; | ||
+ | } | ||
+ | |||
+ | } | ||
+ | |||
$(document).ready(function(){ | $(document).ready(function(){ | ||
Revision as of 14:38, 19 August 2015