Template:Kyoto/js

From 2012.igem.org

(Difference between revisions)
SockeyeSalmon (Talk | contribs)
(Created page with "<script type="text/javascript"> $(function() { var list = document.all.list; var board = document.all.board; var margin = window.innerWidth - (list.style.width + board.styl...")
Newer edit →

Revision as of 17:16, 18 September 2012

<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>