-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (41 loc) · 2.09 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>Oh Hey! - Simple, site-wide notifications</title>
<link rel="stylesheet" type="text/css" href="build/index.css" />
<link rel="stylesheet" type="text/css" href="build/ohhey.css" />
<link rel="stylesheet" type="text/css" href="build/ohhey-extend.css" />
<meta property="og:title" content="Oh Hey! - Simple, site-wide notifications" />
<meta property="og:url" content="http://hrag.github.io/ohhey" />
<meta property="og:image" content="http://google.com/fb_img.jpg" />
<meta property="og:description" content="Oh Hey! - Simple, site-wide notifications" />
<meta property="og:site_name" content="Oh Hey! - Simple, site-wide notifications" />
</head>
<body>
<h1>Oh Hey!</h1>
<h2>A simple, drop-in script for site-wide notifictions</h2>
<h3>Here's an example of the function</h3>
<pre>ohHey('confirm', 'I just clicked this button');</pre>
<div class="example">
<button class="green" onclick="ohHey('confirm', 'Sweet - Things went well and you\'re a winner!');">A positive alert</button>
<span>This executes: ohHey("confirm", "Sweet - Things went well and you're a winner!");</span>
</div>
<div class="example">
<button class="orange" onclick="ohHey('notice', 'FYI - This thing happened');">A neutral alert</button>
<span>This executes: ohHey("notice", "FYI - This thing happened");</span>
</div>
<div class="example">
<button class="red" onclick="ohHey('urgent', 'Oops - It looks like some shit broke');">An urgent alert</button>
<span>This executes: ohHey("urgent", "Oops - It looks like some shit broke");</span>
</div>
<div class="example">
<button class="grey" onclick="ohHey();">Close the alert</button>
<span>This executes: ohHey();</span>
</div>
<p><a href="http://github.com/hrag/ohhey" title="Oh Hey Github">Check this out on GitHub</a></p>
</body>
<script src="build/third/jquery-2.2.0.min.js" type="text/javascript"></script>
<script src="build/ohhey-1.0.0.js"></script>
</html>