Added many things I can't recall but it has to do with inventory system and some minor fixes .. it's cool
This commit is contained in:
30
ReallifeGamemode.Client/assets/html/Playerlist/Tabliste.html
Normal file
30
ReallifeGamemode.Client/assets/html/Playerlist/Tabliste.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" >
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Tabliste</title>
|
||||
<link rel="stylesheet" href="./style.css">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<!-- partial:index.partial.html -->
|
||||
|
||||
|
||||
<div class='TabWrapper'>
|
||||
<div class='scroll' id='style1'>
|
||||
<table id='t1'>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Spielername</th>
|
||||
<th>Level</th>
|
||||
<th>Fraktion</th>
|
||||
<th>Ping</th>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<script src="package://assets/js/jquery-3.3.1.min.js" type="text/javascript"></script>
|
||||
<script src="./script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
26
ReallifeGamemode.Client/assets/html/Playerlist/script.js
Normal file
26
ReallifeGamemode.Client/assets/html/Playerlist/script.js
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
|
||||
|
||||
function ad_row(id, name, level, faction, ping) {
|
||||
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 td4 = document.createElement('td');
|
||||
var td5 = document.createElement('td');
|
||||
var test = level;
|
||||
var test2 = faction;
|
||||
td1.innerHTML = ''+id;
|
||||
td2.innerHTML = name.slice(1, -1);
|
||||
td3.innerHTML = 'WIP';
|
||||
td4.innerHTML = 'WIP';
|
||||
td5.innerHTML = ''+ping;
|
||||
tr.appendChild(td1);
|
||||
tr.appendChild(td2);
|
||||
tr.appendChild(td3);
|
||||
tr.appendChild(td4);
|
||||
tr.appendChild(td5);
|
||||
}
|
||||
64
ReallifeGamemode.Client/assets/html/Playerlist/style.css
Normal file
64
ReallifeGamemode.Client/assets/html/Playerlist/style.css
Normal file
@@ -0,0 +1,64 @@
|
||||
/* style.css für Tabliste */
|
||||
.greyFont {
|
||||
color: gray;
|
||||
font-size: 14px;
|
||||
width: 250px;
|
||||
}
|
||||
|
||||
body {
|
||||
overflow: hidden;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-weight: 500;
|
||||
color: #222;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-weight: 700;
|
||||
font-size: 18px;
|
||||
color: white;
|
||||
margin:5px;
|
||||
padding: 5px;
|
||||
border: 1px solid #808080;
|
||||
width: 20.75em;
|
||||
}
|
||||
.TabWrapper {
|
||||
background: rgba(0,0,0,0.6);
|
||||
height: 600px;
|
||||
width: 600px;
|
||||
display: block;
|
||||
padding: 5px;
|
||||
position: absolute;
|
||||
left: 32%;
|
||||
top: 10%;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user