Difference between revisions of "Template:ETH Zurich"
m |
m |
||
Line 15: | Line 15: | ||
if (getStyle(obj.parentElement.getElementsByClassName('info')[0],'max-height') == "999999px") { | if (getStyle(obj.parentElement.getElementsByClassName('info')[0],'max-height') == "999999px") { | ||
− | obj.parentElement | + | obj.parentElement.style.maxHeight = "100px"; |
obj.getElementsByTagName('img')[0].style.backgroundPosition = "0px 0px"; | obj.getElementsByTagName('img')[0].style.backgroundPosition = "0px 0px"; | ||
} else { | } else { | ||
− | obj.parentElement | + | obj.parentElement.style.maxHeight = "999999px"; |
obj.getElementsByTagName('img')[0].style.backgroundPosition = "0px 24px"; | obj.getElementsByTagName('img')[0].style.backgroundPosition = "0px 24px"; | ||
} | } |
Revision as of 14:57, 19 August 2015