Template:Kyoto/js

From 2012.igem.org

(Difference between revisions)
 
(90 intermediate revisions not shown)
Line 1: Line 1:
 +
{{Kyoto/myScroll}}
<html>
<html>
<script type="text/javascript">
<script type="text/javascript">
 +
function showTab(tabname) {
 +
    var $children = $("#kyoto-tab-contents").children("div");
 +
$children.css("display","none");
 +
    document.getElementById(tabname).style.display = "block";
 +
}
 +
 +
function changeTab(tab) {
 +
var $tabs = $("#kyoto-tabs").children("li");
 +
$tabs.css("border-bottom","1px solid #c8c2b6");
 +
tab.css("border-bottom","none");
 +
}
 +
$(function() {
$(function() {
-
  var list = document.all.list;
+
setScroll($("#kyoto-menu"));
-
  var board = document.all.board;
+
setScroll($(".kyoto-post-it"));
-
/*
+
        setScroll($("#goldenpost"));
-
  var margin = window.innerWidth - (list.style.width + board.style.width);
+
$("#kyoto-tabs").children("li").click(function() { changeTab($(this)); });
-
  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>

Latest revision as of 01:17, 27 October 2012