-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
127 lines (105 loc) · 5.11 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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>GitHub Web Notifier</title>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<link href="sticky-footer-navbar.css" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" id="favicon" href="favicon.png">
</head>
<body>
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#" title="GitHub Web Notifier"><i class="fa fa-bell-o"></i> GHWN</a>
</div>
<span id="form"></span>
</div>
</nav>
<!-- index view -->
<div class="container" id="index">
<div id="alert" class="alert alert-warning hidden" role="alert">
Sorry, this browser doesn't seem to support desktop notification.
</div>
<div class="page-header">
<h1>Desktop notifications for GitHub</h1>
</div>
<p>
<img class="hidden-xs img-responsive " src="screenshot.png">
<img class="visible-xs-inline img-responsive img-center" src="screenshot-xs.png">
</p>
<hr>
<p>
<strong>Nothing to install</strong>, simply enter your GitHub username and never miss something (<strong>private repositories supported</strong>).
</p>
<p>
Works on OS X, Linux and Windows.
</p>
<hr>
<p>
<i class="fa fa-thumb-tack"></i>
Pin this tab to receive notifications when you open your browser.
</p>
<p>
<i class="fa fa-clock-o"></i>
New events are fetched every minute.
</p>
</div>
<!-- list view -->
<div class="container" id="list"></div>
<footer class="footer">
<div class="container">
<p class="text-muted">
GitHub Web Notifier
<i class="fa fa-code"></i> with <i class="fa fa-heart-o"></i>
by <a href="https://github.com/typicode">typicode</a>
<span style="display: inline-block; width: 20px"></span>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://typicode.github.io/ghwn" data-text="Get desktop notifications for #github (nothing to install)" data-via="typicode" data-dnt="true">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<iframe src="https://ghbtns.com/github-btn.html?user=typicode&repo=ghwn&type=star&count=false" frameborder="0" scrolling="0" width="50px" height="20px"></iframe>
</p>
</div>
</footer>
<!-- Form template -->
<script id="form-template" type="text/html">
<form class="navbar-form navbar-left">
<div class="form-group">
<input type="text" id="input" class="form-control" name="name" placeholder="Your GitHub username" autocapitalize="off">
</div>
<button type="submit" class="btn btn-success">Watch</button>
</form>
</script>
<!-- List template -->
<script id="list-template" type="text/html">
<p><em>Watching... (refreshed every minute)</em></p>
<hr>
<% _.each(collection, function (model) { %>
<div class="item">
<p>
<strong><a href="<%= eventURL(model) %>" target="_blank"><%= model.type %></a></strong>
on <a href="https://github.com/<%= model.repo.name %>" target="_blank"><%= model.repo.name %></a>
by <a href="https://github.com/<%= model.actor.login %>" target="_blank"><img src="<%= model.actor.avatar_url %>" class="avatar" /> <%= model.actor.login %></a>
at <%= new Date(model.created_at).toLocaleTimeString() %>
</p>
</div>
<% }); %>
</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.2.0/backbone-min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/tinycon/0.5/tinycon.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/ifvisible/1.0.3/ifvisible.min.js"></script>
<script src="script.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-44497010-5', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>