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
c9cae824
Commit
c9cae824
authored
Mar 19, 2026
by
Traboulsi
Browse files
Update public/js/paperfilter.js
parent
940dc59e
Pipeline
#12376
passed with stage
in 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/js/paperfilter.js
View file @
c9cae824
...
@@ -67,6 +67,12 @@ function filter(year){
...
@@ -67,6 +67,12 @@ function filter(year){
document
.
getElementById
(
"
filter2022
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2022
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2023
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2023
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filterall
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filterall
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2024
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2025
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2026
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2024
"
).
innerHTML
=
"
2024
"
document
.
getElementById
(
"
filter2025
"
).
innerHTML
=
"
2025
"
document
.
getElementById
(
"
filter2026
"
).
innerHTML
=
"
2026
"
document
.
getElementById
(
"
filter2022
"
).
innerHTML
=
"
2022
"
document
.
getElementById
(
"
filter2022
"
).
innerHTML
=
"
2022
"
//document.getElementById("filterall").innerHTML = "All"
//document.getElementById("filterall").innerHTML = "All"
if
(
lang_setting
==
"
1
"
)
if
(
lang_setting
==
"
1
"
)
...
@@ -99,7 +105,14 @@ function filter(year){
...
@@ -99,7 +105,14 @@ function filter(year){
document
.
getElementById
(
"
filter2019
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2019
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2022
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2022
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2023
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2023
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2024
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2025
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2026
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2024
"
).
innerHTML
=
"
2024
"
document
.
getElementById
(
"
filter2025
"
).
innerHTML
=
"
2025
"
document
.
getElementById
(
"
filter2026
"
).
innerHTML
=
"
2026
"
document
.
getElementById
(
"
filter2023
"
).
innerHTML
=
"
2023
"
document
.
getElementById
(
"
filter2023
"
).
innerHTML
=
"
2023
"
//document.getElementById("filterall").innerHTML = "All"
//document.getElementById("filterall").innerHTML = "All"
if
(
lang_setting
==
"
1
"
)
if
(
lang_setting
==
"
1
"
)
{
{
...
@@ -131,6 +144,12 @@ function filter(year){
...
@@ -131,6 +144,12 @@ function filter(year){
document
.
getElementById
(
"
filter2022
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2022
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2023
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2023
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filterall
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filterall
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2024
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2025
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2026
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2024
"
).
innerHTML
=
"
2024
"
document
.
getElementById
(
"
filter2025
"
).
innerHTML
=
"
2025
"
ocument
.
getElementById
(
"
filter2026
"
).
innerHTML
=
"
2026
"
document
.
getElementById
(
"
filter2022
"
).
innerHTML
=
"
2022
"
document
.
getElementById
(
"
filter2022
"
).
innerHTML
=
"
2022
"
document
.
getElementById
(
"
filter2023
"
).
innerHTML
=
"
2023
"
document
.
getElementById
(
"
filter2023
"
).
innerHTML
=
"
2023
"
document
.
getElementById
(
"
filter2019
"
).
innerHTML
=
"
2019 (
"
+
count
+
"
)
"
document
.
getElementById
(
"
filter2019
"
).
innerHTML
=
"
2019 (
"
+
count
+
"
)
"
...
@@ -163,7 +182,13 @@ function filter(year){
...
@@ -163,7 +182,13 @@ function filter(year){
document
.
getElementById
(
"
filter2020
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2020
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2022
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2022
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filterall
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filterall
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2022
"
).
innerHTML
=
"
2022
"
document
.
getElementById
(
"
filter2024
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2025
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2026
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2024
"
).
innerHTML
=
"
2024
"
document
.
getElementById
(
"
filter2025
"
).
innerHTML
=
"
2025
"
document
.
getElementById
(
"
filter2026
"
).
innerHTML
=
"
2026
"
document
.
getElementById
(
"
filter2022
"
).
innerHTML
=
"
2022
"
document
.
getElementById
(
"
filter2019
"
).
innerHTML
=
"
2019
"
document
.
getElementById
(
"
filter2019
"
).
innerHTML
=
"
2019
"
document
.
getElementById
(
"
filter2023
"
).
innerHTML
=
"
2023 (
"
+
count
+
"
)
"
document
.
getElementById
(
"
filter2023
"
).
innerHTML
=
"
2023 (
"
+
count
+
"
)
"
document
.
getElementById
(
"
filter2021
"
).
innerHTML
=
"
2021
"
document
.
getElementById
(
"
filter2021
"
).
innerHTML
=
"
2021
"
...
@@ -193,8 +218,14 @@ function filter(year){
...
@@ -193,8 +218,14 @@ function filter(year){
document
.
getElementById
(
"
filter2021
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2021
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2020
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2020
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2023
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2023
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filterall
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filterall
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2022
"
).
style
.
backgroundColor
=
"
grey
"
document
.
getElementById
(
"
filter2022
"
).
style
.
backgroundColor
=
"
grey
"
document
.
getElementById
(
"
filter2024
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2025
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2026
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2024
"
).
innerHTML
=
"
2024
"
document
.
getElementById
(
"
filter2025
"
).
innerHTML
=
"
2025
"
document
.
getElementById
(
"
filter2026
"
).
innerHTML
=
"
2026
"
document
.
getElementById
(
"
filter2019
"
).
innerHTML
=
"
2019
"
document
.
getElementById
(
"
filter2019
"
).
innerHTML
=
"
2019
"
// document.getElementById("filterall").innerHTML = "All"
// document.getElementById("filterall").innerHTML = "All"
if
(
lang_setting
==
"
1
"
)
if
(
lang_setting
==
"
1
"
)
...
@@ -233,6 +264,9 @@ function filter(year){
...
@@ -233,6 +264,9 @@ function filter(year){
// andere Labels zurücksetzen
// andere Labels zurücksetzen
document
.
getElementById
(
"
filter2023
"
).
innerHTML
=
"
2023
"
document
.
getElementById
(
"
filter2023
"
).
innerHTML
=
"
2023
"
document
.
getElementById
(
"
filter2022
"
).
innerHTML
=
"
2022
"
document
.
getElementById
(
"
filter2022
"
).
innerHTML
=
"
2022
"
document
.
getElementById
(
"
filter2019
"
).
innerHTML
=
"
2019
"
document
.
getElementById
(
"
filter2020
"
).
innerHTML
=
"
2020
"
document
.
getElementById
(
"
filter2021
"
).
innerHTML
=
"
2021
"
if
(
lang_setting
==
"
1
"
)
{
if
(
lang_setting
==
"
1
"
)
{
document
.
getElementById
(
"
filterall
"
).
innerHTML
=
"
All
"
document
.
getElementById
(
"
filterall
"
).
innerHTML
=
"
All
"
...
@@ -266,6 +300,9 @@ function filter(year){
...
@@ -266,6 +300,9 @@ function filter(year){
document
.
getElementById
(
"
filter2024
"
).
innerHTML
=
"
2024
"
document
.
getElementById
(
"
filter2024
"
).
innerHTML
=
"
2024
"
document
.
getElementById
(
"
filter2023
"
).
innerHTML
=
"
2023
"
document
.
getElementById
(
"
filter2023
"
).
innerHTML
=
"
2023
"
document
.
getElementById
(
"
filter2022
"
).
innerHTML
=
"
2022
"
document
.
getElementById
(
"
filter2022
"
).
innerHTML
=
"
2022
"
document
.
getElementById
(
"
filter2019
"
).
innerHTML
=
"
2019
"
document
.
getElementById
(
"
filter2020
"
).
innerHTML
=
"
2020
"
document
.
getElementById
(
"
filter2021
"
).
innerHTML
=
"
2021
"
if
(
lang_setting
==
"
1
"
)
{
if
(
lang_setting
==
"
1
"
)
{
document
.
getElementById
(
"
filterall
"
).
innerHTML
=
"
All
"
document
.
getElementById
(
"
filterall
"
).
innerHTML
=
"
All
"
...
@@ -299,6 +336,10 @@ function filter(year){
...
@@ -299,6 +336,10 @@ function filter(year){
document
.
getElementById
(
"
filter2025
"
).
innerHTML
=
"
2025
"
document
.
getElementById
(
"
filter2025
"
).
innerHTML
=
"
2025
"
document
.
getElementById
(
"
filter2024
"
).
innerHTML
=
"
2024
"
document
.
getElementById
(
"
filter2024
"
).
innerHTML
=
"
2024
"
document
.
getElementById
(
"
filter2023
"
).
innerHTML
=
"
2023
"
document
.
getElementById
(
"
filter2023
"
).
innerHTML
=
"
2023
"
document
.
getElementById
(
"
filter2022
"
).
innerHTML
=
"
2022
"
document
.
getElementById
(
"
filter2019
"
).
innerHTML
=
"
2019
"
document
.
getElementById
(
"
filter2020
"
).
innerHTML
=
"
2020
"
document
.
getElementById
(
"
filter2021
"
).
innerHTML
=
"
2021
"
if
(
lang_setting
==
"
1
"
)
{
if
(
lang_setting
==
"
1
"
)
{
document
.
getElementById
(
"
filterall
"
).
innerHTML
=
"
All
"
document
.
getElementById
(
"
filterall
"
).
innerHTML
=
"
All
"
...
@@ -322,6 +363,12 @@ function filter(year){
...
@@ -322,6 +363,12 @@ function filter(year){
document
.
getElementById
(
"
filter2022
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2022
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2023
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2023
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filterall
"
).
style
.
backgroundColor
=
"
grey
"
document
.
getElementById
(
"
filterall
"
).
style
.
backgroundColor
=
"
grey
"
document
.
getElementById
(
"
filter2024
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2025
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2026
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2024
"
).
innerHTML
=
"
2024
"
document
.
getElementById
(
"
filter2025
"
).
innerHTML
=
"
2025
"
document
.
getElementById
(
"
filter2026
"
).
innerHTML
=
"
2026
"
document
.
getElementById
(
"
filter2019
"
).
innerHTML
=
"
2019
"
document
.
getElementById
(
"
filter2019
"
).
innerHTML
=
"
2019
"
document
.
getElementById
(
"
filter2021
"
).
innerHTML
=
"
2021
"
document
.
getElementById
(
"
filter2021
"
).
innerHTML
=
"
2021
"
document
.
getElementById
(
"
filter2020
"
).
innerHTML
=
"
2020
"
document
.
getElementById
(
"
filter2020
"
).
innerHTML
=
"
2020
"
...
@@ -412,6 +459,9 @@ function filter(year){
...
@@ -412,6 +459,9 @@ function filter(year){
state2021
=
0
state2021
=
0
state2022
=
0
state2022
=
0
state2023
=
0
state2023
=
0
state2024
=
0
state2025
=
0
state2026
=
0
stateall
=
1
stateall
=
1
}
}
//Update the value of the activeyear
//Update the value of the activeyear
...
@@ -446,6 +496,12 @@ function filter(year){
...
@@ -446,6 +496,12 @@ function filter(year){
document
.
getElementById
(
"
filter2022
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2022
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2023
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2023
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filterall
"
).
style
.
backgroundColor
=
"
grey
"
document
.
getElementById
(
"
filterall
"
).
style
.
backgroundColor
=
"
grey
"
document
.
getElementById
(
"
filter2024
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2025
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2026
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2024
"
).
innerHTML
=
"
2024
"
document
.
getElementById
(
"
filter2025
"
).
innerHTML
=
"
2025
"
document
.
getElementById
(
"
filter2026
"
).
innerHTML
=
"
2026
"
document
.
getElementById
(
"
filter2019
"
).
innerHTML
=
"
2019
"
document
.
getElementById
(
"
filter2019
"
).
innerHTML
=
"
2019
"
document
.
getElementById
(
"
filter2021
"
).
innerHTML
=
"
2021
"
document
.
getElementById
(
"
filter2021
"
).
innerHTML
=
"
2021
"
document
.
getElementById
(
"
filter2020
"
).
innerHTML
=
"
2020
"
document
.
getElementById
(
"
filter2020
"
).
innerHTML
=
"
2020
"
...
...
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