Danke an @m4a_X, es lag einfach daran, dass ich ausversehen "index.js.js" hatte und dies nicht erkannt habe. Simple Lösung.
#1 neues Problem
Er ruft die trigger einfach nicht auf, Dateien sind alle richtig da von dort aus auch der CEF gestartet wird.
HTML: wtfahtmlfile
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="./css/style.css" type="text/css">
<link href="./css/fa-solid.min.css" rel="stylesheet">
<link href="./css/fontawesome.min.css" rel="stylesheet">
<script src="./js/fa-solid.min.js"></script>
<script src="./js/fontawesome.min.js"></script>
<script>
function loginAccount() {
// Validate the password
let pass = document.getElementById('password').value;
mp.trigger('requestPlayerLogin', pass);
};
function kickPlayer() {
mp.events.call('clearLoginWindow');
mp.gui.chat.push("TEEEEEEEEST");
};
</script>
<!--<script src="./js/jquery.js" type="text/javascript"></script>-->
</head>
<body>
<div ID="hud">
<div id="bardownright">
<div id="bar2"><div id="bpassword"><input id="password" name="password" type="password"></div></div>
</div>
<div id="bardownleft">
<div id="bar4"><div id="bar4text">Passwort</div></div>
</div>
<div id="buttonaccept">
<div id="bar5"><div id="bar5text" onclick="loginAccount()">Einreisen</div></div>
</div>
<div id="buttonaccept">
<div id="bar6"><div id="bar5text" onclick="kickPlayer()">Ausreisen</div></div>
</div>
</div>
<div id="invisible" style="display:none"></div>
</div>
<link rel="stylesheet" href="./css/jquery.numpad.css">
<script type="text/javascript" src="./js/jquery.numpad.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</body>
</html>
Alles anzeigen