initial commit
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
//Context-Menü deaktivieren
|
||||
//Deactivate Context-Menu
|
||||
document.addEventListener('contextmenu', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
function langRedirect() {
|
||||
var systemsprache = navigator.language || navigator.userLanguage;
|
||||
var sprache;
|
||||
|
||||
if (systemsprache.startsWith('de')) {
|
||||
sprache = 'de';
|
||||
} else {
|
||||
sprache = 'en';
|
||||
}
|
||||
window.location.href = 'lang/' + sprache;
|
||||
}
|
||||
|
||||
langRedirect()
|
||||
Reference in New Issue
Block a user