Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebornian48 committed Jan 13, 2024
1 parent 315473a commit d2aba60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function parseNIK() {
namaKabkot = getNamaKabKot(prov + "." + kabkot);
namaKec = getNamaKec(kec);

jk = parseInt(tgl,10) / 40;
jk = parseInt(tgl, 10) / 40;
jk = Math.floor(jk);
if (jk == 1) {
jk = "Perempuan";
Expand All @@ -47,7 +47,7 @@ function parseNIK() {
var pasaran = new Array("Legi", "Pahing", "Pon", "Wage", "Kliwon");

// Parse the date
var date = new Date(thn, parseInt(bln,10) - 1, tgl % 40);
var date = new Date(thn, parseInt(bln, 10) - 1, tgl % 40);
var d1 = new Date("2014-01-28");
var selisih = Math.floor(Math.abs(d1 - date) / 86400000);
var pasar = pasaran[selisih % 5];
Expand Down Expand Up @@ -100,7 +100,7 @@ function parseNIK() {
jk +
"</p>" +
"<p>Urutan ke: " +
parseInt(unik,10) +
parseInt(unik, 10) +
"</p>";
}
}

0 comments on commit d2aba60

Please sign in to comment.