Team:SYSU-Software/notebook

From 2014.igem.org

(Difference between revisions)
Line 265: Line 265:
<script type="text/javascript" src="https://2014.igem.org/Team:SYSU-Software/toTop.js?action=raw&ctype=text/javascript"></script>
<script type="text/javascript" src="https://2014.igem.org/Team:SYSU-Software/toTop.js?action=raw&ctype=text/javascript"></script>
<script>
<script>
-
$(".main .year .list").each(function (e, target) {
+
$(".main2 .year .list").each(function (e, target) {
    var $target=  $(target),
    var $target=  $(target),
        $ul = $target.find("ul");
        $ul = $target.find("ul");
    $target.height($ul.outerHeight()), $ul.css("position", "absolute");
    $target.height($ul.outerHeight()), $ul.css("position", "absolute");
});  
});  
-
$(".main .year>h2>a").click(function (e) {
+
$(".main2 .year>h2>a").click(function (e) {
    e.preventDefault();
    e.preventDefault();
    $(this).parents(".year").toggleClass("close");
    $(this).parents(".year").toggleClass("close");

Revision as of 13:53, 10 October 2014

Team:SYSU-Software