Searching, sorting, and updating users #36

Merged
ngolp merged 4 commits from searching-sorting-user-list into 2025 2024-10-31 13:55:02 -04:00
Showing only changes of commit 228244ad2d - Show all commits

View file

@ -29,7 +29,7 @@
<h1 style="flex-grow:1;justify-content:center;" class="h3 mb-3 fw-normal">Registered Users</h1> <h1 style="flex-grow:1;justify-content:center;" class="h3 mb-3 fw-normal">Registered Users</h1>
</div> </div>
<table id="hackers" class="table table-striped"> <table id="hackers" class="table table-striped sortable">
<thead> <thead>
<tr> <tr>
<th>Options</th> <th>Options</th>
@ -107,6 +107,7 @@
<script type="text/javascript"> <script type="text/javascript">
function filterHackers() { function filterHackers() {
//get hacker table and searchbox info
const input = document.getElementById("searchbox").value.toLowerCase(); const input = document.getElementById("searchbox").value.toLowerCase();
const hackertable = document.getElementById("hackers"); const hackertable = document.getElementById("hackers");
let rows = hackertable.getElementsByTagName("tr"); let rows = hackertable.getElementsByTagName("tr");
@ -129,7 +130,6 @@
} }
} }
} }
</script> </script>
{% endblock %} {% endblock %}