loading screen

main
alexanderroese 2024-06-22 12:38:25 +02:00
parent c83847812d
commit b7f05cb6f5
2 changed files with 14 additions and 2 deletions

View File

@ -466,7 +466,6 @@
</head>
<body class="gradient{% if settings.animations_hover_elements != 'none' %} animate--hover-{{ settings.animations_hover_elements }}{% endif %}">
<!-- Render HTML content -->
{% render 'shx-loading-screen'
, content_type: 'body' %}

View File

@ -3,5 +3,18 @@
{% if content_type == 'body' %}
<div id="loading-screen"></div>
{% elsif content_type == 'head' %}
<style>
#loading-screen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: white;
z-index: 9999;
transition: opacity 0.5s ease;
opacity: 1;
pointer-events: none;
}
</style>
{% endif %}