-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
123 lines (100 loc) · 4.73 KB
/
index.php
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
<?php
/*
Lesson Player
View your lessons, do not miss the mark.
Copyright (C) 2021 Vincenzo Padula
This program 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.
This program 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 this program. If not, see <https://www.gnu.org/licenses/>.
*/
include("_connect.php");
$dbh->close();
?>
<!DOCTYPE html>
<html lang="<?php echo $langCode; ?>">
<head>
<title>Lesson Player</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="manifest" href="manifest.json">
<!-- Disable cache (to avoid problems in updates. Better solutions are welcome) -->
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<!-- VideoJS -->
<!-- <script type="text/javascript">window.HELP_IMPROVE_VIDEOJS = false;</script> -->
<!-- <script src="https://unpkg.com/video.js@7/dist/video.min.js"></script> -->
<!-- <link href="https://unpkg.com/video.js@7/dist/video-js.min.css" rel="stylesheet"> -->
<script src="video.js@7.11.8/video.min.js"></script>
<link href="video.js@7.11.8/video-js.min.css" rel="stylesheet">
<link href="video.js@7.11.8/theme.css" rel="stylesheet">
<!-- Plugins -->
<script src="plugins/vjs-notifier/vjs-notifier.js"></script>
<link href="plugins/vjs-notifier/vjs-notifier.css" rel="stylesheet">
<script src="plugins/vjs-silences/vjs-silences.js"></script>
<link href="plugins/vjs-silences/vjs-silences.css" rel="stylesheet">
<script src="plugins/vjs-lesson-overlay/vjs-lesson-overlay.js"></script>
<link href="plugins/vjs-lesson-overlay/vjs-lesson-overlay.css" rel="stylesheet">
<script src="plugins/vjs-area-selector/vjs-area-selector.js"></script>
<link href="plugins/vjs-area-selector/vjs-area-selector.css" rel="stylesheet">
<script src="plugins/vjs-zoom/vjs-zoom.js"></script>
<link href="plugins/vjs-zoom/vjs-zoom.css" rel="stylesheet">
<script src="plugins/vjs-take-notes/vjs-take-notes.js"></script>
<link href="plugins/vjs-take-notes/vjs-take-notes.css" rel="stylesheet">
<link href="style/style.css" rel="stylesheet">
<link href="style/message.css" rel="stylesheet">
<link href="style/player.css" rel="stylesheet">
<link href="style/cards.css" rel="stylesheet">
<link href="style/form.css" rel="stylesheet">
<!-- Change the theme of the site. Default is "themes/dark.css" -->
<link id="theme" href="themes/dark.css" rel="stylesheet">
<script type="text/javascript">
const lang = <?php echo json_encode($lang); ?>;
const themes = <?php echo json_encode(glob("themes/*.css")) ?>;
</script>
<script src="code.js" type="text/javascript"></script>
<script src="js/ui.js" type="text/javascript"></script>
<script src="js/message.js" type="text/javascript"></script>
<script src="js/form.js" type="text/javascript"></script>
<script src="js/lesson.js" type="text/javascript"></script>
<script src="js/class.js" type="text/javascript"></script>
<script src="js/player.js" type="text/javascript"></script>
<link rel="icon" href="img/icon.svg" type="image/svg+xml" />
<link rel="shortcut icon" href="img/icon.ico" type="image/x-icon" />
<link rel="apple-touch-icon" href="img/icon.svg" type="image/svg+xml" />
</head>
<body>
<div id="header">
<div id="header-homepage" title="<?php echo $lang->homePage; ?>"></div>
<div id="header-title"></div>
</div>
<div id="my-p-background">
<div id="my-p-wrapper">
<video id="my-player" disableRemotePlayback class="video-js vjs-theme-lesson"></video>
</div>
</div>
<div id="container"></div>
<footer>
<p>Developed by <a href="https://vincenzopadula.altervista.org" target="_blank">Vincenzo Padula</a></p>
<p>
<a href="JavaScript:UI.showCredits();"><?php echo $lang->credits; ?></a>
·
<a href="JavaScript:UI.feedback();">Feedback</a>
·
<a href="https://vincenzopadula.altervista.org/docs/lesson-player/" target="_blank"><?php echo $lang->documentation; ?></a>
·
<a href="JavaScript:UI.settings();"><?php echo $lang->settings; ?></a>
·
<a href="JavaScript:UI.showKeyboardShortcuts();"><?php echo $lang->shortcuts; ?></a>
</p>
<p id="ip-address"></p>
</footer>
</body>
</html>