mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 09:18:53 +00:00
some issue fix and responsive table fix
This commit is contained in:
@@ -126,14 +126,10 @@ function OpenUi(atm)
|
||||
openATM = atm,
|
||||
datas = {
|
||||
your_money_panel = {
|
||||
title = _U('your_money_title'),
|
||||
desc = _U('your_money_desc'),
|
||||
accountsData = {{
|
||||
title = _U('your_money_cash'),
|
||||
name = "cash",
|
||||
amount = data.money
|
||||
}, {
|
||||
title = _U('your_money_bank'),
|
||||
name = "bank",
|
||||
amount = data.bankMoney
|
||||
}}
|
||||
|
||||
@@ -71,6 +71,10 @@
|
||||
}
|
||||
],
|
||||
"LAUNGAGE": {
|
||||
"your_money_title":"Balance",
|
||||
"your_money_desc":"Here you can see your current balance and cash.",
|
||||
"your_money_cash_label":"Your cash",
|
||||
"your_money_bank_label":"Your bank balance",
|
||||
"withdraw":"WITHDRAW",
|
||||
"deposit":"DEPOSIT",
|
||||
"transfer":"TRANSFER",
|
||||
@@ -165,6 +169,10 @@
|
||||
|
||||
],
|
||||
"LAUNGAGE": {
|
||||
"your_money_title":"Egyenleged",
|
||||
"your_money_desc":"Itt láthatod a jelenlegi egyenleged és készpénzed.",
|
||||
"your_money_cash_label":"Készpénz",
|
||||
"your_money_bank_label":"Banki egyenleged",
|
||||
"withdraw":"KIVÉTEL",
|
||||
"deposit":"BETÉTEL",
|
||||
"transfer":"UTALÁS",
|
||||
|
||||
@@ -758,3 +758,10 @@ table.dataTable tbody tr:hover {
|
||||
padding: 3vmin;
|
||||
border-radius: 1.38vmin;
|
||||
}
|
||||
|
||||
/*MEDIA QUERY*/
|
||||
@media only screen and (max-width: 1280px) {
|
||||
.dataTables_scrollBody{
|
||||
max-height: 310px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,6 +57,8 @@ class Components{
|
||||
</svg>`);
|
||||
$(appendedDiv).fadeIn(200)
|
||||
LOADED = true
|
||||
|
||||
|
||||
setTimeout(() => {
|
||||
$(`${appendedDiv}`).fadeOut(200)
|
||||
$("#wrapper").fadeIn().css("display","flex");
|
||||
@@ -371,14 +373,13 @@ class Render {
|
||||
renderMyMoneySection(){
|
||||
const moneyData = this.fullRenderData
|
||||
$("#your-money-panel").empty();
|
||||
let template = `<h3>${moneyData.title}</h3>
|
||||
<p>${moneyData.desc}</p>
|
||||
let template = `<h3>${this.language.your_money_title}</h3>
|
||||
<p>${this.language.your_money_desc}</p>
|
||||
<div id="money-containers">`;
|
||||
moneyData.accountsData.forEach((data)=>{
|
||||
|
||||
template += `
|
||||
<div class="money-container">
|
||||
<h4>${data.title}</h4>
|
||||
<h4>${this.language[`your_money_${data.name}_label`]}</h4>
|
||||
<span id="money-${data.name}">${this.language.moneyFormat.replace("__replaceData__",data.amount)}</span>
|
||||
</div>
|
||||
`;
|
||||
@@ -480,8 +481,7 @@ class Pincode {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const timeZone = localStorage.getItem("TIME_ZONE")
|
||||
var timeZone = ""
|
||||
class Utils {
|
||||
static dateFormat(date){
|
||||
if(typeof(date) == "number"){
|
||||
@@ -489,8 +489,7 @@ class Utils {
|
||||
}else{
|
||||
var newDate = date
|
||||
}
|
||||
|
||||
return newDate.toLocaleString([timeZone], {
|
||||
return newDate.toLocaleString([Utils.getTimeZone()], {
|
||||
weekday:"long",
|
||||
hour:"2-digit",
|
||||
minute:"2-digit",
|
||||
@@ -529,6 +528,14 @@ class Utils {
|
||||
}
|
||||
return genNum;
|
||||
}
|
||||
|
||||
static setTimeZone(newTimeZone){
|
||||
timeZone = newTimeZone
|
||||
}
|
||||
|
||||
static getTimeZone(){
|
||||
return timeZone
|
||||
}
|
||||
}
|
||||
|
||||
class Graph{
|
||||
@@ -643,7 +650,7 @@ $(document).ready(function(){
|
||||
if(data[data.lang] != null){
|
||||
lang = data.lang
|
||||
}
|
||||
localStorage.setItem("TIME_ZONE",lang == "EN" ? "en-GB" : "hu-HU")
|
||||
Utils.setTimeZone(lang == "EN" ? "en-GB" : "hu-HU")
|
||||
formData = new GlobalStore(data[lang]["DYNAMIC_FORM_DATA"])
|
||||
language = new GlobalStore(data[lang]["LAUNGAGE"])
|
||||
}).fail(function(error){
|
||||
|
||||
@@ -12,9 +12,5 @@ Locales['en'] = {
|
||||
['not_enough_money'] = "Not enough money! You need %s money!",
|
||||
['pincode_not_found'] = "Invalid PIN code",
|
||||
['pincode_found'] = "Valid PIN code...",
|
||||
['bank_name'] = "Fleeca Bank",
|
||||
['your_money_title'] = "Balance",
|
||||
['your_money_desc'] = "Here you can see your current balance and cash.",
|
||||
['your_money_cash'] = "Your cash",
|
||||
['your_money_bank'] = "Your bank balance"
|
||||
['bank_name'] = "Fleeca Bank"
|
||||
}
|
||||
@@ -12,9 +12,5 @@ Locales['hu'] = {
|
||||
['not_enough_money'] = "Nincs elég pénzed, még szükséged lesz ennyire: %s",
|
||||
['pincode_not_found'] = "Érvénytelen PIN kód",
|
||||
['pincode_found'] = "Érvényes PIN kód...",
|
||||
['bank_name'] = "Fleeca Bank",
|
||||
['your_money_title'] = "Egyenleg",
|
||||
['your_money_desc'] = "Itt láthatod a jelenlegi egyenleged és készpénzed.",
|
||||
['your_money_cash'] = "Készpénz",
|
||||
['your_money_bank'] = "Banki egyenleged"
|
||||
['bank_name'] = "Fleeca Bank"
|
||||
}
|
||||
Reference in New Issue
Block a user