Commit
This commit is contained in:
23
ReallifeGamemode.Client/assets/html/SimpleTextBox.html
Normal file
23
ReallifeGamemode.Client/assets/html/SimpleTextBox.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="package://assets/css/login/style.css" />
|
||||
<link rel="stylesheet" href="package://assets/css/jquery-ui.min.css" />
|
||||
<meta charset="utf-8" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="form-ticket">
|
||||
<div class="form">
|
||||
<h1 color="white">
|
||||
Worin besteht dein Anliegen?<span class="req"></span>
|
||||
</h1>
|
||||
<input type="text" id="textboxContent" class="input-username" required autocomplete="off" />
|
||||
|
||||
<button type="submit" class="button button-block">Abschicken</button>
|
||||
|
||||
</div> <!-- /form -->
|
||||
|
||||
</form>
|
||||
<script type="text/javascript" src="package://assets/js/jquery-3.3.1.min.js"></script>
|
||||
<script type="text/javascript" src="package://assets/js/jquery-ui.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -17,6 +17,9 @@
|
||||
$('#input-value').keydown(function (e) {
|
||||
if (e.keyCode != 13) return;
|
||||
var currentValue = $('#input-value').val();
|
||||
|
||||
mp.trigger('submitText', currentValue);
|
||||
|
||||
if (currentValue) {
|
||||
mp.trigger('cef_inputhelper_sendvalue', currentValue);
|
||||
console.log("triggered event: " + currentValue);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="login">
|
||||
<h1>Wilkommen zurück</h1>
|
||||
|
||||
<form id="form-login">
|
||||
<form id="form-login" >
|
||||
|
||||
<div class="field-wrap">
|
||||
<label>
|
||||
|
||||
Reference in New Issue
Block a user