-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbrowser-detect-javascript.html
More file actions
42 lines (38 loc) · 1.67 KB
/
browser-detect-javascript.html
File metadata and controls
42 lines (38 loc) · 1.67 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Browser Detection with JavaScript</title>
<meta name="description" content="Demo of Navigator object and Detect.js">
<meta name="author" content="Six Revisions">
<link rel="icon" href="http://sixrevisions.com/favicon.ico" type="image/x-icon" />
<link href='http://fonts.googleapis.com/css?family=Roboto|Roboto+Slab:300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="presentation-only/presentation-only.css">
<script src="Detect.js/detect.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="browser-detect-javascript.js"></script>
</head>
<body>
<div class="container">
<header class="header">
<h1>Browser Detection with JavaScript</h1>
<p class="sub">A couple of techniques for getting browser and operating system information.</p>
<nav class="nav">
<p><a href="http://sixrevisions.com/javascript/browser-detection-javascript/">View tutorial</a></p>
</nav>
</header>
<section class="section">
<h2 class="sub">Detection method</h2>
<p>
<a class="button" id="navigator-obj" href="#message-area">Navigator.userAgent</a>
<a class="button b" id="detect-js" href="#message-area">Detect.js</a>
</p>
</section>
<section id="message-area" class="section message"><noscript>JavaScript is not available in your browser. This demo won't work.</noscript></section>
</div>
</body>
</html>