Template:Kyoto/js

From 2012.igem.org

(Difference between revisions)
Line 1: Line 1:
 +
{{Kyoto/ContainedStickScroll}}
<html>
<html>
<script type="text/javascript">
<script type="text/javascript">
$(function() {
$(function() {
-
  var list = document.all.list;
+
$("#kyoto-menu").containedStickScroll({
-
  var board = document.all.board;
+
   duration: 0,
-
/*
+
});
-
  var margin = window.innerWidth - (list.style.width + board.style.width);
+
-
  var MARGIN-LEFT = board.style.;
+
-
  var MARGIN-RIGHT;
+
-
  var MARGIN = MARGIN-LEFT + MARGIN-RIGHT;
+
-
  if (margin < MARGIN)
+
-
  {
+
-
   list.style.left = 0;
+
-
  margin-left = MARGIN-LEFT * margin / MARGIN;
+
-
  margin-right = MARGIN-RIGHT * margin / MARGIN;
+
-
  } else {
+
-
  }
+
-
*/
+
});
});
</script>
</script>
</html>
</html>
-
{{Kyoto/ContainedStickScroll}}
 

Revision as of 12:15, 25 September 2012