-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (49 loc) · 1.38 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Check Browser Type and Version</title>
<style>
body {
color: black;
background-color: white;
font-family: 'Fira Sans', sans-serif;
font-weight: 300;
margin: 0;
padding: 3rem;
}
h1 {
color: darkgrey;
text-align: center;
font-weight: 300;
font-size: 1.5rem;
line-height: 2rem;
}
h2 {
text-align: center;
font-weight: 300;
font-size: 4rem;
}
p {
color: darkgrey;
text-align: center;
font-family: 'Fira Mono', monospace;
font-size: 1rem;
line-height: 1.5rem;
}
</style>
</head>
<body>
<h1>Detect browser version with JavaScript.</h1>
<h2 id="result">detecting…</h2>
<p id="userAgent"></p>
<script src="./classic/browsers/Firefox.js" defer></script>
<script src="./classic/browsers/Chrome.js" defer></script>
<script src="./classic/browsers/Edge.js" defer></script>
<script src="./classic/browsers/Safari.js" defer></script>
<script src="./classic/browsers/IE.js" defer></script>
<script src="./classic/main.js" defer></script>
</body>
</html>