Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
zedflow
fgdi
Commits
325a9ae8
Commit
325a9ae8
authored
Oct 24, 2023
by
Traboulsi
Browse files
Update public/js/paperfilter.js
parent
99455748
Pipeline
#8745
passed with stage
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/js/paperfilter.js
View file @
325a9ae8
...
...
@@ -27,10 +27,10 @@ function filter(year){
}
if
(
state
==
0
){
console
.
log
(
"
filter
"
)
// Start loading/adding the paper content to the page here .....
if
(
year
==
"
2020
"
){
for
(
var
j
=
0
;
j
<
jsonContent
.
length
;
j
++
)
{
var
filterString
=
jsonContent
[
j
].
item
.
conference
.
date
.
toString
()
...
...
@@ -146,14 +146,7 @@ function filter(year){
document
.
getElementById
(
"
filter2022
"
).
innerHTML
=
"
2022 (
"
+
count
+
"
)
"
count
=
0
}
else
if
(
year
==
"
All
"
){
for
(
var
j
=
0
;
j
<
jsonContent
.
length
;
j
++
)
{
addpaper
(
jsonContent
[
j
]);
}
state
=
1
//Do something
}
count
+=
1
document
.
getElementById
(
"
filterall
"
).
style
.
backgroundColor
=
"
grey
"
document
.
getElementById
(
"
filter2019
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2021
"
).
style
.
backgroundColor
=
"
lightgrey
"
...
...
@@ -169,6 +162,7 @@ function filter(year){
}
if
(
year
==
"
2020
"
)
{
state2020
=
1
state2021
=
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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