Skip to content

Commit c0d07af

Browse files
author
Roger Marin Navarro
committed
Added buttons fits
1 parent 888d43d commit c0d07af

8 files changed

Lines changed: 108692 additions & 25 deletions

web/aladin.html

Lines changed: 42 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -33,30 +33,48 @@
3333
<div class="samples">
3434
<span class="samples-label">Try a sample dataset:</span>
3535
<div class="sample-buttons">
36-
<button
37-
type="button"
38-
data-fits-url="https://cdsarc.cds.unistra.fr/saadavizier/download?oid=864972989978905533"
39-
data-label="WISE Infrared — IC 434 & Horsehead Nebula"
40-
data-colormap="magma"
41-
>
42-
Horsehead Nebula (WISE)
43-
</button>
44-
<button
45-
type="button"
46-
data-fits-url="https://fits.gsfc.nasa.gov/samples/NGC6543.fits"
47-
data-label="HST WFPC2 — NGC 6543 (Cat's Eye)"
48-
data-colormap="viridis"
49-
>
50-
Cat's Eye Nebula (HST)
51-
</button>
52-
<button
53-
type="button"
54-
data-fits-url="https://fits.gsfc.nasa.gov/samples/FUV.fits"
55-
data-label="GALEX FUV — M101 Spiral"
56-
data-colormap="plasma"
57-
>
58-
Pinwheel Galaxy (GALEX)
59-
</button>
36+
<button class="fits-button"
37+
type="button"
38+
data-fits-url="/web/examples/EUVEngc4151imgx.fits"
39+
data-label="EUV — NGC 4151"
40+
data-colormap="magma">
41+
Ver NGC 4151 (EUV)
42+
</button>
43+
<button class="fits-button"
44+
type="button"
45+
data-fits-url="/web/examples/FGSf64y0106m_a1f.fits"
46+
data-label="FGS — f64y0106m"
47+
data-colormap="gray">
48+
Ver FGS f64y0106m
49+
</button>
50+
<button class="fits-button"
51+
type="button"
52+
data-fits-url="/web/examples/FOCx38i0101t_c0f.fits"
53+
data-label="FOC — x38i0101t"
54+
data-colormap="plasma">
55+
Ver FOC x38i0101t
56+
</button>
57+
<button class="fits-button"
58+
type="button"
59+
data-fits-url="/web/examples/FPC2u5780205r_c0fx.fits"
60+
data-label="FPC2 — u5780205r"
61+
data-colormap="viridis">
62+
Ver FPC2 u5780205r
63+
</button>
64+
<button class="fits-button"
65+
type="button"
66+
data-fits-url="/web/examples/UITfuv2582gc.fits"
67+
data-label="UIT — FUV 2582"
68+
data-colormap="inferno">
69+
Ver UIT FUV 2582
70+
</button>
71+
<button class="fits-button"
72+
type="button"
73+
data-fits-url="/web/examples/WFPC2ASSNu5780205bx.fits"
74+
data-label="WFPC2 — ASSN u5780205bx"
75+
data-colormap="cividis">
76+
Ver WFPC2 ASSN
77+
</button>
6078
</div>
6179
</div>
6280
<p class="notice" id="aladin-hint">

web/examples/EUVEngc4151imgx.fits

Lines changed: 1796 additions & 0 deletions
Large diffs are not rendered by default.

web/examples/FGSf64y0106m_a1f.fits

Lines changed: 91976 additions & 0 deletions
Large diffs are not rendered by default.

web/examples/FOCx38i0101t_c0f.fits

Lines changed: 12802 additions & 0 deletions
Large diffs are not rendered by default.

web/examples/FPC2u5780205r_c0fx.fits

Lines changed: 1814 additions & 0 deletions
Large diffs are not rendered by default.

web/examples/UITfuv2582gc.fits

Lines changed: 108 additions & 0 deletions
Large diffs are not rendered by default.

web/examples/WFPC2ASSNu5780205bx.fits

Lines changed: 135 additions & 0 deletions
Large diffs are not rendered by default.

web/styles.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,27 @@ button:disabled {
184184
gap: 0.4rem;
185185
}
186186

187+
.sample-buttons {
188+
display: grid;
189+
grid-template-columns: repeat(2, 1fr); /* dos columnas iguales */
190+
gap: 0.6rem;
191+
}
192+
187193
.sample-buttons button {
194+
width: 100%;
195+
height: 44px;
196+
font-size: 0.8rem;
197+
text-align: center;
198+
padding: 0.45rem 0.70rem;
199+
border-radius: 0.7rem;
200+
display: inline-flex;
201+
align-items: center;
202+
justify-content: center;
188203
background: rgba(59, 130, 246, 0.14);
189-
border-color: rgba(59, 130, 246, 0.4);
204+
border: 1px solid rgba(59, 130, 246, 0.4);
205+
color: inherit;
206+
cursor: pointer;
207+
transition: background 0.2s ease, border-color 0.2s ease;
190208
}
191209

192210
.sample-buttons button:hover {

0 commit comments

Comments
 (0)