Team:Sevilla/Templates/general

From 2011.igem.org

(Difference between revisions)
 
(4 intermediate revisions not shown)
Line 220: Line 220:
<script type="text/javascript">
<script type="text/javascript">
 +
$(document).ready(function(){
-
var userAgent = navigator.userAgent.toLowerCase();
 
-
jQuery.browser = {
 
-
    version: (userAgent.match( /.+(?:rv|it|ra|ie|me)[\/: ]([\d.]+)/ ) || [])[1],
 
-
    chrome: /chrome/.test( userAgent ),
 
-
    safari: /webkit/.test( userAgent ) &amp;amp;&amp;amp; !/chrome/.test( userAgent ),
 
-
    opera: /opera/.test( userAgent ),
 
-
    msie: /msie/.test( userAgent ) &amp;amp;&amp;amp; !/opera/.test( userAgent ),
 
-
    mozilla: /mozilla/.test( userAgent ) &amp;amp;&amp;amp; !/(compatible|webkit)/.test( userAgent )
 
-
};
 
-
if ($.browser.chrome) {
+
if ($.browser.webkit) {
-
     $(p).css("font-size","15px");
+
     $("p").css("font-size","15px");
-
     }
+
     $(".titleF").css("font-size","20px");
 +
  }
 +
   
 +
});
</script>
</script>
</html>
</html>

Latest revision as of 10:37, 8 August 2011