Template:Team:Groningen/sandboxHeader

From 2010.igem.org

(Difference between revisions)
Line 25: Line 25:
<link rel="stylesheet" type="text/css" href="http://casualconnect.net/iGEM/overallSandbox.css">
<link rel="stylesheet" type="text/css" href="http://casualconnect.net/iGEM/overallSandbox.css">
-
<script type="text/javascript" src="http://casualconnect.net/iGEM/jquery.easing.min.js">
+
<script type="text/javascript" src="http://casualconnect.net/iGEM/jquery.address-1.2.1.min.js"></script>
-
</script><script type="text/javascript" src="http://casualconnect.net/iGEM/jquery.address-1.2.1.min.js">
+
-
</script><script type="text/javascript" src="http://casualconnect.net/iGEM/jquery.lavalamp.min.js"></script>
+
<script type="text/javascript" src="http://casualconnect.net/iGEM/jquery.droplinemenu.js"></script>
<script type="text/javascript" src="http://casualconnect.net/iGEM/jquery.droplinemenu.js"></script>
<script type="text/javascript">
<script type="text/javascript">
Line 39: Line 37:
$(function () {
$(function () {
     droplinemenu.buildmenu("droplinetabs1")
     droplinemenu.buildmenu("droplinetabs1")
-
    $(".current").removeClass("current");
 
-
    $('.lavaLampBottomStyle [rel=' + $.address.value().substr(1) + ']').parent().addClass("current");
 
-
 
-
    $("#tabs").lavaLamp({
 
-
        fx: "backout",
 
-
        speed: 700,
 
-
        click: function (event, obj) {
 
-
            $.address.value($(obj).find('a').attr('rel'));
 
-
            if ($("#home").length !== 0) {
 
-
                return false;
 
-
            } else {
 
-
                return true;
 
-
            }
 
-
        }
 
-
    });
 
});
});
-
 
-
    $.address.change(function (event) {
 
-
        var margin = $(".slide_content").width();
 
-
 
-
        var page = event.path.substring(1);
 
-
        if(page == "") { page = 'home'; }
 
-
 
-
        v = $('.lavaLampBottomStyle [rel=' + page + ']').parent();
 
-
 
-
        if ($.inArray(page, pages) !== -1) {
 
-
            $(".back").show();
 
-
            $(".lavaLampBottomStyle").trigger("move", v);
 
-
            margin = (margin * ($.inArray(page, pages))) * -1;
 
-
            $(".tabslider").stop().animate({
 
-
                marginLeft: margin + "px"
 
-
            },  300
 
-
            );
 
-
 
-
        } else {
 
-
            $(".ajaxWrapper").html("");
 
-
            $(".back").hide();
 
-
            var url = wgServer + "/Team:Groningen/" + ucfirst(page) + "?action=render";
 
-
            $.get(url, function(data) {
 
-
            $(".ajaxWrapper").html(data);
 
-
            margin = (margin * (pages.length)) * -1;
 
-
            $(".tabslider").css("margin-left", margin + "px");
 
-
            });
 
-
        }
 
-
    });
 
-
 
-
 
</script>
</script>

Revision as of 14:18, 18 August 2010