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

@ -9,7 +9,7 @@
{% include "common/head-meta.html" %}
{% block headermeta %}
<meta property="og:title" content="{{PORTAL_NAME}}">
<meta property="og:type" content="website">
@ -22,7 +22,7 @@
{% block topimports %}{%endblock topimports %}
{% include "config/index.html" %}
{% endblock head %}
</head>
@ -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 %}