Template:Team:Groningen/sandboxHeader

From 2010.igem.org

(Difference between revisions)
 
(14 intermediate revisions not shown)
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">
<script type="text/javascript">
 +
 +
 +
var pages = ["home", "project", "images", "modeling", "team", "contact"];
 +
function ucfirst(str) {
function ucfirst(str) {
Line 35: Line 36:
     return firstLetter.toUpperCase() + str.substr(1);
     return firstLetter.toUpperCase() + str.substr(1);
}
}
-
var pages = ["home", "project", "images", "modeling", "team", "contact"];
 
-
 
-
$(function () {
 
-
    droplinemenu.buildmenu("droplinetabs1")
 
-
    $(".current").removeClass("current");
 
-
    $('.lavaLampBottomStyle [rel=' + $.address.value().substr(1) + ']').parent().addClass("current");
 
-
    $("#tabs").lavaLamp({
+
$(document).ready(function() {
-
        fx: "backout",
+
$("ul#topnav li").hover(function() {  
-
        speed: 700,
+
$(this).css({ 'background' : '#1376c9 url(http://casualconnect.net/iGEM/topnav_active.gif) repeat-x'});
-
        click: function (event, obj) {
+
$(this).find("span").show();
-
            $.address.value($(obj).find('a').attr('rel'));
+
} , function() { //on hover out...
-
            if ($("#home").length !== 0) {
+
$(this).css({ 'background' : 'none'});  
-
                return false;
+
$(this).find("span").hide();  
-
            } else {
+
});
-
                return true;
+
-
            }
+
-
        }
+
-
    });
+
});
});
Line 61: Line 53:
         var page = event.path.substring(1);
         var page = event.path.substring(1);
         if(page == "") { page = 'home'; }  
         if(page == "") { page = 'home'; }  
-
 
-
        v = $('.lavaLampBottomStyle [rel=' + page + ']').parent();
 
         if ($.inArray(page, pages) !== -1) {
         if ($.inArray(page, pages) !== -1) {
-
            $(".back").show();
 
-
            $(".lavaLampBottomStyle").trigger("move", v);
 
             margin = (margin * ($.inArray(page, pages))) * -1;
             margin = (margin * ($.inArray(page, pages))) * -1;
             $(".tabslider").stop().animate({
             $(".tabslider").stop().animate({
Line 75: Line 63:
         } else {
         } else {
             $(".ajaxWrapper").html("");
             $(".ajaxWrapper").html("");
-
            $(".back").hide();
 
             var url = wgServer + "/Team:Groningen/" + ucfirst(page) + "?action=render";
             var url = wgServer + "/Team:Groningen/" + ucfirst(page) + "?action=render";
             $.get(url, function(data) {
             $.get(url, function(data) {
Line 84: Line 71:
         }
         }
     });
     });
-
 
-
 
-
 
</script>
</script>
<div id="overallMask">
<div id="overallMask">
Line 98: Line 82:
<div id="contentWrapper">
<div id="contentWrapper">
<div class='tabbed_content'>
<div class='tabbed_content'>
-
<div id="droplinetabs1" class="droplinetabs">
+
<div id="tab_nav">
-
<ul>
+
    <ul id="topnav">
-
<li><a href="http://www.dynamicdrive.com/"><span>Home</span></a></li>
+
        <li><a href="https://2010.igem.org/Team:Groningen#/home">Home</a></li>
-
<li><a href="http://www.dynamicdrive.com/style/"><span>CSS Examples</span></a>
+
        <li>
-
  <ul>
+
 
-
  <li><a href="#">Activities 1</a></li>
+
            <a href="https://2010.igem.org/Team:Groningen#/project">Project</a>
-
  <li><a href="#">Activities 2</a></li>
+
            <span>
-
  <li><a href="#">Activities 3</a>
+
                <a href="#">Biofilm</a> |
-
  <ul>
+
                <a href="#">Hydrophobins</a> |
-
  <li><a href="#">Water Sports 1</a></li>
+
                <a href="#">Applications</a> |
-
  <li><a href="#">Water Sports 1</a></li>
+
                <a href="#">Lab book</a> |
-
  <li><a href="#">Water Sports 1</a></li>
+
                <a href="#">Biobricks</a>
-
  <li><a href="#">Water Sports 1</a></li>
+
            </span>
-
  </ul>
+
        </li>
-
</li>
+
 
-
  <li><a href="#">Activities 4</a></li>
+
        <li>
-
  </ul>
+
            <a href="https://2010.igem.org/Team:Groningen#/human">Human</a>
-
</li>
+
            <span>
-
<li><a href="http://tools.dynamicdrive.com"><span>Tools</span></a></li>
+
                <a href="#">Image of Science</a> |
-
<li><a href="http://www.javascriptkit.com/"><span>JavaScript</span></a>
+
                <a href="#">Human practices</a> |
-
  <ul>
+
                <a href="#">Ethics &amp; Safety</a>
-
  <li><a href="#">Traveling 1</a></li>
+
            </span>
-
  <li><a href="#">Traveling 2</a></li>
+
 
-
  <li><a href="#">Traveling 3</a></li>
+
        </li>
-
  <li><a href="#">Traveling 4</a>
+
        <li>
-
  <ul>
+
            <a href="https://2010.igem.org/Team:Groningen#/modeling">Modelling</a>
-
  <li><a href="#">Africa 1</a></li>
+
            <span>
-
  <li><a href="#">Africa 2</a></li>
+
                <a href="#">Biofilm dynamics</a> |
-
  <li><a href="#">Africa 3</a></li>
+
                <a href="#">Expressions</a> |
-
  <li><a href="#">Africa 4</a>
+
                <a href="#">Kill Switch</a>
-
  <ul>
+
            </span>
-
  <li><a href="#">Kenya 1</a></li>
+
        </li>
-
  <li><a href="#">Kenya 2</a></li>
+
        <li><a href="https://2010.igem.org/Team:Groningen#/team">Team</a></li>
-
  <li><a href="#">Kenya 3</a></li>
+
        <li><a href="https://2010.igem.org/Team:Groningen#/contact">Contact</a></li>
-
  <li><a href="#">Kenya 4</a></li>
+
    </ul>
-
  <li><a href="#">Kenya 5</a></li>
+
-
  </ul>
+
-
</li>
+
-
  </ul>
+
-
</li>
+
-
  <li><a href="#">Traveling 5</a></li>
+
-
  </ul>
+
-
</li>
+
-
<li><a href="http://www.cssdrive.com"><span>Gallery</span></a></li>
+
-
</ul>
+
</div>
</div>

Latest revision as of 11:03, 20 August 2010