added comments

This commit is contained in:
J-Klinke 2024-06-21 10:43:04 +02:00
parent 11cd870fde
commit b8c23f7e24
2 changed files with 5 additions and 2 deletions

View File

@ -10,5 +10,5 @@ export function fetchQuery(fetchString) {
}
function parseContent(content) {
//TODO: method for parsing query results
}

View File

@ -8,6 +8,7 @@ const lastQuery = {
currentPage: 0
};
// definition of all buttons
const addButton = document.getElementById("add-btn");
addButton.addEventListener("click", () => {
navigateToAdd();
@ -24,6 +25,7 @@ searchButton.addEventListener("click", () => {
const searchString = searchBar.value;
search(searchString);
});
const searchBar = document.getElementById("search-entry");
export let searchBarTimeout;
searchBar.addEventListener("input", () => {
@ -64,8 +66,9 @@ for (const downvoteButton of downvoteButtons) {
downvoteButton.addEventListener("click", downvoteButtonClickListener);
}
// functions of the main page
function navigateToAdd() {
//TODO: url to add page not yet implemented, add here
}
function filter(filterString) {