-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
81 lines (68 loc) · 3.64 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name=viewport content="width=device-width, initial-scale=1.0, minimum-scale=0.5 maximum-scale=1.0">
<title>FreshTube</title>
<link rel="stylesheet" href="css/style.css?v=1.0">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<div id="title_bar">
<h1 id="main_title">FreshTube</h1>
<button id="settings_button" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-cog"></span></button>
</div>
<div id="error-box" class="alert alert-danger" role="alert"></div>
<form id="settings" class="well">
<div class="form-group">
<label for='apikey'>API Key</label>
<p class='quiet_text'>Use a YouTube API key from the <a href='https://console.developers.google.com'>Google Developer's Console</a>.</p>
<input type='text' id='apikey' class="form-control">
</div>
<div class="form-group">
<label for='video_urls'>Channels / Users</label>
<p class='quiet_text'>Paste YouTube URLs containing a username, handle or channel ID (not channel name), or podcast RSS feed URL. One URL per line.</p>
<textarea id="video_urls" rows=8 cols=50 class="form-control"></textarea>
</div>
<div class="form-group">
<p class='quiet_text'>(optional) Web link to a file containing the channel listing. Server must send appropriate <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">CORS</a> header.</p>
<input type='text' id="weblink_url" class="form-control">
</div>
<div class="form-group">
<input type="checkbox" id='highlight_new' value=1 checked> highlight new videos (since last refresh)<br>
</div>
<div class="form-group">
<label for="hide_group">Hide Videos</label>
<div id="hide_group" class="input-group">
<input type="checkbox" id='hide_old_check'> older than <input id="hide_old_days" type="number" size=3 value="7" min=1 /> days<br>
<input type="checkbox" id='hide_future_check'> screening > <input id="hide_future_hours" type="number" size=3 value="2" min=1 /> hours in the future<br>
<input type="checkbox" id='hide_time_check'> < <input id="hide_time_mins" type="number" size=3 value="20" min=1 /> minutes in duration
</div>
</div>
<div class="form-group">
<label for='vc_target'>Video Click Target</label>
<input type="url" id='vc_target' class="form-control" placeholder="https://videos.example.com/?video_url=%v">
<small class='form-text text-muted'>Used to override video click. Use macro '%v' to insert video URL into target URL (URL encoded).</small>
</div>
<button id='save_button' type="button" class="btn btn-success btn-lg">Save</button>
</form>
<div id='videos'>
</div>
<div id="footer">
<p class='quiet_text'><strong>Note:</strong> the API key & other data entered will be saved in your browser's local storage.</p>
<div class='github-link'><a href='https://github.com/porjo/freshtube'><img src='github-mark.svg' width="25px"/></a></div>
</div>
<div class="overlay">
<div class="spinner">
<div class="lds-dual-ring"></div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.11.10/dayjs.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.11.10/plugin/relativeTime.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.11.10/plugin/duration.min.js"></script>
<script src="js/script.js"></script>
</body>
</html>