error fixxed for loading images
This commit is contained in:
parent
83b22ecc4c
commit
463408f12b
@ -27,4 +27,10 @@ function showReconnect() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.updateStatus = updateStatus;
|
window.updateStatus = updateStatus;
|
||||||
window.showReconnect = showReconnect;
|
window.showReconnect = showReconnect;
|
||||||
|
|
||||||
|
// Am Ende
|
||||||
|
window.initStatus = function() {
|
||||||
|
// Dein Status-Init-Code, falls vorhanden
|
||||||
|
console.log('ui-status.js → Status initialisiert');
|
||||||
|
};
|
||||||
@ -86,18 +86,32 @@
|
|||||||
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
|
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
|
||||||
crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
|
|
||||||
<!-- Globale JavaScript-Module (immer laden) -->
|
{% block scripts %}
|
||||||
<script src="{{ url_for('static', filename='js/config.js') }}"></script>
|
<!-- Module laden – Reihenfolge wichtig! -->
|
||||||
<script src="{{ url_for('static', filename='js/ui-status.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/config.js') }}"></script>
|
||||||
<script src="{{ url_for('static', filename='js/ui-connect.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/ui-status.js') }}"></script>
|
||||||
<script src="{{ url_for('static', filename='js/ui-channels.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/ui-connect.js') }}"></script>
|
||||||
<script src="{{ url_for('static', filename='js/ui-soundboard.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/ui-channels.js') }}"></script>
|
||||||
<script src="{{ url_for('static', filename='js/connection-check.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/ui-soundboard.js') }}"></script>
|
||||||
|
<script src="{{ url_for('static', filename='js/connection-check.js') }}"></script>
|
||||||
|
|
||||||
<!-- Einstiegspunkt – lädt und initialisiert alles -->
|
<!-- Einstiegspunkt -->
|
||||||
<script src="{{ url_for('static', filename='js/app.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/app.js') }}"></script>
|
||||||
|
|
||||||
<!-- Seiten-spezifische Config setzen (nur wenn config existiert) -->
|
<!-- Config setzen + Inits aufrufen -->
|
||||||
{% block scripts %}{% endblock %}
|
<script>
|
||||||
|
// Config global setzen (nur auf Seiten mit config)
|
||||||
|
window.mkConfig = {{ config | tojson | safe }};
|
||||||
|
window.mkGlobalSounds = {{ global_sounds | tojson | safe }};
|
||||||
|
|
||||||
|
// Alle Inits aufrufen
|
||||||
|
initConfig();
|
||||||
|
initStatus();
|
||||||
|
initConnect();
|
||||||
|
initChannels();
|
||||||
|
initSoundboard();
|
||||||
|
// connection-check wird von connect/reconnect aufgerufen
|
||||||
|
</script>
|
||||||
|
{% endblock %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@ -27,7 +27,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-4 text-md-end">
|
<div class="col-md-4 text-md-end">
|
||||||
{% if config.image %}
|
{% if config.image %}
|
||||||
<img src="{{ url_for('serve_config_file', filename=config.image) }}"
|
<img src="{{ url_for('main.serve_config_file', filename=config.image) }}"
|
||||||
alt="{{ config.name }}"
|
alt="{{ config.name }}"
|
||||||
class="img-fluid rounded shadow"
|
class="img-fluid rounded shadow"
|
||||||
style="max-height: 180px; object-fit: cover;">
|
style="max-height: 180px; object-fit: cover;">
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="card h-100 shadow-sm">
|
<div class="card h-100 shadow-sm">
|
||||||
{% if cfg.image %}
|
{% if cfg.image %}
|
||||||
<img src="{{ url_for('main.serve_config_file', filename=cfg.image) }}"
|
<img src="{{ url_for('main.serve_config_file', filename=config.image) }}"
|
||||||
class="card-img-top" alt="{{ cfg.name }}"
|
class="card-img-top" alt="{{ cfg.name }}"
|
||||||
style="height: 180px; object-fit: cover;">
|
style="height: 180px; object-fit: cover;">
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user