Template:Team:Groningen/sandboxHeader

From 2010.igem.org

(Difference between revisions)
 
(17 intermediate revisions not shown)
Line 1: Line 1:
-
<html><link rel="stylesheet" type="text/css" href="http://casualconnect.net/iGEM/overall.css">
+
<html>
-
<script type="text/javascript" src="http://casualconnect.net/iGEM/jquery.easing.min.js">
+
<!-- All scripting and markup for the wiki by iGEM Groningen is under MIT licence:  
-
</script><script type="text/javascript" src="http://casualconnect.net/iGEM/jquery.lavalamp.min.js">
+
-
</script><script type="text/javascript">
+
-
$(function() {
+
-
$("#tabs").lavaLamp({
+
-
fx: "backout",
+
-
speed: 700,
+
-
click: function(event, obj) {
+
-
var margin = $(".slide_content").width();
+
-
margin = margin * ($(obj).prevAll().size());
+
-
margin = margin * -1;
+
-
$(".tabslider").stop().animate({
+
-
  marginLeft: margin + "px"
+
-
}, {
+
-
duration: 300
+
-
});
+
-
return false;
+
Copyright (c) 2010 Joël Kuiper and iGEM Groningen
-
}
+
 
-
});
+
Permission is hereby granted, free of charge, to any person obtaining a copy
 +
of this software and associated documentation files (the "Software"), to deal
 +
in the Software without restriction, including without limitation the rights
 +
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 +
copies of the Software, and to permit persons to whom the Software is
 +
furnished to do so, subject to the following conditions:
 +
 
 +
The above copyright notice and this permission notice shall be included in
 +
all copies or substantial portions of the Software.
 +
 
 +
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 +
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 +
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 +
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 +
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 +
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 +
THE SOFTWARE.
 +
 
 +
-->
 +
 
 +
<link rel="stylesheet" type="text/css" href="http://casualconnect.net/iGEM/overallSandbox.css">
 +
<script type="text/javascript" src="http://casualconnect.net/iGEM/jquery.address-1.2.1.min.js"></script>
 +
<script type="text/javascript">
 +
 
 +
 
 +
var pages = ["home", "project", "images", "modeling", "team", "contact"];
 +
 
 +
 
 +
function ucfirst(str) {
 +
    var firstLetter = str.substr(0, 1);
 +
    return firstLetter.toUpperCase() + str.substr(1);
 +
}
 +
 
 +
$(document).ready(function() {
 +
$("ul#topnav li").hover(function() {
 +
$(this).css({ 'background' : '#1376c9 url(http://casualconnect.net/iGEM/topnav_active.gif) repeat-x'});
 +
$(this).find("span").show();
 +
} , function() { //on hover out...
 +
$(this).css({ 'background' : 'none'});
 +
$(this).find("span").hide();  
});
});
 +
 +
});
 +
 +
    $.address.change(function (event) {
 +
        var margin = $(".slide_content").width();
 +
 +
        var page = event.path.substring(1);
 +
        if(page == "") { page = 'home'; }
 +
 +
        if ($.inArray(page, pages) !== -1) {
 +
            margin = (margin * ($.inArray(page, pages))) * -1;
 +
            $(".tabslider").stop().animate({
 +
                marginLeft: margin + "px"
 +
            },  300
 +
            );
 +
 +
        } else {
 +
            $(".ajaxWrapper").html("");
 +
            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>
-
</html>
+
<div id="overallMask">
 +
<div id="headerWrapper">
 +
<img src="https://static.igem.org/mediawiki/2010/f/f6/LogoGroningen.png" alt="iGEM Groningen '10">
 +
<p style="float: right; margin-right: 30px">
 +
We believe in a better world<br>
 +
<span style="margin-left: 2em">through synthetic biology</span>
 +
</p>
 +
</div>
 +
<div id="contentWrapper">
 +
<div class='tabbed_content'>
 +
<div id="tab_nav">
 +
    <ul id="topnav">
 +
        <li><a href="https://2010.igem.org/Team:Groningen#/home">Home</a></li>
 +
        <li>
 +
 
 +
            <a href="https://2010.igem.org/Team:Groningen#/project">Project</a>
 +
            <span>
 +
                <a href="#">Biofilm</a> |
 +
                <a href="#">Hydrophobins</a> |
 +
                <a href="#">Applications</a> |
 +
                <a href="#">Lab book</a> |
 +
                <a href="#">Biobricks</a>
 +
            </span>
 +
        </li>
 +
 
 +
        <li>
 +
            <a href="https://2010.igem.org/Team:Groningen#/human">Human</a>
 +
            <span>
 +
                <a href="#">Image of Science</a> |
 +
                <a href="#">Human practices</a> |
 +
                <a href="#">Ethics &amp; Safety</a>
 +
            </span>
 +
 
 +
        </li>
 +
        <li>
 +
            <a href="https://2010.igem.org/Team:Groningen#/modeling">Modelling</a>
 +
            <span>
 +
                <a href="#">Biofilm dynamics</a> |
 +
                <a href="#">Expressions</a> |
 +
                <a href="#">Kill Switch</a>
 +
            </span>
 +
        </li>
 +
        <li><a href="https://2010.igem.org/Team:Groningen#/team">Team</a></li>
 +
        <li><a href="https://2010.igem.org/Team:Groningen#/contact">Contact</a></li>
 +
    </ul>
 +
</div>
 +
 
 +
<div id="sponsorWrapper">
 +
</html>{{Team:Groningen/sponsors}}<html>
 +
</div>
 +
<div id="otherContent">

Latest revision as of 11:03, 20 August 2010