Team:Wageningen UR/templates/footer
From 2014.igem.org
(Difference between revisions)
(5 intermediate revisions not shown) | |||
Line 5: | Line 5: | ||
<div id="right"> | <div id="right"> | ||
<div id="inner-right"> | <div id="inner-right"> | ||
- | <a href="#header" ><img id="mascot" src="https://static.igem.org/mediawiki/2014/b/bd/Wageningen_UR_mascot.png" alt="" width=" | + | <a href="#header" ><img id="mascot" src="https://static.igem.org/mediawiki/2014/b/bd/Wageningen_UR_mascot.png" alt="" width="110px"/></a> |
</div> | </div> | ||
</div> | </div> | ||
Line 14: | Line 14: | ||
<div id="footer"> | <div id="footer"> | ||
- | <p>iGEM Wageningen UR 2014. | + | <p>iGEM Wageningen UR 2014. Send us an <a href="mailto:igemwageningen@gmail.com" class="soft_link">email</a>, or follow us on <a class="soft_link" href="http://twitter.com/igemwageningen" target="_blank">Twitter</a> and <a class="soft_link" href="http://www.facebook.com/iGEMWageningen" target="_blank">Facebook</a>! |
<br /> | <br /> | ||
- | For more information about iGEM, check out their <a href="https://igem.org">website</a> and <a href=" | + | For more information about iGEM, check out their <a class="soft_link" href="https://igem.org">website</a> and <a class="soft_link" href="http://twitter.com/igem">Twitter</a>!</p> |
</div> | </div> | ||
+ | |||
<script> | <script> | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
Line 42: | Line 43: | ||
var divPos = $(theID).offset().top; // get the offset of the div from the top of page | var divPos = $(theID).offset().top; // get the offset of the div from the top of page | ||
var divHeight = $(theID).height(); // get the height of the div in question | var divHeight = $(theID).height(); // get the height of the div in question | ||
- | if (windowPos >= divPos | + | if (windowPos >= divPos){ |
- | + | if (windowPos < (divPos + divHeight)) { | |
+ | $("a[href='" + theID + "']").addClass("sidenav-active"); | ||
+ | } | ||
+ | else { | ||
+ | $("a[href='" + theID + "']").removeClass("sidenav-active"); | ||
+ | } | ||
} else { | } else { | ||
$("a[href='" + theID + "']").removeClass("sidenav-active"); | $("a[href='" + theID + "']").removeClass("sidenav-active"); | ||
Line 72: | Line 78: | ||
}); | }); | ||
</script> | </script> | ||
+ | |||
+ | <script> | ||
+ | $(document).ready(function() { | ||
+ | $(".onoffswitch-checkbox").click(function() { | ||
+ | $(".overview >div img.top").toggleClass("transparent"); | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
</body> | </body> | ||
</html> | </html> |
Latest revision as of 08:20, 17 October 2014