Team:Tsinghua-A
From 2014.igem.org
(Difference between revisions)
Line 4: | Line 4: | ||
<html> | <html> | ||
<head> | <head> | ||
+ | {{Team:Tsinghua-A/style}} | ||
+ | <!-- jQuery Tools (slider) --> | ||
+ | <script src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></script> | ||
+ | <script> | ||
+ | $(function() { | ||
+ | // initialize scrollable | ||
+ | $(".scrollable").scrollable().navigator(); | ||
+ | }); | ||
+ | </script> | ||
+ | |||
+ | <!-- Navigation scroll follow --> | ||
+ | <script type="text/javascript"> | ||
+ | $(window).scroll(function () { | ||
+ | var scrollPos = $(window).scrollTop(); | ||
+ | if (scrollPos > 180) { | ||
+ | $(".toc").addClass("stickBelowNavigation"); | ||
+ | } else { | ||
+ | $(".toc").removeClass("stickBelowNavigation"); | ||
+ | } | ||
+ | }); | ||
+ | </script> | ||
+ | |||
<div> | <div> | ||
<table> | <table> |
Revision as of 19:01, 15 October 2014
|
----
|