This commit is contained in:
Markos Gogoulos 2024-10-10 16:36:23 +03:00
parent fe418f854f
commit 44cae7552c
3 changed files with 7 additions and 7 deletions

View File

@ -20,11 +20,11 @@ const formatPage = (page) => {
? templates.renderPageContent({ page: { id: pageContentId, component: page.component } })
: undefined;
const headLinks = [
{ rel: 'preload', href: './static/lib/video-js/7.20.2/video.min.js', as: 'script' },
{ rel: 'preload', href: './static/lib/video-js/8.18.1/video.min.js', as: 'script' },
...(page.headLinks ? page.headLinks : []),
];
const bodyScripts = [
{ src: './static/lib/video-js/7.20.2/video.min.js' },
{ src: './static/lib/video-js/8.18.1/video.min.js' },
...(page.bodyScripts ? page.bodyScripts : []),
];

View File

@ -1,5 +1,5 @@
@use "sass:math";
@import '../../../lib/video-js/7.20.2/video-js.min.css';
@import '../../../lib/video-js/8.18.1/video-js.min.css';
@import '../../../css/includes/_variables.scss';
@keyframes up-next-circle-countdown {

View File

@ -39,9 +39,9 @@
{% block aftercontent %}{% endblock %}
{% if LOAD_FROM_CDN %}
<script src="https://vjs.zencdn.net/7.20.2/video.min.js"></script>
<script src="https://vjs.zencdn.net/8.18.1/video.min.js"></script>
{% else %}
<script src="{% static "lib/video-js/7.20.2/video.min.js" %}"></script>
<script src="{% static "lib/video-js/8.18.1/video.min.js" %}"></script>
{% endif %}
{% block externalscripts %}{% endblock externalscripts %}