-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.html
More file actions
179 lines (179 loc) · 5.75 KB
/
Copy pathadmin.html
File metadata and controls
179 lines (179 loc) · 5.75 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MRSM Info TV Admin</title>
<link rel="stylesheet" href="style.css" />
</head>
<body class="admin-page">
<main class="admin-shell">
<header class="admin-header">
<div>
<p class="eyebrow">MRSM INFO TV</p>
<h1>Display control room</h1>
<p class="lead">
Manage the playlist, picture announcements, ticker, and timetable
embed.
</p>
</div>
<a class="button button-secondary" href="index.html">Open display</a>
</header>
<section class="admin-grid">
<div class="admin-card">
<p class="eyebrow">VIDEO PLAYLIST</p>
<h2>Add a video</h2>
<form id="slide-form">
<label
>Title<input
id="slide-title"
type="text"
placeholder="Campus update" /></label
><label
>Description<textarea
id="slide-message"
rows="3"
placeholder="Short description"
></textarea></label
><label
>Video URL<input
id="slide-video"
type="url"
required
placeholder="https://example.com/video.mp4" /></label
><label
>Play for at least (seconds)<input
id="slide-duration"
type="number"
min="5"
value="30"
/></label>
<div class="button-row">
<button class="button button-primary" type="submit">
Save video</button
><button
class="button button-secondary"
type="button"
id="clear-btn"
>
Clear
</button>
</div>
</form>
</div>
<div class="admin-card">
<p class="eyebrow">PICTURE ANNOUNCEMENTS</p>
<h2>Add BWP or Maktab</h2>
<form id="announcement-form">
<label
>Section<select id="announcement-section">
<option value="bwp">BWP</option>
<option value="maktab">Maktab</option>
</select></label
><label
>Title<input
id="announcement-title"
type="text"
required
placeholder="Announcement title" /></label
><label
>Picture URL<input
id="announcement-image"
type="url"
required
placeholder="https://example.com/poster.jpg" /></label
><label
>Open hyperlink<input
id="announcement-link"
type="url"
required
placeholder="https://example.com/details" /></label
><label
>Show for (seconds)<input
id="announcement-duration"
type="number"
min="5"
value="12"
/></label>
<div class="button-row">
<button class="button button-primary" type="submit">
Save announcement</button
><button
class="button button-secondary"
type="button"
id="clear-announcement-btn"
>
Clear
</button>
</div>
</form>
</div>
<div class="admin-card admin-wide">
<p class="eyebrow">DISPLAY SETTINGS</p>
<h2>Ticker and timetable</h2>
<form id="settings-form" class="settings-grid">
<label class="wide-field"
>Scrolling ticker text<textarea
id="footer-news"
rows="3"
placeholder="Text separated by dots or bullets"
></textarea></label
><label
>Scroll speed (seconds)<input
id="ticker-duration"
type="number"
min="5"
value="24" /></label
><label
>Timetable embed URL<input
id="timetable-url"
type="url"
placeholder="https://calendar.example.com/embed" /></label
><label
>Timetable height (px)<input
id="timetable-height"
type="number"
min="100"
max="500"
value="210"
/></label>
<div class="wide-field">
<button class="button button-primary" type="submit">
Save display settings
</button>
</div>
</form>
<p class="hint">
Use a public HTTPS embed URL. The timetable area is intentionally
smaller than the video area.
</p>
</div>
<div class="admin-card admin-wide">
<p class="eyebrow">CONTENT LIBRARY</p>
<h2>Saved videos</h2>
<div id="slide-list" class="slide-list"></div>
<div class="list-footer">
<button
class="button button-secondary"
type="button"
id="export-btn"
>
Export JSON</button
><button
class="button button-secondary"
type="button"
id="import-btn"
>
Import JSON
</button>
</div>
<textarea
id="import-json"
placeholder="Paste video JSON here"
></textarea>
</div>
</section>
</main>
<script src="script.js"></script>
</body>
</html>