-
Notifications
You must be signed in to change notification settings - Fork 9
/
notification.html
41 lines (41 loc) · 1.51 KB
/
notification.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
<!DOCTYPE html>
<html>
<head>
<title>My Hangouts Circle Notifier</title>
<link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/css/common.css" />
<link rel="stylesheet" href="/css/notification.css" />
<script src="/js/libs/jquery-1.7.1.min.js"></script>
<script src="/js/libs/jquery.tmpl.min.js"></script>
<script src="/js/modules/circle_notifier/notification_controller.js"></script>
</head>
<body>
<div id="notification-container">
<h1><img src="/img/hangout-extras.png"/> Hangout Notifications: </h1>
<div id="hangouts-container">loading ...</div>
</div>
<script type="text/x-jquery-tmpl" id="hangouts-template">
{{each(i, hangout) hangouts}}
<div class="hangout-item {{if hangout.detail.isFull}}full{{/if}}">
<div class="hangout-item-sidebar">
<a class="button clickable" href="${hangout.detail.data.url}">
{{if hangout.detail.isFull}}Full{{else}}Join{{/if}}
</a>
</div>
<div class="hangout-item-content">
{{each(i, participant) hangout.participants}}
{{if participant.status}}
<a href="https://plus.google.com/${participant.id}/about" class="clickable">${participant.name}</a>
{{/if}}
{{/each}}
(${hangout.detail.totalParticipants}/10)
</div>
</div>
{{/each}}
</script>
<script>
var controller = new NotificationController();
controller.init();
</script>
</body>
</html>