added comments
This commit is contained in:
parent
11cd870fde
commit
b8c23f7e24
@ -10,5 +10,5 @@ export function fetchQuery(fetchString) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function parseContent(content) {
|
function parseContent(content) {
|
||||||
|
//TODO: method for parsing query results
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ const lastQuery = {
|
|||||||
currentPage: 0
|
currentPage: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// definition of all buttons
|
||||||
const addButton = document.getElementById("add-btn");
|
const addButton = document.getElementById("add-btn");
|
||||||
addButton.addEventListener("click", () => {
|
addButton.addEventListener("click", () => {
|
||||||
navigateToAdd();
|
navigateToAdd();
|
||||||
@ -24,6 +25,7 @@ searchButton.addEventListener("click", () => {
|
|||||||
const searchString = searchBar.value;
|
const searchString = searchBar.value;
|
||||||
search(searchString);
|
search(searchString);
|
||||||
});
|
});
|
||||||
|
|
||||||
const searchBar = document.getElementById("search-entry");
|
const searchBar = document.getElementById("search-entry");
|
||||||
export let searchBarTimeout;
|
export let searchBarTimeout;
|
||||||
searchBar.addEventListener("input", () => {
|
searchBar.addEventListener("input", () => {
|
||||||
@ -64,8 +66,9 @@ for (const downvoteButton of downvoteButtons) {
|
|||||||
downvoteButton.addEventListener("click", downvoteButtonClickListener);
|
downvoteButton.addEventListener("click", downvoteButtonClickListener);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// functions of the main page
|
||||||
function navigateToAdd() {
|
function navigateToAdd() {
|
||||||
|
//TODO: url to add page not yet implemented, add here
|
||||||
}
|
}
|
||||||
|
|
||||||
function filter(filterString) {
|
function filter(filterString) {
|
||||||
|
Loading…
Reference in New Issue
Block a user