Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebornian48 committed Jan 15, 2024
1 parent 74f8bf1 commit ba05b6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
10 changes: 4 additions & 6 deletions assets/js/script.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
/**
* ${1:Description placeholder}
* @date 1/13/2024 - 3:11:50 AM
*/
var btn = document.getElementById("searchBtn");
btn.addEventListener("click", parseNIK);

/**
* Parses the NIK (Nomor Induk Kependudukan) and displays the result.
* ${1:Description placeholder}
* @date 1/13/2024 - 3:11:50 AM
*/


function parseNIK() {
var searchInput = document.getElementById("search");
var searchText = searchInput.value;
Expand Down
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ <h1 class="text-5xl">&nbsp;</h1>

<button
id="searchBtn"
onclick="parseNIK()"
class="rounded-md px-4 py-2 focus:outline-none"
>
<i class="fas fa-search"></i>
Expand Down

0 comments on commit ba05b6c

Please sign in to comment.