Little modification

This commit is contained in:
Faisalman 2012-03-06 04:58:20 +07:00
parent be5855ecc2
commit 306e48522b

View File

@ -24,6 +24,9 @@
header, section, footer { header, section, footer {
padding: 40px 0 0; padding: 40px 0 0;
} }
h1 {
margin-bottom: 10px;
}
pre { pre {
margin: 0 0 20px; margin: 0 0 20px;
padding: 10px; padding: 10px;
@ -43,9 +46,6 @@
padding: 20px; padding: 20px;
text-align: center; text-align: center;
} }
tr:first-child th:first-child {
border: 0;
}
tr:last-child th, tr:last-child td { tr:last-child th, tr:last-child td {
border-bottom: 1px solid #ccc; border-bottom: 1px solid #ccc;
} }
@ -64,25 +64,23 @@
</head> </head>
<body> <body>
<header> <header>
<h1>UA-Parser.js - JavaScript-based User-Agent Parser</h1> <h1>UA-Parser.js</h1>
<h2>JavaScript-based User-Agent Parser</h2>
</header> </header>
<section> <section>
<pre> <pre>
</pre> </pre>
<table> <table>
<tr> <tr>
<th></th>
<th>Browser</th> <th>Browser</th>
<th>Engine</th> <th>Engine</th>
<th>OS</th> <th>OS</th>
</tr> </tr>
<tr> <tr>
<th>Name</th>
<td></td> <td></td>
<td></td> <td></td>
<td></td> <td></td>
</tr> </tr>
<th>Version</th>
<td></td> <td></td>
<td></td> <td></td>
<td></td> <td></td>
@ -123,7 +121,7 @@
tbl[3].innerText = browser.release; tbl[3].innerText = browser.release;
tbl[4].innerText = engine.version; tbl[4].innerText = engine.version;
tbl[5].innerText = os.version; tbl[5].innerText = os.version;
pre.innerHTML = 'Result for <strong>' + (uastring ? uastring.replace(/</g,'&lt;') : parser.ua) + '</strong>'; pre.innerHTML = 'Result for <strong>' + (uastring ? uastring.replace(/</g,'&lt;') : 'your browser\'s user-agent string') + '</strong>';
} }
fillTable(); fillTable();
sel.addEventListener('change', function(){ sel.addEventListener('change', function(){
@ -147,4 +145,4 @@
})(); })();
</script> </script>
</body> </body>
</html> </html>