-
Notifications
You must be signed in to change notification settings - Fork 0
/
mobile-detect.html
31 lines (31 loc) · 1.5 KB
/
mobile-detect.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no,initial-scale=1,minimum-scale=1,maximum-scale=1">
<title>Mobile-detect.js live Demo</title>
<link rel="stylesheet" href="./styles/mobile-detect.css">
</head>
<body>
<div class="container">
<h1>Mobile-detect.js</h1>
<div class="container-version">version: <span>1.4.3</span></div>
<div class="container-main active" id="notice-desktop">
<p>You are on a <em>desktop</em> browser. Mobile-Detect is mainly meant for mobile device detection.</p>
<button id="btn-desktop-show">OK, still show me the results</button>
</div>
<div class="container-main" id="container-main">
<section class="section-main" id="section-base"></section>
<section class="section-main"id="section-is"></section>
<section class="section-main" id="section-version"></section>
</div>
</div>
<div class="container-footnote">
<div class="footnote-line"><div class="background-color background-color-string"></div><p>result is String</p></div>
<div class="footnote-line"><div class="background-color background-color-boolean"></div><p>result is Boolean</p></div>
<div class="footnote-line"><div class="background-color background-color-number"></div><p>result is Number</p></div>
</div>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mobile-detect/1.4.3/mobile-detect.js"></script>
<script src="./scripts/mobile-detect.js"></script>
</html>