add onlinewanteds in factionmenü
This commit is contained in:
19
ReallifeGamemode.Client/assets/html/Wantedlist/script.js
Normal file
19
ReallifeGamemode.Client/assets/html/Wantedlist/script.js
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
|
||||
|
||||
function ad_row(id, name, wanteds) {
|
||||
var table_id = "t1";
|
||||
var table = document.getElementById(table_id);
|
||||
var rows = table.getElementsByTagName('tr').length;
|
||||
var tr = table.insertRow(rows);
|
||||
var td1 = document.createElement('td');
|
||||
var td2 = document.createElement('td');
|
||||
var td3 = document.createElement('td');
|
||||
var test = wanteds;
|
||||
td1.innerHTML = ''+id;
|
||||
td2.innerHTML = name.slice(1, -1);
|
||||
td3.innerHTML = '' +wanteds;
|
||||
tr.appendChild(td1);
|
||||
tr.appendChild(td2);
|
||||
tr.appendChild(td3);
|
||||
}
|
||||
36
ReallifeGamemode.Client/assets/html/Wantedlist/style.css
Normal file
36
ReallifeGamemode.Client/assets/html/Wantedlist/style.css
Normal file
@@ -0,0 +1,36 @@
|
||||
/* style.css für Tabliste */
|
||||
div {
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
th, td {
|
||||
color: white;
|
||||
font-size: 18px;
|
||||
width:10%;
|
||||
text-align: left;
|
||||
}
|
||||
.scroll {
|
||||
height: 600px;
|
||||
width: 600px;
|
||||
font-size: 12px;
|
||||
overflow: auto;
|
||||
}
|
||||
.force-overflow {
|
||||
min-height: 600px;
|
||||
}
|
||||
|
||||
#style1::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
background-color: #F5F5F5;
|
||||
}
|
||||
|
||||
#style1::-webkit-scrollbar-thumb {
|
||||
background-color: #FF0040;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
38
ReallifeGamemode.Client/assets/html/Wantedlist/wanteds.html
Normal file
38
ReallifeGamemode.Client/assets/html/Wantedlist/wanteds.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<title>Eingabe | Life of German</title>
|
||||
|
||||
<link rel="stylesheet" href="package://assets/css/Introduction/style.css" />
|
||||
<link rel="stylesheet" href="../../font/font-awesome/css/fontawesome.min.css">
|
||||
<link rel="stylesheet" href="../../font/font-awesome/css/regular.min.css">
|
||||
<link rel="stylesheet" href="../../font/roboto-mono/include_500.css">
|
||||
<link rel="stylesheet" href="./style.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<main>
|
||||
<div class="input-main">
|
||||
|
||||
</div>
|
||||
<div class='scroll' id='style1'>
|
||||
<table id='t1'>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Spielername</th>
|
||||
<th>Wantedanzahl</th>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<a target="_blank" id="close"></a>
|
||||
</main>
|
||||
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"></script>
|
||||
<script src="package://assets/js/wantedlist/application.js"></script>
|
||||
<script src="./script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,6 @@
|
||||
let close = document.getElementById('close');
|
||||
|
||||
close.onclick = function closeWindow() {
|
||||
mp.trigger('removeWantedlist');
|
||||
console.log('Fenster geschlossen!');
|
||||
}
|
||||
Reference in New Issue
Block a user