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
37f4a8f6
Commit
37f4a8f6
authored
Jun 09, 2024
by
EnesKarakas
Browse files
dwa
parent
5d445a5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/weather/currentData.js
View file @
37f4a8f6
...
...
@@ -9,18 +9,18 @@ const Currentdata = (props) => {
<
div
className
=
"
thq-grid-5
"
>
<
div
class
=
"
filter
"
>
<
label
for
=
"
location
"
>
Location
:
<
/label
>
<
input
type
=
"
text
"
id
=
"
location
"
placeholder
=
"
Location
"
/>
<
input
type
=
"
text
"
id
=
"
city_text
"
placeholder
=
"
Location
"
/>
<
br
/>
<
label
for
=
"
region
"
>
Region
:
<
/label
>
<
input
type
=
"
text
"
id
=
"
region
"
placeholder
=
"
Region
"
/>
<
input
type
=
"
text
"
id
=
"
region
_text
"
placeholder
=
"
Region
"
/>
<
br
/>
<
label
>
Country
:
<
/label
>
<
input
type
=
"
text
"
id
=
"
country
"
placeholder
=
"
Country
"
/>
<
input
type
=
"
text
"
id
=
"
country
_text
"
placeholder
=
"
Country
"
/>
<
br
/>
<
label
>
Latitude
:
<
/label
>
<
input
type
=
"
text
"
id
=
"
latitude
"
placeholder
=
"
Latitude
"
/>
<
input
type
=
"
text
"
id
=
"
latitude
_text
"
placeholder
=
"
Latitude
"
/>
<
label
>
Longitude
:
<
/label
>
<
input
type
=
"
text
"
id
=
"
longitude
"
placeholder
=
"
Longitude
"
/>
<
input
type
=
"
text
"
id
=
"
longitude
_text
"
placeholder
=
"
Longitude
"
/>
<
br
/>
<
/div
>
<
div
>
...
...
@@ -197,7 +197,25 @@ const Currentdata = (props) => {
/>
<
label
for
=
"
air_quality_gb_defra_index
"
>
GB
DEFRA
Index
<
/label
>
<
br
/>
<
br
/>
<
div
>
<
button
className
=
"
thq-button-filled
"
onClick
=
{
getData
}
>
Generate
<
/button
>
<
/div
>
<
br
/>
<
div
class
=
"
output
"
>
<
h2
>
Output
:
<
/h2
>
<
br
/>
<
pre
id
=
"
weatherData
"
><
/pre
>
<
/div
>
<
div
id
=
"
apiUrl
"
>
<
label
>
API
URL
:
<
/label
>
<
br
/>
<
input
className
=
"
input
"
type
=
"
text
"
id
=
"
apiUrloutput
"
readOnly
/>
<
/div
>
<
button
className
=
"
APIButton
"
onClick
=
{
searchAPI
}
>
City
api
<
/button
>
<
br
/>
<
br
/>
<
/div
>
...
...
@@ -248,7 +266,7 @@ const Currentdata = (props) => {
let
filterArray
=
[];
if
(
name
)
{
if
(
document
.
getElementById
(
"
name
"
).
checked
)
{
filterArray
.
push
(
"
name
"
);
}
if
(
region
)
{
...
...
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