Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
zedflow
fgdi
Commits
8631f6a6
Commit
8631f6a6
authored
Oct 25, 2023
by
Traboulsi
Browse files
Update public/js/paperfilter.js
parent
aef7421a
Pipeline
#8795
passed with stage
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/js/paperfilter.js
View file @
8631f6a6
...
...
@@ -41,7 +41,7 @@ function filter(year){
console
.
log
(
"
filter
"
)
// Start loading/adding the paper content to the page here .....
if
(
year
==
"
2020
"
){
document
.
getElementById
(
"
nextblock
"
).
style
.
display
=
"
block
"
//
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
(
'
2020
'
)
||
jsonContent
[
j
].
item
.
journal
.
year
==
2020
)
{
...
...
@@ -72,7 +72,7 @@ function filter(year){
document
.
getElementById
(
"
filter2019
"
).
innerHTML
=
"
2019
"
count
=
0
}
else
if
(
year
==
"
2021
"
){
document
.
getElementById
(
"
nextblock
"
).
style
.
display
=
"
block
"
//
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
)
{
...
...
@@ -104,7 +104,7 @@ function filter(year){
document
.
getElementById
(
"
filter2019
"
).
innerHTML
=
"
2019
"
count
=
0
}
else
if
(
year
==
"
2019
"
){
document
.
getElementById
(
"
nextblock
"
).
style
.
display
=
"
block
"
//
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
)
{
...
...
@@ -136,7 +136,7 @@ function filter(year){
}
count
=
0
}
else
if
(
year
==
"
2023
"
){
document
.
getElementById
(
"
nextblock
"
).
style
.
display
=
"
block
"
//
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
)
{
...
...
@@ -168,7 +168,7 @@ function filter(year){
}
count
=
0
}
else
if
(
year
==
"
2022
"
){
document
.
getElementById
(
"
nextblock
"
).
style
.
display
=
"
block
"
//
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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment