added comments
This commit is contained in:
parent
11cd870fde
commit
b8c23f7e24
@ -10,5 +10,5 @@ export function fetchQuery(fetchString) {
|
||||
}
|
||||
|
||||
function parseContent(content) {
|
||||
|
||||
//TODO: method for parsing query results
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user