Compare commits
No commits in common. "67d06cd887abce532db8676f4d4d94af1dd907f4" and "e4f33bcca9463f3a4f985acfa9a1669a84825c11" have entirely different histories.
67d06cd887
...
e4f33bcca9
@ -10,12 +10,12 @@
|
|||||||
<wrapper>
|
<wrapper>
|
||||||
<topbar>
|
<topbar>
|
||||||
<titlebox>
|
<titlebox>
|
||||||
<img alt="website image is Blahaj" src="media/blahaj.png">
|
<img src="media/blahaj.png">
|
||||||
<span>Tranga</span>
|
<span>Tranga</span>
|
||||||
</titlebox>
|
</titlebox>
|
||||||
<spacer></spacer>
|
<spacer></spacer>
|
||||||
<searchdiv>
|
<searchdiv>
|
||||||
<label for="searchbox"></label><input id="searchbox" placeholder="Filter" type="text">
|
<input id="searchbox" placeholder="Filter" type="text">
|
||||||
</searchdiv>
|
</searchdiv>
|
||||||
<img id="settingscog" src="media/settings-cogwheel.svg" height="100%" alt="settingscog">
|
<img id="settingscog" src="media/settings-cogwheel.svg" height="100%" alt="settingscog">
|
||||||
</topbar>
|
</topbar>
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
let tasks = [];
|
let tasks = [];
|
||||||
let toEditId;
|
let toEditId;
|
||||||
|
|
||||||
const searchBox = document.querySelector("#searchbox");
|
|
||||||
const searchPublicationQuery = document.querySelector("#searchPublicationQuery");
|
const searchPublicationQuery = document.querySelector("#searchPublicationQuery");
|
||||||
const selectPublication = document.querySelector("#taskSelectOutput");
|
const selectPublication = document.querySelector("#taskSelectOutput");
|
||||||
const connectorSelect = document.querySelector("#connectors");
|
const connectorSelect = document.querySelector("#connectors");
|
||||||
@ -35,7 +34,6 @@ const tagTasksTotal = document.querySelector("#totalTasksTag");
|
|||||||
const tagTaskPopup = document.querySelector("footer-tag-popup");
|
const tagTaskPopup = document.querySelector("footer-tag-popup");
|
||||||
const tagTasksPopupContent = document.querySelector("footer-tag-content");
|
const tagTasksPopupContent = document.querySelector("footer-tag-content");
|
||||||
|
|
||||||
searchbox.addEventListener("keyup", (event) => FilterResults());
|
|
||||||
settingsCog.addEventListener("click", () => OpenSettings());
|
settingsCog.addEventListener("click", () => OpenSettings());
|
||||||
document.querySelector("#blurBackgroundSettingsPopup").addEventListener("click", () => HideSettings());
|
document.querySelector("#blurBackgroundSettingsPopup").addEventListener("click", () => HideSettings());
|
||||||
closetaskpopup.addEventListener("click", () => HideAddTaskPopup());
|
closetaskpopup.addEventListener("click", () => HideAddTaskPopup());
|
||||||
@ -333,30 +331,6 @@ function CloseTasksPopup(){
|
|||||||
tagTaskPopup.style.display = "none";
|
tagTaskPopup.style.display = "none";
|
||||||
}
|
}
|
||||||
|
|
||||||
function FilterResults(){
|
|
||||||
if(searchBox.value.length > 0){
|
|
||||||
tasksContent.childNodes.forEach(publication => {
|
|
||||||
publication.childNodes.forEach(item => {
|
|
||||||
if(item.nodeName.toLowerCase() == "publication-information"){
|
|
||||||
item.childNodes.forEach(information => {
|
|
||||||
if(information.nodeName.toLowerCase() == "publication-name"){
|
|
||||||
if(!information.textContent.toLowerCase().includes(searchBox.value.toLowerCase())){
|
|
||||||
publication.style.display = "none";
|
|
||||||
}else{
|
|
||||||
publication.style.display = "initial";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}else{
|
|
||||||
tasksContent.childNodes.forEach(publication => publication.style.display = "initial");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
//Resets the tasks shown
|
//Resets the tasks shown
|
||||||
ResetContent();
|
ResetContent();
|
||||||
//Get Tasks and show them
|
//Get Tasks and show them
|
||||||
|
Loading…
Reference in New Issue
Block a user