mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-28 08:28:47 +03:00
Little modification
This commit is contained in:
parent
be5855ecc2
commit
306e48522b
14
index.html
14
index.html
@ -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,'<') : parser.ua) + '</strong>';
|
pre.innerHTML = 'Result for <strong>' + (uastring ? uastring.replace(/</g,'<') : 'your browser\'s user-agent string') + '</strong>';
|
||||||
}
|
}
|
||||||
fillTable();
|
fillTable();
|
||||||
sel.addEventListener('change', function(){
|
sel.addEventListener('change', function(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user