Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSWeb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
VIPSWeb
Commits
cc4119fe
Commit
cc4119fe
authored
8 months ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
feat: Fix table layout, remove debug output
parent
deaba6de
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cydiapomonella/static/js/cydiapomonella.js
+1
-3
1 addition, 3 deletions
cydiapomonella/static/js/cydiapomonella.js
cydiapomonella/templates/cydiapomonella/index.html
+5
-5
5 additions, 5 deletions
cydiapomonella/templates/cydiapomonella/index.html
with
6 additions
and
8 deletions
cydiapomonella/static/js/cydiapomonella.js
+
1
−
3
View file @
cc4119fe
...
@@ -210,11 +210,9 @@ class CydiaPomonella
...
@@ -210,11 +210,9 @@ class CydiaPomonella
if
(
this
.
getSelectedWeatherdataSourceType
()
==
this
.
WEATHER_DATASOURCE_TYPE_WEATHERSTATION
)
if
(
this
.
getSelectedWeatherdataSourceType
()
==
this
.
WEATHER_DATASOURCE_TYPE_WEATHERSTATION
)
{
{
const
selectedWeatherstationId
=
parseInt
(
this
.
getSelectedWeatherstation
());
const
selectedWeatherstationId
=
parseInt
(
this
.
getSelectedWeatherstation
());
console
.
info
(
selectedWeatherstationId
);
this
.
appleWeatherStations
.
forEach
((
ws
)
=>
{
this
.
appleWeatherStations
.
forEach
((
ws
)
=>
{
if
(
ws
.
id
==
selectedWeatherstationId
)
if
(
ws
.
id
==
selectedWeatherstationId
)
{
{
console
.
info
(
"
Found
"
+
ws
.
name
);
weatherStationName
=
ws
.
name
;
weatherStationName
=
ws
.
name
;
}
}
});
});
...
@@ -264,7 +262,7 @@ class CydiaPomonella
...
@@ -264,7 +262,7 @@ class CydiaPomonella
renderTable
(
hourlyData
,
dailyData
)
renderTable
(
hourlyData
,
dailyData
)
{
{
document
.
getElementById
(
"
weatherData
"
).
style
.
display
=
"
block
"
;
document
.
getElementById
(
"
weatherData
"
).
style
.
display
=
"
table
"
;
let
tableBody
=
document
.
getElementById
(
"
tableBody
"
);
let
tableBody
=
document
.
getElementById
(
"
tableBody
"
);
tableBody
.
innerHTML
=
""
;
tableBody
.
innerHTML
=
""
;
let
currentDate
=
this
.
getStartDateHourly
();
let
currentDate
=
this
.
getStartDateHourly
();
...
...
This diff is collapsed.
Click to expand it.
cydiapomonella/templates/cydiapomonella/index.html
+
5
−
5
View file @
cc4119fe
...
@@ -177,10 +177,10 @@ Created: 2024-10-28
...
@@ -177,10 +177,10 @@ Created: 2024-10-28
<input
type=
"radio"
name=
"weatherdataType"
id=
"coordinates"
value=
"coordinates"
checked
onchange=
"displayCoordinatesInput()"
>
<input
type=
"radio"
name=
"weatherdataType"
id=
"coordinates"
value=
"coordinates"
checked
onchange=
"displayCoordinatesInput()"
>
for et spesifikt punkt (koordinater)
for et spesifikt punkt (koordinater)
</label>
</label>
<div
id=
"input-coordinates"
class=
"form-inline"
>
<div
id=
"input-coordinates"
class=
"form-inline"
style=
"margin-top: 10px;"
>
<input
type=
"text"
class=
"form-control"
name=
"latitude"
id=
"latitude"
onchange=
"runModel()"
placeholder=
"Breddegrad"
aria-label=
"Breddegrad"
>
<input
type=
"text"
class=
"form-control"
name=
"latitude"
id=
"latitude"
onchange=
"runModel()"
placeholder=
"Breddegrad"
aria-label=
"Breddegrad"
>
<input
type=
"text"
class=
"form-control"
name=
"longitude"
id=
"longitude"
onchange=
"runModel()"
placeholder=
"Lengdegrad"
aria-label=
"Lengdegrad"
>
<input
type=
"text"
class=
"form-control"
name=
"longitude"
id=
"longitude"
onchange=
"runModel()"
placeholder=
"Lengdegrad"
aria-label=
"Lengdegrad"
>
<button
type=
"button"
class=
"btn btn-primary"
onclick=
"openCoordinatesMap()"
><i
class=
"fa fa-map-marker fa-lg"
></i>
Velg i kart
</button>
<button
type=
"button"
class=
"btn btn-primary"
onclick=
"openCoordinatesMap()"
style=
"margin-left: 5px;"
><i
class=
"fa fa-map-marker fa-lg"
></i>
Velg i kart
</button>
</div>
</div>
<div
id=
"coordinates-map"
class=
"map-modal"
></div>
<div
id=
"coordinates-map"
class=
"map-modal"
></div>
</div>
</div>
...
@@ -189,11 +189,11 @@ Created: 2024-10-28
...
@@ -189,11 +189,11 @@ Created: 2024-10-28
<input
type=
"radio"
name=
"weatherdataType"
id=
"weatherstation"
value=
"weatherstation"
onchange=
"displayWeatherstationInput()"
>
<input
type=
"radio"
name=
"weatherdataType"
id=
"weatherstation"
value=
"weatherstation"
onchange=
"displayWeatherstationInput()"
>
fra en værstasjon
fra en værstasjon
</label>
</label>
<div
id=
"input-weatherstation"
class=
"form-inline"
style=
"display: none;"
>
<div
id=
"input-weatherstation"
class=
"form-inline"
style=
"
margin-top: 10px;
display: none;"
>
<select
name=
"weatherStationName"
id=
"weatherStationId"
class=
"form-control"
onchange=
"runModel();"
>
<select
name=
"weatherStationName"
id=
"weatherStationId"
class=
"form-control"
style=
"width: 60%;"
onchange=
"runModel();"
>
<option
value=
"-1"
>
-- {% trans "Select weather station" %} --
</option>
<option
value=
"-1"
>
-- {% trans "Select weather station" %} --
</option>
</select>
</select>
<button
type=
"button"
class=
"btn btn-primary"
onclick=
"openPoiMap()"
><i
class=
"fa fa-map-marker fa-lg"
></i>
Velg i kart
</button>
<button
type=
"button"
class=
"btn btn-primary"
onclick=
"openPoiMap()"
style=
"margin-left: 5px;"
><i
class=
"fa fa-map-marker fa-lg"
></i>
Velg i kart
</button>
</div>
</div>
<div
id=
"poi-map"
class=
"map-modal"
></div>
<div
id=
"poi-map"
class=
"map-modal"
></div>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment