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
a2ce773e
Commit
a2ce773e
authored
Oct 25, 2023
by
Traboulsi
Browse files
Update public/js/paperfilter.js
parent
ec091a73
Pipeline
#8770
passed with stage
in 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/js/paperfilter.js
View file @
a2ce773e
...
...
@@ -13,7 +13,9 @@ function filter(year){
new_row
.
innerHTML
=
""
;
document
.
getElementById
(
"
nextblock
"
).
style
.
display
=
"
none
"
if
(
year
==
"
All
"
)
{
if
(
year
==
"
Alles
"
)
{
state
=
stateall
}
else
if
(
year
==
"
All
"
)
{
state
=
stateall
}
else
if
(
year
==
"
2019
"
)
{
state
=
state2019
...
...
@@ -48,7 +50,7 @@ function filter(year){
document
.
getElementById
(
"
filter2023
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filterall
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2022
"
).
innerHTML
=
"
2022
"
document
.
getElementById
(
"
filterall
"
).
innerHTML
=
"
All
"
//
document.getElementById("filterall").innerHTML = "All"
document
.
getElementById
(
"
filter2023
"
).
innerHTML
=
"
2023
"
document
.
getElementById
(
"
filter2020
"
).
innerHTML
=
"
2020 (
"
+
count
+
"
)
"
document
.
getElementById
(
"
filter2021
"
).
innerHTML
=
"
2021
"
...
...
@@ -73,7 +75,7 @@ function filter(year){
document
.
getElementById
(
"
filter2022
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2023
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2023
"
).
innerHTML
=
"
2023
"
document
.
getElementById
(
"
filterall
"
).
innerHTML
=
"
All
"
//
document.getElementById("filterall").innerHTML = "All"
document
.
getElementById
(
"
filter2022
"
).
innerHTML
=
"
2022
"
document
.
getElementById
(
"
filter2021
"
).
innerHTML
=
"
2021 (
"
+
count
+
"
)
"
document
.
getElementById
(
"
filter2020
"
).
innerHTML
=
"
2020
"
...
...
@@ -102,7 +104,7 @@ function filter(year){
document
.
getElementById
(
"
filter2019
"
).
innerHTML
=
"
2019 (
"
+
count
+
"
)
"
document
.
getElementById
(
"
filter2021
"
).
innerHTML
=
"
2021
"
document
.
getElementById
(
"
filter2020
"
).
innerHTML
=
"
2020
"
document
.
getElementById
(
"
filterall
"
).
innerHTML
=
"
All
"
//
document.getElementById("filterall").innerHTML = "All"
count
=
0
}
else
if
(
year
==
"
2023
"
){
for
(
var
j
=
0
;
j
<
jsonContent
.
length
;
j
++
)
{
...
...
@@ -127,7 +129,7 @@ function filter(year){
document
.
getElementById
(
"
filter2023
"
).
innerHTML
=
"
2023 (
"
+
count
+
"
)
"
document
.
getElementById
(
"
filter2021
"
).
innerHTML
=
"
2021
"
document
.
getElementById
(
"
filter2020
"
).
innerHTML
=
"
2020
"
document
.
getElementById
(
"
filterall
"
).
innerHTML
=
"
All
"
//
document.getElementById("filterall").innerHTML = "All"
count
=
0
}
else
if
(
year
==
"
2022
"
){
for
(
var
j
=
0
;
j
<
jsonContent
.
length
;
j
++
)
{
...
...
@@ -148,7 +150,7 @@ function filter(year){
document
.
getElementById
(
"
filterall
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2022
"
).
style
.
backgroundColor
=
"
grey
"
document
.
getElementById
(
"
filter2019
"
).
innerHTML
=
"
2019
"
document
.
getElementById
(
"
filterall
"
).
innerHTML
=
"
All
"
//
document.getElementById("filterall").innerHTML = "All"
document
.
getElementById
(
"
filter2021
"
).
innerHTML
=
"
2021
"
document
.
getElementById
(
"
filter2023
"
).
innerHTML
=
"
2023
"
document
.
getElementById
(
"
filter2020
"
).
innerHTML
=
"
2020
"
...
...
@@ -179,7 +181,33 @@ function filter(year){
document
.
getElementById
(
"
filter2020
"
).
innerHTML
=
"
2020
"
document
.
getElementById
(
"
filterall
"
).
innerHTML
=
"
All (
"
+
count
+
"
)
"
count
=
0
}
else
if
(
year
==
"
Alles
"
){
for
(
var
j
=
0
;
j
<
jsonContent
.
length
;
j
++
)
{
var
filterString
=
jsonContent
[
j
].
item
.
conference
.
date
.
toString
()
if
(
filterString
.
includes
(
'
2022
'
)
||
filterString
.
includes
(
'
2023
'
)
||
filterString
.
includes
(
'
2020
'
)
||
filterString
.
includes
(
'
2019
'
)
||
filterString
.
includes
(
'
2021
'
)
||
jsonContent
[
j
].
item
.
journal
.
year
==
2022
||
jsonContent
[
j
].
item
.
journal
.
year
==
2023
||
jsonContent
[
j
].
item
.
journal
.
year
==
2019
||
jsonContent
[
j
].
item
.
journal
.
year
==
2020
||
jsonContent
[
j
].
item
.
journal
.
year
==
2021
)
{
addpaper
(
jsonContent
[
j
]);
count
+=
1
}
state
=
1
//Do something
}
document
.
getElementById
(
"
filter2019
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2021
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2020
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2023
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filterall
"
).
style
.
backgroundColor
=
"
grey
"
document
.
getElementById
(
"
filter2022
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2019
"
).
innerHTML
=
"
2019
"
document
.
getElementById
(
"
filter2022
"
).
innerHTML
=
"
2022
"
document
.
getElementById
(
"
filter2021
"
).
innerHTML
=
"
2021
"
document
.
getElementById
(
"
filter2023
"
).
innerHTML
=
"
2023
"
document
.
getElementById
(
"
filter2020
"
).
innerHTML
=
"
2020
"
document
.
getElementById
(
"
filterall
"
).
innerHTML
=
"
Alles (
"
+
count
+
"
)
"
count
=
0
}
if
(
year
==
"
2020
"
)
{
state2020
=
1
state2021
=
0
...
...
@@ -218,14 +246,14 @@ function filter(year){
state2022
=
0
state2023
=
1
stateall
=
0
}
else
if
(
year
==
"
All
"
){
}
else
if
(
year
==
"
All
"
||
year
==
"
Alles
"
){
state2019
=
0
state2020
=
0
state2021
=
0
state2022
=
0
state2023
=
0
stateall
=
1
}
}
}
else
if
(
state
==
1
)
{
...
...
@@ -241,7 +269,7 @@ function filter(year){
}
else
if
(
year
==
"
2023
"
){
state2023
=
0
}
else
if
(
year
==
"
All
"
){
}
else
if
(
year
==
"
All
"
||
year
==
"
Alles
"
){
stateall
=
0
}
document
.
getElementById
(
"
filter2020
"
).
style
.
backgroundColor
=
"
lightgrey
"
...
...
@@ -262,6 +290,11 @@ function filter(year){
document
.
getElementById
(
"
filter2020
"
).
innerHTML
=
"
2020
"
document
.
getElementById
(
"
filter2022
"
).
innerHTML
=
"
2022
"
document
.
getElementById
(
"
filter2023
"
).
innerHTML
=
"
2023
"
document
.
getElementById
(
"
filterall
"
).
innerHTML
=
"
All
"
if
(
lang_setting
==
"
1
"
)
{
document
.
getElementById
(
"
filterall
"
).
innerHTML
=
"
All
"
}
else
if
(
lang_setting
==
"
2
"
){
document
.
getElementById
(
"
filterall
"
).
innerHTML
=
"
Alles
"
}
}
}
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