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);
|
||||
}
|
||||
Reference in New Issue
Block a user