forked from Simnation/Main
ed
This commit is contained in:
parent
48a36209b5
commit
884f3df7cf
262 changed files with 223207 additions and 2 deletions
|
@ -0,0 +1,32 @@
|
|||
class SpeedcamsMobile{
|
||||
constructor(){
|
||||
this.name = "speedcamsmobile";
|
||||
}
|
||||
static allowAddNew(){
|
||||
return false;
|
||||
}
|
||||
static GetColumns(){
|
||||
return ["name","totalProfit","lastTime","lastProfit","id"]
|
||||
}
|
||||
|
||||
static TableDataCreate(row, key){
|
||||
if(key == "id"){
|
||||
|
||||
let coords = {}
|
||||
coords.x = row.positionX;
|
||||
coords.y = row.positionY;
|
||||
|
||||
coords = JSON.stringify(coords);
|
||||
|
||||
return `
|
||||
<td>
|
||||
<button type="button" class="btn btn-primary btn-sm" data-entering='${coords}' onclick="GenerateRoute(this, false)">
|
||||
<i class="fa-solid fa-location-dot"></i>
|
||||
<button>
|
||||
</td>`;
|
||||
}
|
||||
else{
|
||||
return `<td>${row[key]}</td>`;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue