grosze
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
const $ = (id) => document.getElementById(id);
|
||||
const money = (v) => new Intl.NumberFormat('pl-PL', { style: 'currency', currency: 'PLN', maximumFractionDigits: 0 }).format(v || 0);
|
||||
const money = (v) => new Intl.NumberFormat('pl-PL', { style: 'currency', currency: 'PLN', minimumFractionDigits: 2, maximumFractionDigits: 2 }).format(Number(v) || 0);
|
||||
const num = (id) => Number($(id).value || 0);
|
||||
|
||||
let lineChart, pieChart, barChart, detailChart;
|
||||
|
||||
@@ -13,13 +13,13 @@
|
||||
<div class="card-body d-flex flex-wrap align-items-center justify-content-between gap-3">
|
||||
<div>
|
||||
<h1 class="h3 mb-1">Symulator kredytu hipotecznego</h1>
|
||||
<p class="text-muted mb-0">@linuxiarz.pl</p>
|
||||
<p class="text-muted mb-0">Dane liczone są w backendzie ale nie są przechowywane na serwerze, może swoje wyliczenia eksportować na na swój dysk</p>
|
||||
</div>
|
||||
<div class="d-flex gap-2 flex-wrap justify-content-end">
|
||||
<button id="themeToggle" class="btn btn-outline-secondary btn-sm" type="button" aria-label="Przełącz motyw">☀️ Jasny</button>
|
||||
<button id="loadNbp" class="btn btn-outline-primary btn-sm">Pobierz stopę NBP</button>
|
||||
<button id="exportJson" class="btn btn-outline-secondary btn-sm">Eksport JSON</button>
|
||||
<button id="importJson" class="btn btn-outline-secondary btn-sm">Import JSON</button>
|
||||
<button id="exportJson" class="btn btn-outline-secondary btn-sm">Eksport</button>
|
||||
<button id="importJson" class="btn btn-outline-secondary btn-sm">Import </button>
|
||||
<button id="exportCsv" class="btn btn-outline-secondary btn-sm">CSV</button>
|
||||
<button id="exportPdf" class="btn btn-primary btn-sm">PDF</button>
|
||||
<input id="jsonFile" type="file" accept="application/json,.json" hidden>
|
||||
|
||||
Reference in New Issue
Block a user