Commit 34c1c9d3 authored by Traboulsi's avatar Traboulsi
Browse files

Update public/js/paperfilter.js

parent 4c6bd9ef
Pipeline #8777 passed with stage
in 9 seconds
...@@ -187,7 +187,30 @@ function filter(year){ ...@@ -187,7 +187,30 @@ function filter(year){
document.getElementById("filter2020").innerHTML = "2020" document.getElementById("filter2020").innerHTML = "2020"
document.getElementById("filter2022").innerHTML = "2022 (" + count +")" document.getElementById("filter2022").innerHTML = "2022 (" + count +")"
count = 0 count = 0
} /*else if (year == "All"){ }else if (year == "All" || year == "Alles")
{
state = 1
document.getElementById("filter2019").style.backgroundColor = "lightgrey"
document.getElementById("filter2021").style.backgroundColor = "lightgrey"
document.getElementById("filter2020").style.backgroundColor = "lightgrey"
document.getElementById("filter2022").style.backgroundColor = "lightgrey"
document.getElementById("filter2023").style.backgroundColor = "lightgrey"
document.getElementById("filterall").style.backgroundColor = "grey"
document.getElementById("filter2019").innerHTML = "2019"
document.getElementById("filter2021").innerHTML = "2021"
document.getElementById("filter2020").innerHTML = "2020"
document.getElementById("filter2022").innerHTML = "2022"
document.getElementById("filter2023").innerHTML = "2023"
if(lang_new == "1" )
{
document.getElementById("filterall").innerHTML = "All"
}else if(lang_new == "2" ){
document.getElementById("filterall").innerHTML = "Alles"
}
//fin
}
/*else if (year == "All"){
for (var j = 0; j < jsonContent.length; j++) { for (var j = 0; j < jsonContent.length; j++) {
var filterString = jsonContent[j].item.conference.date.toString() var filterString = jsonContent[j].item.conference.date.toString()
if ( filterString.includes('2022') || filterString.includes('2023') || filterString.includes('2020') || filterString.includes('2019') || filterString.includes('2021')|| jsonContent[j].item.journal.year == 2022 || jsonContent[j].item.journal.year == 2023 || jsonContent[j].item.journal.year == 2019 || jsonContent[j].item.journal.year == 2020 || jsonContent[j].item.journal.year == 2021) { if ( filterString.includes('2022') || filterString.includes('2023') || filterString.includes('2020') || filterString.includes('2019') || filterString.includes('2021')|| jsonContent[j].item.journal.year == 2022 || jsonContent[j].item.journal.year == 2023 || jsonContent[j].item.journal.year == 2019 || jsonContent[j].item.journal.year == 2020 || jsonContent[j].item.journal.year == 2021) {
...@@ -238,7 +261,6 @@ function filter(year){ ...@@ -238,7 +261,6 @@ function filter(year){
document.getElementById("filterall").innerHTML = "Alles (" + count +")" document.getElementById("filterall").innerHTML = "Alles (" + count +")"
count = 0 count = 0
}*/ }*/
if (year == "2020") { if (year == "2020") {
state2020 = 1 state2020 = 1
state2021 = 0 state2021 = 0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment