Commit 8631f6a6 authored by Traboulsi's avatar Traboulsi
Browse files

Update public/js/paperfilter.js

parent aef7421a
Pipeline #8795 passed with stage
in 9 seconds
...@@ -41,7 +41,7 @@ function filter(year){ ...@@ -41,7 +41,7 @@ function filter(year){
console.log("filter") console.log("filter")
// Start loading/adding the paper content to the page here ..... // Start loading/adding the paper content to the page here .....
if (year == "2020"){ if (year == "2020"){
document.getElementById("nextblock").style.display = "block" //document.getElementById("nextblock").style.display = "block"
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('2020') || jsonContent[j].item.journal.year == 2020) { if ( filterString.includes('2020') || jsonContent[j].item.journal.year == 2020) {
...@@ -72,7 +72,7 @@ function filter(year){ ...@@ -72,7 +72,7 @@ function filter(year){
document.getElementById("filter2019").innerHTML = "2019" document.getElementById("filter2019").innerHTML = "2019"
count = 0 count = 0
} else if (year == "2021"){ } else if (year == "2021"){
document.getElementById("nextblock").style.display = "block" //document.getElementById("nextblock").style.display = "block"
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('2021') || jsonContent[j].item.journal.year == 2021) { if ( filterString.includes('2021') || jsonContent[j].item.journal.year == 2021) {
...@@ -104,7 +104,7 @@ function filter(year){ ...@@ -104,7 +104,7 @@ function filter(year){
document.getElementById("filter2019").innerHTML = "2019" document.getElementById("filter2019").innerHTML = "2019"
count = 0 count = 0
} else if (year == "2019"){ } else if (year == "2019"){
document.getElementById("nextblock").style.display = "block" //document.getElementById("nextblock").style.display = "block"
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('2019') || jsonContent[j].item.journal.year == 2019) { if ( filterString.includes('2019') || jsonContent[j].item.journal.year == 2019) {
...@@ -136,7 +136,7 @@ function filter(year){ ...@@ -136,7 +136,7 @@ function filter(year){
} }
count = 0 count = 0
} else if (year == "2023"){ } else if (year == "2023"){
document.getElementById("nextblock").style.display = "block" // document.getElementById("nextblock").style.display = "block"
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('2023') || jsonContent[j].item.journal.year == 2023) { if ( filterString.includes('2023') || jsonContent[j].item.journal.year == 2023) {
...@@ -168,7 +168,7 @@ function filter(year){ ...@@ -168,7 +168,7 @@ function filter(year){
} }
count = 0 count = 0
} else if (year == "2022"){ } else if (year == "2022"){
document.getElementById("nextblock").style.display = "block" //document.getElementById("nextblock").style.display = "block"
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') || jsonContent[j].item.journal.year == 2022) { 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