Team:Imperial College London/Templates/Accordion

From 2011.igem.org

(Difference between revisions)
Line 3: Line 3:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 +
 +
 +
 +
 +
 +
 +
 +
 +
<script>
 +
$(document).ready(function() {
 +
    $("sup").click(function () {
 +
        if ($('.technology').length>0)
 +
        {
 +
            ddaccordion.expandone('technology', $('.technology').length-1)
 +
            setTimeout("window.scrollBy(0,50000)",200)
 +
        }
 +
        else window.scrollBy(0,50000)
 +
    });
 +
    $("sup").mouseover(function () {
 +
        if ($(this).html().substr(0,1)=="[") $("sup").css('cursor', 'pointer');
 +
    });
 +
});
 +
</script>
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
<script type="text/javascript" src="https://2011.igem.org/Team:Imperial_College_London/ddaccordion?action=raw&ctype=text/js">
<script type="text/javascript" src="https://2011.igem.org/Team:Imperial_College_London/ddaccordion?action=raw&ctype=text/js">

Revision as of 23:58, 25 October 2011