Commit 3a6bdba9 authored by Traboulsi's avatar Traboulsi
Browse files

Update public/js/paperfilter.js

parent e73ed129
Pipeline #8753 passed with stage
in 11 seconds
Showing with 8 additions and 3 deletions
+8 -3
......@@ -22,7 +22,7 @@ function filter(year){
state = state2022
}else if (year == "2023"){
state = state2023
}else if(year=="All"){
}else if(year == "All"){
state = stateall
}
......@@ -53,7 +53,7 @@ function filter(year){
document.getElementById("filter2021").innerHTML = "2021"
document.getElementById("filter2019").innerHTML = "2019"
count = 0
} else if (year == "2021"){
}else if (year == "2021"){
for (var j = 0; j < jsonContent.length; j++) {
var filterString = jsonContent[j].item.conference.date.toString()
if ( filterString.includes('2021') || jsonContent[j].item.journal.year == 2021) {
......@@ -146,7 +146,12 @@ function filter(year){
document.getElementById("filter2022").innerHTML = "2022 (" + count +")"
count = 0
}else if (year == "All"){
count += 1
for (var j = 0; j < jsonContent.length; j++) {
addpaper(jsonContent[j]);
count += 1;
}
state = 1
document.getElementById("filterall").style.backgroundColor = "grey"
document.getElementById("filter2019").style.backgroundColor = "lightgrey"
document.getElementById("filter2021").style.backgroundColor = "lightgrey"
......
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