General theme: add license and add URL source code in footer

This commit is contained in:
Jesús
2020-12-29 15:36:23 -05:00
parent 701786a9cc
commit 0f78e73e80
17 changed files with 636 additions and 110 deletions

View File

@@ -76,21 +76,7 @@
<div class="external-player-controls">
<input class="speed" id="speed-control" type="text">
<script>
(function main() {
'use strict';
const video = document.getElementById('js-video-player');
const speedInput = document.getElementById('speed-control');
speedInput.addEventListener('keyup', (event) => {
if (event.key === 'Enter') {
let speed = parseFloat(speedInput.value);
if(!isNaN(speed)){
video.playbackRate = speed;
}
}
});
}());
</script>
<script src="/youtube.com/static/js/speedyplay.js"></script>
</div>
<input class="v-checkbox" name="video_info_list" value="{{ video_info }}" form="playlist-edit" type="checkbox">
@@ -184,6 +170,7 @@
</nav>
{% if playlist['current_index'] is not none %}
<script>
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later
(function main() {
// from https://stackoverflow.com/a/6969486
function escapeRegExp(string) {
@@ -260,10 +247,12 @@
}
}
}());
// @license-end
</script>
{% endif %}
{% if playlist['id'] is not none %}
<script>
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later
(function main() {
// lazy load playlist images
// copied almost verbatim from
@@ -296,6 +285,7 @@
observer.observe(img);
});
}());
// @license-end
</script>
{% endif %}
</div>