-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpopup.html
110 lines (108 loc) · 4.86 KB
/
popup.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="popup.css">
<script src="./popup.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter&display=swap" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Nunito' rel='stylesheet'>
<title>Tempus</title>
</head>
<body>
<div id="settings">
<div id="density" style="height: 7%; margin-top: 7%; margin-bottom: 7%;">
<div style="position: relative; width: 100%; overflow:auto; ">
<span class="descriptionText">Marker block size</span>
<span id="valueDisplay" style="float: right; margin-right: 5%; font-size: 12px; font-family: 'Nunito';">1 second</span>
</div>
<input type="range" min="1" max="20" value="1" class="slider" id="densitySlider">
<div style="position: relative; width: 100%; overflow:auto; ">
<span style="float: left; margin-left: 5%; font-size: 11px; font-family: 'Nunito'; margin-top: 1%;">1</span>
<span style="float: right; margin-right: 5%; font-size: 11px; font-family: 'Nunito'; margin-top: 1%">20</span>
</div>
</div>
<hr class="betweenSections">
<div id="heatmap" style="height: 7%; margin-top: 7%; margin-bottom: 7%;">
<div style="position: relative; width: 100%; overflow:auto; ">
<span class="descriptionText">Show markers as heatmap</span>
<label class="switch">
<input class="inputCheck" type="checkbox" id="toggleHeatmap" checked>
<span class="circle" id="heatmapCircle"></span>
</label>
</div>
</div>
<hr class="betweenSections">
<div id="commentView" style="height: 7%; margin-top: 7%; margin-bottom: 7%;">
<div style="position: relative; width: 100%; overflow:auto; ">
<span class="descriptionText">Show marker on-click comment view </span>
<label class="switch">
<input class="inputCheck" type="checkbox" id="toggleComments" checked>
<span class="circle"></span>
</label>
</div>
</div>
<hr class="betweenSections">
<div id="liveCommentView" style="height: 7%; margin-top: 7%; margin-bottom: 7%;">
<div style="position: relative; width: 100%; overflow:auto; ">
<span class="descriptionText">Show comments replay view</span>
<label class="switch">
<input class="inputCheck" type="checkbox" id="toggleLiveComments">
<span class="circle"></span>
</label>
</div>
</div>
<hr class="betweenSections">
<div id="primaryColor" style="height: 7%; margin-top: 7%; margin-bottom: 7%;">
<div style="position: relative; width: 100%; overflow:auto; ">
<span class="descriptionText">Marker primary color</span>
<div id="colorChangeContainer" style="float: right; margin-right: 5%;">
<div style="margin-bottom: 5px; overflow: auto;">
<div id="colorPreview"></div>
<span>#</span><input type="text" id="hexInput" placeholder="FFFF00">
</div>
<center><button type="button" id="saveButton">Set</button></center>
</div>
</div>
</div>
<hr class="betweenSections">
<div id="apiKeySection" style="height: 7%; margin-top: 7%; margin-bottom: 7%;">
<div style="display: flex; align-items: center; justify-content: space-between; width: 100%;">
<span class="descriptionText">API Key <a href="https://github.com/knightron0/tempus#entering-an-api-key" target="_blank">(optional)</a></span>
<div class="inputToggleContainer">
<input type="text" class="apiKeyInput" placeholder="Enter API Key">
<label class="switch">
<input type="checkbox" class="toggleApiKey">
<span class="circle"></span>
</label>
</div>
</div>
</div>
<hr class="betweenSections">
</div>
<div id="otherURL">
Tempus is currently only supported on YouTube videos. Please visit a YouTube video to access the settings menu.
</div>
<div id="noComments">
Sorry, Tempus was not able to find any comments containing timestamps. Please try another YouTube video.
</div>
<div id="loadingComments">
Tempus is loading comments for your YouTube video right now, please wait for a little bit.
<br>
<br>
If this takes too long, we may have exhausted our API quota. You have the option to <a href="https://github.com/knightron0/tempus#entering-an-api-key" target="_blank">generate your own API key</a> and utilize it here:
<div id="apiKeySection" style="height: 7%; margin-top: 7%; margin-bottom: 7%;">
<div style="display: flex; align-items: center; justify-content: space-evenly; width: 100%;">
<span class="descriptionText" style="white-space: nowrap;">API Key</span>
<div class="inputToggleContainer">
<input type="text" class="apiKeyInput" placeholder="Enter API Key">
<label class="switch">
<input type="checkbox" class="toggleApiKey">
<span class="circle"></span>
</label>
</div>
</div>
</div>
<hr class="betweenSections">
</div>
</body>
</html>