QR Code for WhatsApp

This commit is contained in:
concierge committed 2026-10-27 16:44:14 +01:00
1 parent 0a2070fcf5
commit 88115a62dd
6 files changed
+755 -1

No files matched your search

+41
View File
@@ -106,6 +106,26 @@
</article>
</dialog>
<!-- WhatsApp QR nach Broadcast -->
<dialog id="speakerQrModal">
<article>
<header>
<button class="close" type="button" aria-label="Schließen" onclick="closeSpeakerQrModal()"></button>
<h3>WhatsApp teilen</h3>
</header>
<div class="dialog-body" style="text-align: center;">
<p>Nachricht für WhatsApp teilen:</p>
<img id="speakerQrImage" alt="WhatsApp QR Code" style="max-width: 240px; width: 100%; height: auto; margin: 0 auto;" />
<p style="word-break: break-all; font-size: 0.85rem; margin-top: 0.75rem;">
<a id="speakerQrLink" href="#" target="_blank" rel="noopener">WhatsApp öffnen</a>
</p>
</div>
<footer>
<button type="button" onclick="closeSpeakerQrModal()">Schließen</button>
</footer>
</article>
</dialog>
<!-- Straßen-State ändern -->
<dialog id="streetModal">
<article>
@@ -205,6 +225,26 @@
</article>
</dialog>
<!-- WhatsApp QR nach Broadcast -->
<dialog id="speakerQrModal">
<article>
<header>
<button class="close" type="button" aria-label="Schließen" onclick="closeSpeakerQrModal()"></button>
<h3>WhatsApp teilen</h3>
</header>
<div class="dialog-body" style="text-align: center;">
<p>Nachricht für WhatsApp teilen:</p>
<canvas id="speakerQrCanvas" style="max-width: 240px; width: 100%; height: auto; margin: 0 auto;"></canvas>
<p style="word-break: break-all; font-size: 0.85rem; margin-top: 0.75rem;">
<a id="speakerQrLink" href="#" target="_blank" rel="noopener">WhatsApp öffnen</a>
</p>
</div>
<footer>
<button type="button" onclick="closeSpeakerQrModal()">Schließen</button>
</footer>
</article>
</dialog>
<!-- Warnung bei ausbleibenden Heartbeats -->
<dialog id="heartbeatWarningModal">
<article>
@@ -230,6 +270,7 @@
window.CMBNET_ACCOUNT_ID = {{ session.account_id|tojson }};
window.CMBNET_LOGOUT_URL = {{ url_for('auth.logout', tenant=session.tenant_code)|tojson }};
</script>
<script src="https://cdn.jsdelivr.net/npm/qrious@4/dist/qrious.min.js"></script>
<script src="{{ url_for('static', filename='js/str2pl.js') }}"></script>
<script src="{{ url_for('static', filename='js/views/dispatcher.js') }}"></script>
{% endblock %}