mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 16:08:47 +03:00
Add clearer brief description
This commit is contained in:
parent
70687ecd2c
commit
43a5a5d888
35
index.html
35
index.html
@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>UA-Parser.js - JavaScript-based User-Agent Parser</title>
|
<title>UA-Parser.js - JavaScript-based User-Agent Parser</title>
|
||||||
<meta name="author" content="Faisalman" />
|
<meta name="author" content="Faisalman" />
|
||||||
<meta name="description" content="Small script to extract system info (browser, engine, os) from user-agent string" />
|
<meta name="description" content="A small, quick & dirty script, which aims to extract a long piece of information about the details of the system contained in a user-agent string, into some small yet valuable pieces of commonly needed information such as the name of the browser & operating system along with the version" />
|
||||||
<meta name="keywords" content="user agent, parser, javascript, detect, details, new, browser, engine, mobile, device, operating system" />
|
<meta name="keywords" content="user agent, parser, javascript, detect, details, new, browser, engine, mobile, device, operating system" />
|
||||||
<link href='http://fonts.googleapis.com/css?family=Dancing+Script' rel='stylesheet' type='text/css'>
|
<link href='http://fonts.googleapis.com/css?family=Dancing+Script' rel='stylesheet' type='text/css'>
|
||||||
<style>
|
<style>
|
||||||
@ -11,9 +11,10 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
html {
|
html, input, select {
|
||||||
font: 14px/20px Helvetica, Ubuntu, Arial, sans-serif;
|
font: 14px/20px Georgia, Helvetica, Ubuntu, Arial, sans-serif;
|
||||||
background: #f0f0f0;
|
background: #f0f0f0;
|
||||||
|
color: #333;
|
||||||
}
|
}
|
||||||
body {
|
body {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
@ -23,7 +24,7 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
header, section, footer {
|
header, section, footer {
|
||||||
padding: 50px 0 0;
|
padding: 20px 0 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
h1 {
|
h1 {
|
||||||
@ -33,6 +34,13 @@
|
|||||||
h1, h2, th, .ua {
|
h1, h2, th, .ua {
|
||||||
font-family: 'Dancing Script', Helvetica, Ubuntu, Arial, sans-serif;
|
font-family: 'Dancing Script', Helvetica, Ubuntu, Arial, sans-serif;
|
||||||
}
|
}
|
||||||
|
.share {
|
||||||
|
position: absolute;
|
||||||
|
width: 100px;
|
||||||
|
height: 20px;
|
||||||
|
top: 60px;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
pre {
|
pre {
|
||||||
margin: 0 0 20px;
|
margin: 0 0 20px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
@ -61,7 +69,11 @@
|
|||||||
th:last-child, td:last-child {
|
th:last-child, td:last-child {
|
||||||
border-right: 1px solid #ccc;
|
border-right: 1px solid #ccc;
|
||||||
}
|
}
|
||||||
select, input {
|
td {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
select, input, .grey {
|
||||||
|
color: #777;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
input {
|
input {
|
||||||
@ -70,7 +82,6 @@
|
|||||||
box-shadow: inset 0 0 10px #ccc;
|
box-shadow: inset 0 0 10px #ccc;
|
||||||
}
|
}
|
||||||
hr {
|
hr {
|
||||||
border: 0;
|
|
||||||
margin: 20px 0;
|
margin: 20px 0;
|
||||||
}
|
}
|
||||||
p {
|
p {
|
||||||
@ -87,6 +98,12 @@
|
|||||||
<header>
|
<header>
|
||||||
<h1>UA-Parser.js</h1>
|
<h1>UA-Parser.js</h1>
|
||||||
<h2>JavaScript-based User-Agent Parser</h2>
|
<h2>JavaScript-based User-Agent Parser</h2>
|
||||||
|
<hr />
|
||||||
|
<p class="grey">A small, quick & dirty script, which aims to extract a long piece of information about the details of the system contained in a user-agent string, into some small yet valuable pieces of commonly needed information such as the name of the browser & operating system along with the version</p>
|
||||||
|
<p class="share">
|
||||||
|
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="fyzlman">Tweet</a>
|
||||||
|
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
|
||||||
|
</p>
|
||||||
</header>
|
</header>
|
||||||
<section>
|
<section>
|
||||||
<pre>
|
<pre>
|
||||||
@ -113,15 +130,13 @@
|
|||||||
<select>
|
<select>
|
||||||
<option>Pick one</option>
|
<option>Pick one</option>
|
||||||
</select>
|
</select>
|
||||||
<p>or <span class="ua">Enter</span> your user-agent string here to be tested:</p>
|
<p>or <span class="ua">Enter</span> any user-agent string you want to test here:</p>
|
||||||
<input type="text" />
|
<input type="text" />
|
||||||
</section>
|
</section>
|
||||||
<footer>
|
<footer>
|
||||||
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="fyzlman">Tweet</a>
|
|
||||||
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
|
|
||||||
<hr />
|
<hr />
|
||||||
<p>
|
<p>
|
||||||
<span class="ua">UA-Parser.js</span> © 2012 Faisalman. Download / Fork @
|
<span class="ua">UA-Parser.js</span> © 2012 Faisalman. Licensed under GPLv2. Download / Fork @
|
||||||
<a href="https://github.com/faisalman/ua-parser-js">https://github.com/faisalman/ua-parser-js</a>
|
<a href="https://github.com/faisalman/ua-parser-js">https://github.com/faisalman/ua-parser-js</a>
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user