-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
45 lines (35 loc) · 1.15 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
const TodoModal = document.querySelector("#TodoModal");
const openTodoModal = document.querySelector(".fa-plus");
const closeTodoModal = document.getElementById("close");
openTodoModal.addEventListener("click", () => {
TodoModal.showModal();
});
closeTodoModal.addEventListener("click", () => {
TodoModal.close();
});
function searchTable() {
let input, filter, tasks, i, txtValue;
input = document.getElementById("search");
filter = input.value.toUpperCase();
tasks = document.getElementsByClassName("searchable-task");
for (i = 0; i < tasks.length; i++) {
txtValue = tasks[i].textContent || tasks[i].innerText;
if (txtValue.toUpperCase().indexOf(filter) > -1) {
tasks[i].style.display = "";
} else {
tasks[i].style.display = "none";
}
}
}
const editModal = document.querySelector("#EditModal");
const closeEditModal = document.querySelector(".fa-solid fa-xmark");
function someFunc() {
editModal.showModal()
}
function submitForm() {
let form = document.getElementById("sortForm");
form.submit();
}
function testFunc() {
window.location.href = "afgerond.php";
}