Platform
Resources
Pricing
Sign in
Get started
Sergio Rodríguez Gómez
Workspace
Fork
Public
By
Sergio Rodríguez Gómez
Edited
Nov 18, 2024
3
Insert cell
Insert cell
Insert cell
Insert cell
<
div
id
=
"contenedor-panel"
>
</
div
>
Insert cell
Insert cell
aventuraLibreria
=
import
(
await
FileAttachment
(
"aventura.js"
)
.
url
(
)
)
Insert cell
Insert cell
aventura
=
new
aventuraLibreria
.
Aventura
(
"es"
,
{
// OPCIONES
velocidadMaquina
:
0
,
deslizarAImagen
:
false
,
contenedorAventura
:
"contenedor-panel"
}
)
Insert cell
Insert cell
escenas
=
FileAttachment
(
"escenas.json"
)
.
json
(
)
Insert cell
Insert cell
aventura
.
fijarEscenas
(
escenas
)
.
iniciarAventura
(
"panel_inicio"
)
Insert cell
Insert cell
estilo =
<
style
>
/* Contenedor general */
#
storygeneraldiv
{
box-sizing
:
border-box
;
margin
:
auto
;
max-width
:
900
px
;
font-family
:
"Arial"
;
background
:
white
;
}
/* Contenedor de la historia */
.
storydiv
{
border
:
solid
black
1
px
;
width
:
100
%
;
display
:
flex
;
padding
:
10
px
;
flex-direction
:
column
;
box-sizing
:
border-box
;
}
/* Párrafo de texto */
.
storyp
{
font-size
:
18
px
;
min-height
:
25
px
;
}
/* Botón de opciones */
.
storybutton-container
{
margin
:
auto
;
}
.
storybutton
{
background
:
cyan
;
box-shadow
:
none
;
border
:
solid
1
px
;
margin
:
0
px
1
em
0
px
0
px
;
font-size
:
20
px
;
font-family
:
'Arial'
;
cursor
:
pointer
;
}
.
storybutton
:
hover
{
color
:
white
;
background
:
black
;
}
/* Imagen */
.
storyimage-container
{
box-sizing
:
content-box
;
position
:
relative
;
width
:
100
%
;
margin
:
auto
;
}
.
storyimage
{
justify-content
:
center
;
width
:
100
%
;
margin
:
auto
;
border-radius
:
20
px
;
display
:
block
;
}
/* Área clickeable en la imagen */
.
storyimage-area
{
position
:
absolute
;
cursor
:
pointer
;
text-align
:
center
;
color
:
black
;
border-radius
:
4
px
;
padding
:
10
px
;
border
:
solid
1
px
black
;
}
.
storyimage-area
:
hover
{
background
:
#ffffff33
;
}
/* Configuración para dispositivos pequeños */
@media
screen
and
(
max-device-width
:
500
px
)
{
#
storygeneraldiv
{
max-width
:
100
%
;
}
.
storyp
{
font-size
:
7
vw
;
}
.
storybutton
{
font-size
:
10
vw
;
}
</
style
>
Insert cell
Insert cell
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
aventuraLibreria
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
aventura
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
escenas
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML