Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aire-cdmx
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rodrigo Tapia-McClung
aire-cdmx
Commits
b4935b0b
Commit
b4935b0b
authored
Jul 07, 2021
by
Rodrigo Tapia-McClung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved legend. Added min-max labels
parent
b3fb3f80
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
10 deletions
+22
-10
index.html
public/index.html
+22
-10
No files found.
public/index.html
View file @
b4935b0b
...
@@ -30,12 +30,6 @@
...
@@ -30,12 +30,6 @@
display
:
block
;
display
:
block
;
margin
:
0
0
10px
;
margin
:
0
0
10px
;
}
}
.map-overlay
.legend
.bar
{
height
:
10px
;
width
:
100%
;
background
:
linear-gradient
(
to
right
,
rgb
(
0
,
0
,
0
)
5px
,
rgb
(
0
,
228
,
0
)
5px
,
rgb
(
255
,
255
,
0
),
rgb
(
255
,
126
,
0
),
rgb
(
255
,
0
,
0
),
rgb
(
143
,
63
,
151
));
/* 0, 51, 95, 135, 175*/
}
.map-overlay
#slider
{
.map-overlay
#slider
{
background-color
:
transparent
;
background-color
:
transparent
;
display
:
inline-block
;
display
:
inline-block
;
...
@@ -48,6 +42,22 @@
...
@@ -48,6 +42,22 @@
#controls
{
display
:
flex
;
flex-direction
:
row
;
}
#controls
{
display
:
flex
;
flex-direction
:
row
;
}
#play-button
{
margin
:
0
;
padding
:
0
;
border
:
0
;
outline
:
0
;
background
:
transparent
;
cursor
:
pointer
;}
#play-button
{
margin
:
0
;
padding
:
0
;
border
:
0
;
outline
:
0
;
background
:
transparent
;
cursor
:
pointer
;}
#play-button
:hover
{
color
:
#848480
;
}
#play-button
:hover
{
color
:
#848480
;
}
.legend
.bar
{
height
:
18px
;
width
:
100%
;
background
:
linear-gradient
(
to
right
,
rgb
(
0
,
0
,
0
)
10px
,
rgb
(
0
,
228
,
0
)
10px
,
rgb
(
255
,
255
,
0
),
rgb
(
255
,
126
,
0
),
rgb
(
255
,
0
,
0
),
rgb
(
143
,
63
,
151
));
/* 0, 51, 95, 135, 175*/
}
#zero
,
#min
{
float
:
left
;
font-size
:
11px
;
padding
:
0px
0
0
3px
;
}
#max
{
float
:
right
;
font-size
:
11px
;
padding
:
0px
3px
0
0
;
}
</style>
</style>
</head>
</head>
...
@@ -55,17 +65,19 @@
...
@@ -55,17 +65,19 @@
<div
id=
"mexmap"
></div>
<div
id=
"mexmap"
></div>
<div
class=
"map-overlay top"
>
<div
class=
"map-overlay top"
>
<div
class=
"map-overlay-inner"
>
<div
class=
"map-overlay-inner"
>
<h2>
Calidad del aire - O
3
en 2020
</h2>
<h2>
Calidad del aire - O
<span
style=
"font-size: 11px;"
>
3
</span>
en 2020
</h2>
<label
id=
"datetime"
></label>
<label
id=
"datetime"
></label>
<div
id=
"controls"
>
<div
id=
"controls"
>
<button
id=
"play-button"
><i
class=
'material-icons'
>
play_arrow
</i></button>
<button
id=
"play-button"
><i
class=
'material-icons'
>
play_arrow
</i></button>
<input
id=
"slider"
type=
"range"
/>
<input
id=
"slider"
type=
"range"
/>
</div>
</div>
<div
id=
"legend"
class=
"legend"
>
<div
id=
"legend"
class=
"legend"
>
<div
class=
"bar"
></div>
<!-- TODO: put labels in legend, on hover, or show tooltip of max value at each date -->
<div
class=
"bar"
>
<div>
Ozono (ppm)
</div>
<div
id=
"zero"
style=
"color: white; font-weight: 600;"
>
0
</div>
<div
id=
"min"
style=
"color: white; font-weight: 600;"
>
<
51 ppm
</div>
<div
id=
"max"
style=
"color: white; font-weight: 600;"
>
>
175 ppm
</div>
</div>
<!-- TODO: add other legend labels or, on hover, show tooltip of max value at each date -->
</div>
</div>
</div>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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