Add bilingual support (German/English) with language selector
- Added language selector in top-left corner - Implemented data attributes for all translatable text - Created language management system with localStorage persistence - Updated all JavaScript functions to support both languages - Added translations for notifications, error messages, and UI elements - Maintained existing functionality while adding language switching
This commit is contained in:
@@ -67,5 +67,19 @@
|
||||
|
||||
<script src="/js/cookie-consent.js"></script>
|
||||
<script src="/js/generator.js"></script>
|
||||
<script>
|
||||
// Verhindert Enter-Taste in Eingabefeldern
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const inputs = document.querySelectorAll('input, textarea');
|
||||
inputs.forEach(input => {
|
||||
input.addEventListener('keydown', function(e) {
|
||||
if (e.key === 'Enter') {
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user