mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-05 23:18:53 -05:00
fix: remove flash
This commit is contained in:
parent
f4ab60e894
commit
7e0931dd5e
@ -55,6 +55,10 @@ export function renderPage(idSelector, PageComponent) {
|
||||
appSidebar
|
||||
);
|
||||
}
|
||||
|
||||
if (document.body.classList.contains('js-loading')) {
|
||||
document.body.classList.remove('js-loading');
|
||||
}
|
||||
}
|
||||
|
||||
export function renderEmbedPage(idSelector, PageComponent) {
|
||||
@ -63,4 +67,8 @@ export function renderEmbedPage(idSelector, PageComponent) {
|
||||
if (appContent && PageComponent) {
|
||||
ReactDOM.render(<PageComponent />, appContent);
|
||||
}
|
||||
|
||||
if (document.body.classList.contains('js-loading')) {
|
||||
document.body.classList.remove('js-loading');
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,65 +1,70 @@
|
||||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{% block head %}
|
||||
|
||||
<title>{% block headtitle %}{{PORTAL_NAME}}{% endblock headtitle %}</title>
|
||||
|
||||
{% include "common/head-meta.html" %}
|
||||
|
||||
{% block headermeta %}
|
||||
|
||||
<meta property="og:title" content="{{PORTAL_NAME}}">
|
||||
<meta property="og:type" content="website">
|
||||
|
||||
{%endblock headermeta %}
|
||||
|
||||
{% block externallinks %}{% endblock externallinks %}
|
||||
|
||||
{% include "common/head-links.html" %}
|
||||
|
||||
{% block topimports %}{%endblock topimports %}
|
||||
|
||||
{% include "config/index.html" %}
|
||||
|
||||
|
||||
{% if not USE_ROUNDED_CORNERS %}
|
||||
<style>
|
||||
.viewer-container .player-container, .item-thumb, a.item-thumb {
|
||||
border-radius: revert !important;
|
||||
}
|
||||
</style>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% endblock head %}
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
{% block beforecontent %}{% endblock %}
|
||||
|
||||
<div class="page-main-wrap">
|
||||
{% include "messages.html" %}
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
|
||||
{% block aftercontent %}{% endblock %}
|
||||
|
||||
{% if LOAD_FROM_CDN %}
|
||||
<script src="https://vjs.zencdn.net/7.20.2/video.min.js"></script>
|
||||
{% else %}
|
||||
<script src="{% static "lib/video-js/7.20.2/video.min.js" %}"></script>
|
||||
{% endif %}
|
||||
|
||||
{% block externalscripts %}{% endblock externalscripts %}
|
||||
|
||||
{% include "common/body-scripts.html" %}
|
||||
|
||||
{% block bottomimports %}{% endblock bottomimports %}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{% block head %}
|
||||
|
||||
<title>{% block headtitle %}{{PORTAL_NAME}}{% endblock headtitle %}</title>
|
||||
|
||||
{% include "common/head-meta.html" %}
|
||||
|
||||
{% block headermeta %}
|
||||
|
||||
<meta property="og:title" content="{{PORTAL_NAME}}">
|
||||
<meta property="og:type" content="website">
|
||||
|
||||
{%endblock headermeta %}
|
||||
|
||||
{% block externallinks %}{% endblock externallinks %}
|
||||
|
||||
{% include "common/head-links.html" %}
|
||||
|
||||
{% block topimports %}{%endblock topimports %}
|
||||
|
||||
{% include "config/index.html" %}
|
||||
|
||||
|
||||
{% if not USE_ROUNDED_CORNERS %}
|
||||
<style>
|
||||
.viewer-container .player-container, .item-thumb, a.item-thumb {
|
||||
border-radius: revert !important;
|
||||
}
|
||||
</style>
|
||||
{% endif %}
|
||||
|
||||
<style>
|
||||
.js-loading .page-main-wrap {
|
||||
visibility: hidden;
|
||||
}
|
||||
</style>
|
||||
|
||||
{% endblock head %}
|
||||
|
||||
</head>
|
||||
|
||||
<body class="js-loading">
|
||||
|
||||
{% block beforecontent %}{% endblock %}
|
||||
|
||||
<div class="page-main-wrap">
|
||||
{% include "messages.html" %}
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
|
||||
{% block aftercontent %}{% endblock %}
|
||||
|
||||
{% if LOAD_FROM_CDN %}
|
||||
<script src="https://vjs.zencdn.net/7.20.2/video.min.js"></script>
|
||||
{% else %}
|
||||
<script src="{% static "lib/video-js/7.20.2/video.min.js" %}"></script>
|
||||
{% endif %}
|
||||
|
||||
{% block externalscripts %}{% endblock externalscripts %}
|
||||
|
||||
{% include "common/body-scripts.html" %}
|
||||
|
||||
{% block bottomimports %}{% endblock bottomimports %}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user