-
-
Notifications
You must be signed in to change notification settings - Fork 72
/
live.html
96 lines (82 loc) · 4.58 KB
/
live.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Live notifications</title>
<base target="_blank">
<meta charset="utf-8">
<meta name="author" content="Stefan Sundin">
<meta name="description" content="Get RSS feeds for services">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/css/live.css">
<script src="https://code.jquery.com/jquery-2.2.3.min.js" integrity="sha256-a23g1Nt4dtEYOj7bR+vTu7+T8VP13humZFBJNIYoEJo=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="https://cdn.rawgit.com/rmm5t/jquery-timeago/v1.5.3/jquery.timeago.js" integrity="sha384-dQvpXViVb0WZSjp9d7efnqmvZsiU7hNfuna9ebReA/0XRrD4Q+iGmp9EF7PZ7/JW" crossorigin="anonymous"></script>
<script src="/js/live.js"></script>
</head>
<body>
<header>
<img src="/img/icon128.png" width="128" height="128" alt="Icon" itemprop="image">
<h1 itemprop="name">Live notifier</h1>
<h2 itemprop="description">Add channels to get browser notification when they go live.</h2>
</header>
<div class="container">
<div class="checkbox text-center">
<label><input type="checkbox" id="mute_notifications"> Mute notifications</label>
</div>
<form class="input-group" id="facebook_form">
<div class="input-group-addon"><label for="facebook_q">Facebook</label></div>
<input class="form-control" type="search" id="facebook_q" placeholder="Enter a Facebook page name or its url." required>
<span class="input-group-btn">
<button class="btn btn-primary" type="submit">Add</button>
</span>
</form>
<form class="input-group" id="youtube_form">
<div class="input-group-addon"><label for="youtube_q">YouTube</label></div>
<input class="form-control" type="search" name="q" id="youtube_q" placeholder="Enter a YouTube channel name, channel id, or a url to a channel or video." required>
<span class="input-group-btn">
<button class="btn btn-primary" type="submit">Add</button>
</span>
</form>
<form class="input-group" id="twitch_form">
<div class="input-group-addon"><label for="twitch_q">Twitch</label></div>
<input class="form-control" type="search" name="q" id="twitch_q" placeholder="Enter a Twitch username or a url to a user or video." required>
<span class="input-group-btn">
<button class="btn btn-primary" type="submit">Add</button>
</span>
</form>
<p>Polled <span id="counter">0</span> times (last updated at <span id="last_updated">N/A</span>).</p>
<h2>API keys</h2>
<form class="input-group">
<div class="input-group-addon"><label for="facebook_token">Facebook</label></div>
<input class="form-control" type="search" id="facebook_token" placeholder="Enter a Facebook token (client_id|client_secret)." required monospace>
<span class="input-group-btn">
<button class="btn btn-primary" type="submit">Test</button>
</span>
</form>
<form class="input-group">
<div class="input-group-addon"><label for="youtube_key">YouTube</label></div>
<input class="form-control" type="search" id="youtube_key" placeholder="Enter a Google token (AIza...) with YouTube API enabled." required monospace>
<span class="input-group-btn">
<button class="btn btn-primary" type="submit">Test</button>
</span>
</form>
<form class="input-group">
<div class="input-group-addon"><label for="twitch_client_id">Twitch</label></div>
<input class="form-control" type="search" id="twitch_client_id" placeholder="Enter a Twitch Client ID." required monospace>
<span class="input-group-btn">
<button class="btn btn-primary" type="submit">Test</button>
</span>
</form>
<h2>Facebook pages</h2>
<div id="facebook_accounts"></div>
<h2>YouTube channels</h2>
<div id="youtube_accounts"></div>
<h2>Twitch channels</h2>
<div id="twitch_accounts"></div>
</div>
</body>
</html>