Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Karakas
SWP_SS24_Wetterdaten_sammeln
Commits
16d36bc8
Commit
16d36bc8
authored
Jun 09, 2024
by
Weiser
Browse files
asdf
parent
3c0e9b8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/weather/currentData.js
View file @
16d36bc8
...
...
@@ -76,11 +76,8 @@ const Currentdata = (props) => {
/>
<
label
>
Last
Updated
<
/label
>
<
br
/>
<
input
type
=
"
checkbox
"
id
=
"
temp_c
"
className
=
"
checkBoxFilter
"
/>
<
label
for
=
"
temp_c
"
>
Temp
C
<
/label
>
<
br
/>
<
input
type
=
"
checkbox
"
id
=
"
temp_f
"
className
=
"
checkBoxFilter
"
/>
<
label
for
=
"
temp_f
"
>
Temp
F
<
/label
>
<
input
type
=
"
checkbox
"
id
=
"
temp
"
className
=
"
checkBoxFilter
"
/>
<
label
for
=
"
temp
"
>
Temp
C
<
/label
>
<
br
/>
<
input
type
=
"
checkbox
"
id
=
"
id_day
"
className
=
"
checkBoxFilter
"
/>
<
label
for
=
"
id_day
"
>
ID
Day
<
/label
>
...
...
@@ -264,8 +261,7 @@ const Currentdata = (props) => {
const
last_updated_epoch
=
document
.
getElementById
(
"
last_updated_epoch
"
).
checked
;
const
last_updated
=
document
.
getElementById
(
"
last_updated
"
).
checked
;
const
temp_c
=
document
.
getElementById
(
"
temp_c
"
).
checked
;
const
temp_f
=
document
.
getElementById
(
"
temp_f
"
).
checked
;
const
temp_c
=
document
.
getElementById
(
"
temp
"
).
checked
;
const
id_day
=
document
.
getElementById
(
"
id_day
"
).
checked
;
const
condition_text
=
document
.
getElementById
(
"
condition_text
"
).
checked
;
const
condition_icon
=
document
.
getElementById
(
"
condition_icon
"
).
checked
;
...
...
@@ -331,11 +327,8 @@ const Currentdata = (props) => {
if
(
last_updated
)
{
filterArray
.
push
(
"
last_updated
"
);
}
if
(
temp_c
)
{
filterArray
.
push
(
"
temp_c
"
);
}
if
(
temp_f
)
{
filterArray
.
push
(
"
temp_f
"
);
if
(
temp
)
{
filterArray
.
push
(
"
temp
"
);
}
if
(
id_day
)
{
filterArray
.
push
(
"
id_day
"
);
...
...
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