mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 13:56:02 +01:00
Update listener.js
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
$(function() {
|
||||
let displayOn = true
|
||||
|
||||
// Hide/show ui function
|
||||
function display(bool) {
|
||||
if (bool) {
|
||||
@@ -124,6 +126,19 @@ $(function() {
|
||||
$("#cash").text(item.cash);
|
||||
$("#bank").text(item.bank);
|
||||
}
|
||||
|
||||
if (item.type === "onStart") {
|
||||
$("#characterInfoContainer").append('<label class="fourthRowText" style="margin-right: 18.2vw;" for="startingcash">Cash</label>');
|
||||
$("#characterInfoContainer").append('<label class="fourthRowText" style="margin-right: 18.2vw;" for="startingbank">Bank</label>');
|
||||
$("#characterInfoContainer").append('<input id="startingCash" class="fourthRowInput" style="margin-right: 4.2vw;" type="number" pattern="[0-9]+" placeholder="$2500" name="startingcash" required>');
|
||||
$("#characterInfoContainer").append('<input id="startingBank" class="fourthRowInput" style="margin-right: 4.2vw;" type="number" pattern="[0-9]+" placeholder="$8000" name="startingbank" required>');
|
||||
$("#startingBank").attr({
|
||||
"max": item.maxStartingBank,
|
||||
});
|
||||
$("#startingCash").attr({
|
||||
"max": item.maxStartingCash,
|
||||
});
|
||||
}
|
||||
})
|
||||
|
||||
function createCharacter(firstName, lastName, dateOfBirth, gender, twtName, department, startingCash, startingBank, id) {
|
||||
|
||||
Reference in New Issue
Block a user