Commit 58da6015 authored by Traboulsi's avatar Traboulsi
Browse files

Update public/js/paperfilter.js

parent 34c1c9d3
Pipeline #8778 passed with stage
in 10 seconds
...@@ -189,25 +189,30 @@ function filter(year){ ...@@ -189,25 +189,30 @@ function filter(year){
count = 0 count = 0
}else if (year == "All" || year == "Alles") }else if (year == "All" || year == "Alles")
{ {
state = 1 document.getElementById("nextblock").style.display = "block"
for (var j = 0; j < 6; j++) {
addpaper(jsonContent[j]);
//Do something
}
state = 0
document.getElementById("filter2019").style.backgroundColor = "lightgrey" document.getElementById("filter2019").style.backgroundColor = "lightgrey"
document.getElementById("filter2021").style.backgroundColor = "lightgrey" document.getElementById("filter2021").style.backgroundColor = "lightgrey"
document.getElementById("filter2020").style.backgroundColor = "lightgrey" document.getElementById("filter2020").style.backgroundColor = "lightgrey"
document.getElementById("filter2022").style.backgroundColor = "lightgrey" document.getElementById("filter2022").style.backgroundColor = "lightgrey"
document.getElementById("filter2023").style.backgroundColor = "lightgrey" document.getElementById("filter2023").style.backgroundColor = "lightgrey"
document.getElementById("filterall").style.backgroundColor = "grey" document.getElementById("filterall").style.backgroundColor = "lightgrey"
document.getElementById("filter2019").innerHTML = "2019" document.getElementById("filter2019").innerHTML = "2019"
document.getElementById("filter2021").innerHTML = "2021" document.getElementById("filter2021").innerHTML = "2021"
document.getElementById("filter2020").innerHTML = "2020" document.getElementById("filter2020").innerHTML = "2020"
document.getElementById("filter2022").innerHTML = "2022" document.getElementById("filter2022").innerHTML = "2022"
document.getElementById("filter2023").innerHTML = "2023" document.getElementById("filter2023").innerHTML = "2023"
if(lang_new == "1" ) if(lang_new == "1" )
{ {
document.getElementById("filterall").innerHTML = "All" document.getElementById("filterall").innerHTML = "All"
}else if(lang_new == "2" ){ }else if(lang_new == "2" ){
document.getElementById("filterall").innerHTML = "Alles" document.getElementById("filterall").innerHTML = "Alles"
} }
//fin
} }
/*else if (year == "All"){ /*else if (year == "All"){
...@@ -325,7 +330,7 @@ function filter(year){ ...@@ -325,7 +330,7 @@ function filter(year){
}else if (year == "All" || year == "Alles"){ }else if (year == "All" || year == "Alles"){
stateall = 0 stateall = 0
} }
document.getElementById("filter2020").style.backgroundColor = "lightgrey" //document.getElementById("filter2020").style.backgroundColor = "lightgrey"
document.getElementById("nextblock").style.display = "block" document.getElementById("nextblock").style.display = "block"
for (var j = 0; j < 6; j++) { for (var j = 0; j < 6; j++) {
addpaper(jsonContent[j]); addpaper(jsonContent[j]);
......
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