-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
48 lines (47 loc) · 1.63 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>AppleTV Card</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet">
<link href="dist/main.css" rel="stylesheet">
<link href="docs/demo.css" rel="stylesheet">
<script src="dist/main.js" defer></script>
</head>
<body>
<div>
<h1>AppleTV Card</h1>
<p id="cta">Hover me</p>
<div class="grid">
<div class="apple-tv-card-container" style="width:300px;">
<div class="apple-tv-card">
<a href="https://github.com/marcreichel/apple-tv-card" class="content"></a>
<div class="parallax-content">
<div style="width:1em;height:1em;border:.20em dashed white;"></div>
</div>
</div>
<div class="apple-tv-card-title">
Your awesome card
</div>
</div>
</div>
<div class="docs-link">
<a href="https://github.com/marcreichel/apple-tv-card#readme" target="_blank">
GitHub
</a>
</div>
</div>
<script>
(function() {
const isTouch = ('ontouchstart' in window) ||
(navigator.maxTouchPoints > 0) ||
(navigator.msMaxTouchPoints > 0);
document.getElementById('cta').innerText = isTouch ? 'Touch me' : 'Hover me';
})();
</script>
</body>
</html>