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
58da6015
You need to sign in or sign up before continuing.
Commit
58da6015
authored
Oct 25, 2023
by
Traboulsi
Browse files
Update public/js/paperfilter.js
parent
34c1c9d3
Pipeline
#8778
passed with stage
in 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/js/paperfilter.js
View file @
58da6015
...
@@ -189,25 +189,30 @@ function filter(year){
...
@@ -189,25 +189,30 @@ function filter(year){
count
=
0
count
=
0
}
else
if
(
year
==
"
All
"
||
year
==
"
Alles
"
)
}
else
if
(
year
==
"
All
"
||
year
==
"
Alles
"
)
{
{
state
=
1
document
.
getElementById
(
"
nextblock
"
).
style
.
display
=
"
block
"
for
(
var
j
=
0
;
j
<
6
;
j
++
)
{
addpaper
(
jsonContent
[
j
]);
//Do something
}
state
=
0
document
.
getElementById
(
"
filter2019
"
).
style
.
backgroundColor
=
"
lightgrey
"
document
.
getElementById
(
"
filter2019
"
).
style
.
backgroundColor
=
"
lightgrey
"
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
(
"
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
=
"
light
grey
"
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
"
document
.
getElementById
(
"
filter2022
"
).
innerHTML
=
"
2022
"
document
.
getElementById
(
"
filter2022
"
).
innerHTML
=
"
2022
"
document
.
getElementById
(
"
filter2023
"
).
innerHTML
=
"
2023
"
document
.
getElementById
(
"
filter2023
"
).
innerHTML
=
"
2023
"
if
(
lang_new
==
"
1
"
)
if
(
lang_new
==
"
1
"
)
{
{
document
.
getElementById
(
"
filterall
"
).
innerHTML
=
"
All
"
document
.
getElementById
(
"
filterall
"
).
innerHTML
=
"
All
"
}
else
if
(
lang_new
==
"
2
"
){
}
else
if
(
lang_new
==
"
2
"
){
document
.
getElementById
(
"
filterall
"
).
innerHTML
=
"
Alles
"
document
.
getElementById
(
"
filterall
"
).
innerHTML
=
"
Alles
"
}
}
//fin
}
}
/*else if (year == "All"){
/*else if (year == "All"){
...
@@ -325,7 +330,7 @@ function filter(year){
...
@@ -325,7 +330,7 @@ function filter(year){
}
else
if
(
year
==
"
All
"
||
year
==
"
Alles
"
){
}
else
if
(
year
==
"
All
"
||
year
==
"
Alles
"
){
stateall
=
0
stateall
=
0
}
}
document
.
getElementById
(
"
filter2020
"
).
style
.
backgroundColor
=
"
lightgrey
"
//
document.getElementById("filter2020").style.backgroundColor = "lightgrey"
document
.
getElementById
(
"
nextblock
"
).
style
.
display
=
"
block
"
document
.
getElementById
(
"
nextblock
"
).
style
.
display
=
"
block
"
for
(
var
j
=
0
;
j
<
6
;
j
++
)
{
for
(
var
j
=
0
;
j
<
6
;
j
++
)
{
addpaper
(
jsonContent
[
j
]);
addpaper
(
jsonContent
[
j
]);
...
...
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