Template:Kyoto/js

From 2012.igem.org

Revision as of 17:16, 18 September 2012 by SockeyeSalmon (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<script type="text/javascript"> $(function() {

 var list = document.all.list;
 var board = document.all.board;
 var margin = window.innerWidth - (list.style.width + board.style.width);
 var MARGIN-LEFT;
 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>