Difference between revisions of "Template:Team:Aachen/Footer"

 
(16 intermediate revisions by 2 users not shown)
Line 22: Line 22:
 
         <div class="bar">
 
         <div class="bar">
 
<div class="bar-wrap">
 
<div class="bar-wrap">
<div class="disclaimer">
+
                                <div class="disclaimer">
<li>
+
    <a href="mailto:igem@rwth-aachen.de">Contact</a>
<a href="#">Contact</a>
+
</li>
+
<li>
+
<a href="#">Disclaimer</a>
+
</li>
+
 
</div>
 
</div>
 
<div class="clear"></div>
 
<div class="clear"></div>
Line 52: Line 47:
 
$(".headline_bg").ready(function () {
 
$(".headline_bg").ready(function () {
  
if (IsTourSite() == true){
+
    if (IsTourSite() == true) {
var heading = $('.headline').html();
+
        var heading = $('.headline').html();
}
+
    }
else {
+
    else {
var heading = $("#firstHeading").html().replace('<span dir="auto">','').replace("</span>", "");
+
        var heading = $("#firstHeading").html().replace('<span dir="auto">', '').replace("</span>", "");
}
+
    }
var splits = heading.split("/");
+
    var siteUrl = window.location.href;
var output = '<span class="hidden-xs hidden-sm">';
+
    switch (heading.trim())
var pages = window.location.href.split('/');
+
    {
for (i = 0; i < splits.length - 1; i++)
+
        case "Team:Aachen/Software":
{
+
            heading = "Team:Aachen/Lab/Bioreactor/Software";
            if (splits[i].trim() != "Team:Aachen")//do not attach the link for the landing page
+
            siteUrl = siteUrl.replace("Team:Aachen/Software", "Team:Aachen/Lab/Bioreactor/Software");
            {
+
            break;
                  switch (splits[i])
+
        case "Team:Aachen/Modeling":
                  {
+
            heading = "Team:Aachen/Lab/Modeling";
                      case "Notebook": output += splits[i] + " / "; break; // do not link to these level-1-pages
+
            siteUrl = siteUrl.replace("Team:Aachen/Modeling", "Team:Aachen/Lab/Modeling");
                      default:
+
            break;
                          output += '<a href="' + pages.slice(0, pages.length - splits.length + 1 + i).join('/') + '">' + splits[i] + '</a> / ';
+
    }
                  }
+
    var splits = heading.split("/");
 +
    var pages = siteUrl.split('/');
 +
    var output = '<span class="hidden-xs hidden-sm">';
 +
    for (i = 0; i < splits.length - 1; i++) {
 +
        if (splits[i].trim() != "Team:Aachen")//do not attach the link for the landing page
 +
        {
 +
            switch (splits[i]) {
 +
                case "Notebook": output += splits[i] + " / "; break; // do not link to these level-1-pages
 +
                case "Documentation": break;
 +
                default:
 +
                    output += '<a href="' + pages.slice(0, pages.length - splits.length + 1 + i).join('/') + '">' + splits[i] + '</a> / ';
 
             }
 
             }
 
         }
 
         }
output += '</span>' + splits[splits.length-1].replace("Team:Aachen", "iGEM Aachen");
+
    }
$(".headline_fill").html(output);
+
    output += '</span>' + splits[splits.length - 1].replace("Team:Aachen", "iGEM Aachen");
$(".hl_shadow").html(output);
+
    $(".headline_fill").html(output);
return false;
+
    $(".hl_shadow").html(output);
 +
    return false;
 
});
 
});
 
</script>
 
</script>
Line 112: Line 118:
 
     });
 
     });
 
</script>
 
</script>
 +
  
 
<!--Mousover for Menu-->
 
<!--Mousover for Menu-->
 
<script>
 
<script>
jQuery(".dropdown-menu li.dropdown").on("mouseenter", function () {
+
var t;
+
$(".dropdown-menu li.dropdown").on("mouseenter", function () {
jQuery(this).find( ".dropdown-menu").css({ "display": "inline-block" }, "slow" );
+
$('.ac-submenu').hide();
 
+
$(this).find( ".dropdown-menu").show();
}).on("mouseleave", function () {
+
});
+
jQuery(this).find( ".dropdown-menu").css({ "display": "none" }, "slow" );
+
  
 +
$(".ac-submenu").on("mouseleave", function () {
 +
t = setTimeout(function () {
 +
$(".ac-submenu").hide();
 +
        }, 1000);
 
});
 
});
</script>
 
  
<!--remove h1 padding-top on mouseover-->
+
$(".ac-submenu").on("mouseenter", function () {
<script>
+
      clearTimeout(t);
$("h1").on("mouseenter",funtion() {
+
  $(this).css("padding-top", "0px");
+
  }).on("mouseleave", function () {
+
  $(this).css("padding-top", "85px");
+
 
});
 
});
 
</script>
 
</script>
 +
 
<!-- member popup script -->
 
<!-- member popup script -->
 
<script src="https://2015.igem.org/Team:Aachen/Template:Team:Aachen/JS/memberpopup?action=raw&ctype=text/javascript"></script>
 
<script src="https://2015.igem.org/Team:Aachen/Template:Team:Aachen/JS/memberpopup?action=raw&ctype=text/javascript"></script>

Latest revision as of 03:45, 19 September 2015