-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
77 lines (77 loc) · 2.09 KB
/
example.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Overlay</title>
<script src="build/build.js"></script>
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1,width=device-width, height=device-height"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="build/build.css">
<style>
body {
font: 500 16px/1.6 "Helvetica Neue", Helvetica, sans-serif;
padding: 0px;
}
.overlay p {
font-weight: 400;
color: #999;
}
.container {
max-width: 300px;
margin: 0 auto;
padding-top: 120px;
text-align: center;
}
.container p, .container a {
color: #666;
}
.button {
display: inline-block;
padding: 0.8em 1.2em;
margin: 0;
background: #222223;
color: #f9f9f8;
border: 0;
border-radius: 3px;
letter-spacing: 0.1em;
font: 700 0.8em/1 "Arial", sans-serif;
vertical-align: middle;
text-align: center;
text-decoration: none;
margin-bottom: 100px;
}
.button.active {
background: black;
}
.button:hover {
cursor: pointer;
opacity: 0.6;
}
</style>
</head>
<body>
<div class="container">
<button id="trigger" class="button">Click Me</button>
<p><a href="https://github.com/yuehu/overlay">Fork me on GitHub</a></p>
<p>Designed for <a href="http://yuehu.io/">Yuehu</a></p>
<p>A component by <a href="http://lepture.com/">Hsiaoming Yang</a></p>
</div>
<div style="display: none">
<div id="overlay-html">
<h1>Overlay</h1>
<p>An overlay is over the current page.</p>
<div style="margin-top:100px">
<a class="button" href="https://github.com/chemzqm/overlay">View Documentation</a>
</div>
</div>
</div>
<script>
var Overlay = require('overlay');
var el = document.getElementById('overlay-html');
document.getElementById('trigger').onclick = function() {
var o = new Overlay(el);
}
</script>
</body>
</html>