modified: templates/chat.html
This commit is contained in:
@@ -171,6 +171,34 @@
|
|||||||
background: #ff4d4d;
|
background: #ff4d4d;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
.btn-group {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.arrow {
|
||||||
|
font-size: 0.8em;
|
||||||
|
margin-left: 4px;
|
||||||
|
}
|
||||||
|
.dropdown-content {
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
background-color: #181a20;
|
||||||
|
min-width: 160px;
|
||||||
|
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
|
||||||
|
z-index: 1;
|
||||||
|
border-radius: 8px;
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
.dropdown-content a {
|
||||||
|
color: #e3e3e3;
|
||||||
|
padding: 12px 16px;
|
||||||
|
text-decoration: none;
|
||||||
|
display: block;
|
||||||
|
font-size: 0.95em;
|
||||||
|
}
|
||||||
|
.dropdown-content a:hover {
|
||||||
|
background-color: #00aaff;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
#container { max-width: 100%; border-radius: 0; }
|
#container { max-width: 100%; border-radius: 0; }
|
||||||
#chat { padding: 16px 6px 8px 6px; }
|
#chat { padding: 16px 6px 8px 6px; }
|
||||||
@@ -186,7 +214,6 @@
|
|||||||
<p>Erstellt von Simon Giehl – Ihr smarter KI-Partner für Kunden- und Vertriebsinfos</p>
|
<p>Erstellt von Simon Giehl – Ihr smarter KI-Partner für Kunden- und Vertriebsinfos</p>
|
||||||
</div>
|
</div>
|
||||||
<div style="display:flex; justify-content:flex-end; padding: 0 24px;">
|
<div style="display:flex; justify-content:flex-end; padding: 0 24px;">
|
||||||
<button id="tools-btn" onclick="showExportDialog()">Tools</button>
|
|
||||||
<button id="clear-btn" onclick="clearChat()">Kontext löschen</button>
|
<button id="clear-btn" onclick="clearChat()">Kontext löschen</button>
|
||||||
</div>
|
</div>
|
||||||
<div id="export-dialog" style="display:none; background:#23272f; border:1px solid #00aaff; border-radius:8px; padding:18px; margin:18px 24px;">
|
<div id="export-dialog" style="display:none; background:#23272f; border:1px solid #00aaff; border-radius:8px; padding:18px; margin:18px 24px;">
|
||||||
@@ -199,7 +226,14 @@
|
|||||||
<div id="chat"></div>
|
<div id="chat"></div>
|
||||||
<div id="input-area">
|
<div id="input-area">
|
||||||
<input id="input" type="text" placeholder="Nachricht eingeben..." autocomplete="off">
|
<input id="input" type="text" placeholder="Nachricht eingeben..." autocomplete="off">
|
||||||
<button id="send-btn" onclick="send()">Senden</button>
|
<div class="btn-group">
|
||||||
|
<button id="send-btn" onclick="send()">Senden</button>
|
||||||
|
<button id="dropdown-btn" onclick="toggleDropdown()" aria-label="Tools"><span class="arrow">▼</span></button>
|
||||||
|
<div id="dropdown-menu" class="dropdown-content">
|
||||||
|
<a href="#" onclick="showExportDialog();toggleDropdown();return false;">Export/Tabellen-Tool</a>
|
||||||
|
<!-- Weitere Optionen hier -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
© 2025 Simon Giehl – AI Vertriebsassistent. Alle Rechte vorbehalten.
|
© 2025 Simon Giehl – AI Vertriebsassistent. Alle Rechte vorbehalten.
|
||||||
@@ -397,6 +431,24 @@
|
|||||||
document.getElementById('export-result').textContent = err.message;
|
document.getElementById('export-result').textContent = err.message;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function toggleDropdown() {
|
||||||
|
const menu = document.getElementById('dropdown-menu');
|
||||||
|
menu.style.display = menu.style.display === 'block' ? 'none' : 'block';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Schließe das Dropdown-Menü, wenn außerhalb geklickt wird
|
||||||
|
window.onclick = function(event) {
|
||||||
|
if (!event.target.matches('#dropdown-btn')) {
|
||||||
|
const dropdowns = document.getElementsByClassName('dropdown-content');
|
||||||
|
for (let i = 0; i < dropdowns.length; i++) {
|
||||||
|
const openDropdown = dropdowns[i];
|
||||||
|
if (openDropdown.style.display === 'block') {
|
||||||
|
openDropdown.style.display = 'none';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user