mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-28 00:18:45 +03:00
Little modification
This commit is contained in:
parent
be5855ecc2
commit
306e48522b
16
index.html
16
index.html
@ -24,6 +24,9 @@
|
||||
header, section, footer {
|
||||
padding: 40px 0 0;
|
||||
}
|
||||
h1 {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
pre {
|
||||
margin: 0 0 20px;
|
||||
padding: 10px;
|
||||
@ -43,9 +46,6 @@
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
tr:first-child th:first-child {
|
||||
border: 0;
|
||||
}
|
||||
tr:last-child th, tr:last-child td {
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
@ -64,25 +64,23 @@
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>UA-Parser.js - JavaScript-based User-Agent Parser</h1>
|
||||
<h1>UA-Parser.js</h1>
|
||||
<h2>JavaScript-based User-Agent Parser</h2>
|
||||
</header>
|
||||
<section>
|
||||
<pre>
|
||||
</pre>
|
||||
<table>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Browser</th>
|
||||
<th>Engine</th>
|
||||
<th>OS</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<th>Version</th>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
@ -123,7 +121,7 @@
|
||||
tbl[3].innerText = browser.release;
|
||||
tbl[4].innerText = engine.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();
|
||||
sel.addEventListener('change', function(){
|
||||
@ -147,4 +145,4 @@
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user