-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.html
214 lines (178 loc) · 7.96 KB
/
admin.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!doctype html>
<!--
This file is part of Troff.
Troff is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.
Troff is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Troff. If not, see <http://www.gnu.org/licenses/>.
-->
<html lang="en-US" class="overflow-hidden" >
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-158173734-3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-158173734-3');
</script>
<title>Troff Admin</title>
<meta charset="UTF-8">
<meta name="description" content="Tips, trix and tutoring for using the music player Troff. How to repeat parts of the song">
<meta name="keywords" content="Music player, Troff, Loop, Repeat, Training, How To">
<link rel="icon" href="assets/logos/favicon.ico">
<meta name="theme-color" content="#003366"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
button,input,a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{font-weight:400;margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}
</style>
<link rel="stylesheet" type="text/css" href="stylesheets/style-standard.css" />
<link rel="stylesheet" type="text/css" href="stylesheets/style.css" />
<link rel="stylesheet" type="text/css" href="stylesheets/col1.css" />
<link rel="stylesheet" type="text/css" href="stylesheets/help-style.css" />
<!--script src="assets/internal/common.js"></script -->
<link rel="stylesheet" type="text/css" href="/assets/external/Fontello-2023-05-08/css/troff-icon-pack.css" />
<link rel="stylesheet" type="text/css" href="/assets/internal/fontello-extra.css" />
<script src="assets/external/jquery-3.6.0.min.js"></script>
<script src="assets/internal/st-script.js"></script>
<script src="assets/internal/environment.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-storage.js"></script>
<script src="admin.js"></script>
</head>
<body class="backgroundColor flexCol">
<input id="blur-hack" type="button"/>
<header class="m-2">
<span class="d-flex d-sm-none center w-48 h-48 cursor-pointer toggle-navigation text-15"
data-toggle="collapse" data-target="#navigation">
<i class="fa-menu"></i>
</span>
<img src="assets/logos/logo.svg" width="48" alt="logo"/>
<h1>Troff - Admin</h1>
</header>
<div class="flexRow fill-height-minus-58">
<section class="flexCol flexScroll">
<article id="signIn" class="showForNewUsers hidden flex-col">
<h2>Sign in</h2>
<p>
You must be admin in to use these features!
</p>
<div>
<button id="googleSignIn" class="btn regularButton">Sign in with Google</button>
</div>
</article> <!-- signIn -->
<article id="unauthorised" class="showForUnauthorised hidden">
<h2>Unauthorised</h2>
<p>
You are not authorised to see this.
</p>
<p>
Happy training!
</p>
</article> <!-- signIn -->
<article id="welcome" class="hidden showForLoggedInUsers" >
<h2>Hello <span id="userName"></span></h2>
<p><span id="userEmail"></span></p>
<p><span id="userPhoneNumber"></span></p>
<button id="signOut" class="btn regularButton">Sign out</button>
</article> <!-- signIn -->
<article class="hidden showForLoggedInUsers" >
<h2>Files</h2>
<p>Total Size: <span class="totalSize"></span></p>
<p class="pl-2">Nr of files: <span class="nrOfFiles"></span></p>
<p class="pl-2">Nr of deleted files: <span class="nrOfDeletedFiles"></span></p>
<div>
<button class="btn regularButton" id="sortUpdatedDesc">Newest first</button>
<button class="btn regularButton" id="sortUpdatedAsc">...last</button>
<button class="ml-3 btn regularButton" id="sortSizeDesc">Biggest First</button>
<button class="btn regularButton" id="sortSizeAsc">...last</button>
</div>
<div id="fileList" class="flexCol"></div>
<div id="template" class="hidden">
<div class="bg-Burlywood container flex-row p-2 my-1">
<div class="row">
<div class="col-sm">
<h3><a href="#" target="_blank" class="fileName"></a></h3>
<p><span class="fileType"></span>, <span class="fileSize"></span></p>
<p>TroffData: <span class="troffData"></span>,
Public: <span class="troffDataPublic"></span>,
Private: <span class="troffDataPrivate"></span></p>
<p>Updated: <span class="updated"></span></p>
</div>
<div class="col-sm flex-grow-0">
<button class="removeFile regularButton">Remove</button>
<span class="hidden grayOut removedText">Removed</span>
<button class="makeAllPrivate regularButton mt-2">Make All Private</button>
<button class="makeAllPublic regularButton mt-2">Make All Public</button>
</div>
</div>
<div class="row">
<div class="col-sm">
<input type="button" class="stOnOffButton toggleNext" value="Show Markers" />
<div class="container flex-row p-1 my-1 markerList">
</div>
</div>
</div>
</div>
</div>
<div id="troffDataTemplate" class="hidden">
<div class="row">
<div class="col-sm">
<button class="troffDataMakePrivate regularButton float-right">Make Private</button>
<button class="troffDataMakePublic regularButton float-right hidden">Make Public</button>
<h4><span class="troffDataPublicOrPrivate"></span>: <a href="#" target="_blank" class="troffDataId"></a></h4>
<p class="m-0">States: <span class="troffDataNrStates"></span></p>
<p class="m-0">Markers: <span class="troffDataNrMarkers"></span></p>
<p class="troffDataInfo text-truncate w-100"></p>
</div>
</div>
</div>
</article> <!-- signIn -->
<footer id="footer" class="white flexRow">
<div class="flexCol">
<p>
Contact a human:
<a class="white" target=_blank rel="noopener" href="mailto:slimsimapps@gmail.com">
slimsimapps@gmail.com</a>.
</p>
<p>
Like us on
<a class="white" target=_blank rel="noopener"
href="https://www.facebook.com/troffmusic">facebook</a>!
</p>
<p>
<a class="white" target=_blank rel="noopener" href="LICENSE.html">LICENSE</a>.
</p>
<p>
<a class="white" target=_blank rel="noopener" href="privacy_policy.html">Privacy Policy</a>.
</p>
<p>
<a class="white" target=_blank rel="noopener" href="terms.html">Terms and conditions</a>.
</p>
<p>
Happy training!
</p>
</div>
<div class="flexCol white center flexOne">
<p class="white Big">Troff</p>
<p class="white Big textCenter">Training with music</p>
</div>
</footer>
</section>
<div id="alertDialog" class="outerDialog p-3 hidden">
<div class="innerDialog largeDialog flexCol scroll mh-100">
<h2 id="alertHeader"></h2>
<div id="alertText"></div>
</div>
</div>
</div>
</body>
</html>