Team:Sevilla/Templates/general

From 2011.igem.org

(Difference between revisions)
 
(2 intermediate revisions not shown)
Line 222: Line 222:
$(document).ready(function(){
$(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 ) && !/chrome/.test( userAgent ),
 
-
    opera: /opera/.test( userAgent ),
 
-
    msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
 
-
    mozilla: /mozilla/.test( userAgent ) && !/(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