Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
zedflow
fgdi
Commits
3a6bdba9
Commit
3a6bdba9
authored
1 year ago
by
Traboulsi
Browse files
Options
Download
Email Patches
Plain Diff
Update public/js/paperfilter.js
parent
e73ed129
Pipeline
#8753
passed with stage
in 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/js/paperfilter.js
+8
-3
public/js/paperfilter.js
with
8 additions
and
3 deletions
+8
-3
public/js/paperfilter.js
+
8
-
3
View file @
3a6bdba9
...
@@ -22,7 +22,7 @@ function filter(year){
...
@@ -22,7 +22,7 @@ function filter(year){
state
=
state2022
state
=
state2022
}
else
if
(
year
==
"
2023
"
){
}
else
if
(
year
==
"
2023
"
){
state
=
state2023
state
=
state2023
}
else
if
(
year
==
"
All
"
){
}
else
if
(
year
==
"
All
"
){
state
=
stateall
state
=
stateall
}
}
...
@@ -53,7 +53,7 @@ function filter(year){
...
@@ -53,7 +53,7 @@ function filter(year){
document
.
getElementById
(
"
filter2021
"
).
innerHTML
=
"
2021
"
document
.
getElementById
(
"
filter2021
"
).
innerHTML
=
"
2021
"
document
.
getElementById
(
"
filter2019
"
).
innerHTML
=
"
2019
"
document
.
getElementById
(
"
filter2019
"
).
innerHTML
=
"
2019
"
count
=
0
count
=
0
}
else
if
(
year
==
"
2021
"
){
}
else
if
(
year
==
"
2021
"
){
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
)
{
...
@@ -146,7 +146,12 @@ function filter(year){
...
@@ -146,7 +146,12 @@ function filter(year){
document
.
getElementById
(
"
filter2022
"
).
innerHTML
=
"
2022 (
"
+
count
+
"
)
"
document
.
getElementById
(
"
filter2022
"
).
innerHTML
=
"
2022 (
"
+
count
+
"
)
"
count
=
0
count
=
0
}
else
if
(
year
==
"
All
"
){
}
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
(
"
filterall
"
).
style
.
backgroundColor
=
"
grey
"
document
.
getElementById
(
"
filter2019
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2019
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2021
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2021
"
).
style
.
backgroundColor
=
"
lightgrey
"
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets