Template:Team:Cambridge/CAM 2012 TEMPLATE HEAD PROJECT
From 2012.igem.org
(Difference between revisions)
Line 2: | Line 2: | ||
<head> | <head> | ||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | ||
+ | |||
+ | <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; | ||
+ | </script> | ||
<style type ='text/css'> | <style type ='text/css'> |
Revision as of 09:45, 23 July 2012
Loading...