Commit b8a6ce13 authored by Traboulsi's avatar Traboulsi
Browse files

Update public/js/paperfilter.js

parent 32ac9721
Pipeline #8790 passed with stage
in 10 seconds
......@@ -72,6 +72,7 @@ function filter(year){
document.getElementById("filter2019").innerHTML = "2019"
count = 0
} else if (year == "2021"){
document.getElementById("nextblock").style.display = "block"
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) {
......@@ -103,6 +104,7 @@ function filter(year){
document.getElementById("filter2019").innerHTML = "2019"
count = 0
} else if (year == "2019"){
document.getElementById("nextblock").style.display = "block"
for (var j = 0; j < jsonContent.length; j++) {
var filterString = jsonContent[j].item.conference.date.toString()
if ( filterString.includes('2019') || jsonContent[j].item.journal.year == 2019) {
......@@ -134,6 +136,7 @@ function filter(year){
}
count = 0
} else if (year == "2023"){
document.getElementById("nextblock").style.display = "block"
for (var j = 0; j < jsonContent.length; j++) {
var filterString = jsonContent[j].item.conference.date.toString()
if ( filterString.includes('2023') || jsonContent[j].item.journal.year == 2023) {
......@@ -165,6 +168,7 @@ function filter(year){
}
count = 0
} else if (year == "2022"){
document.getElementById("nextblock").style.display = "block"
for (var j = 0; j < jsonContent.length; j++) {
var filterString = jsonContent[j].item.conference.date.toString()
if ( filterString.includes('2022') || jsonContent[j].item.journal.year == 2022) {
......
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