Better CSS and separation of common js functions

This commit is contained in:
Yann Esposito (Yogsototh) 2010-03-23 15:04:28 +01:00
parent 843431ab54
commit 9a225c8923
2 changed files with 31 additions and 1 deletions

View file

@ -4,7 +4,7 @@ html, body {
top: 0;
left: 0;
}
body {
body, #info {
background-color: #320;
color: #ca8;
}
@ -85,6 +85,22 @@ table tr th {
color: #ca8;
background-color: #320;
}
#info {
font-size: 2em;
top: 30%;
left: 30%;
width: 40%;
position: fixed;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
opacity: .8;
}
#info div {
padding: .5em;
margin: .5em; }
table tr th {
font-weight: bold;
text-align: center;

14
public/js/rubyzome.js Normal file
View file

@ -0,0 +1,14 @@
// depend on jQuery
function setSpecificCss() {
var userAgent = navigator.userAgent.toLowerCase();
if ( /webkit/.test(userAgent) ) {
$('head').append('<link rel="stylesheet" href="/css/webkit.css"/>');
} else if ( /mozilla/.test(userAgent) ) {
$('head').append('<link rel="stylesheet" href="/css/mozilla.css"/>');
}
}
$(document).ready(function(){
setSpecificCss();
});