Team:Evry/template.js

From 2012.igem.org

(Difference between revisions)
Line 2: Line 2:
<script type="text/javascript">
<script type="text/javascript">
-
 
-
 
-
  var set_bk = function()
 
-
  {
 
-
    var w = screen.width;
 
-
    var _c = 'CAM12_bg_';
 
-
    if(w <= 1024)
 
-
      _c=_c+'1024';
 
-
    else if(w <= 1280)
 
-
      _c=_c+'1280';
 
-
    else if(w <= 1366)
 
-
      _c=_c+'1366';
 
-
    else if(w <= 1440)
 
-
      _c=_c+'1440';
 
-
    else if(w <= 1680)
 
-
      _c=_c+'1680';
 
-
    else _c = _c+'1920';
 
-
   
 
-
    $('body').addClass(_c);
 
-
  }
 
-
 
-
set_bk();
 

Revision as of 16:58, 6 September 2012