Skip to content

Commit

Permalink
Carteles arreglados
Browse files Browse the repository at this point in the history
  • Loading branch information
PGSCOM committed Apr 16, 2024
1 parent 16b4272 commit 0c920bd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/Sitio.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ function ocultarimg(Id) {
const userAgent = navigator.userAgent;

function openPopup(VideoId) {
//Si el nombre contiene o .svg o .png
if (VideoId.includes(".svg") || VideoId.includes(".png")) {
//Si el nombre contiene o .svg o .png o .jpg
if (VideoId.includes(".svg") || VideoId.includes(".png") || VideoId.includes(".jpg")) {
openPopupImg(VideoId);
} else if (VideoId.includes("https")) {
url(VideoId);
Expand Down
18 changes: 9 additions & 9 deletions src/datos.json
Original file line number Diff line number Diff line change
Expand Up @@ -300,42 +300,42 @@
{
"titulo": "Pol Sanz",
"nombre_foto": "./carteles/pol.png",
"youtube_id": "./carteles/pol.png"
"youtube_id": "pol.png"
},
{
"titulo": "Jesús Alberto",
"nombre_foto": "./carteles/martires.png",
"youtube_id": "./carteles/martires.png"
"youtube_id": "martires.png"
},
{
"titulo": "Aarón Sancibrián",
"nombre_foto": "./carteles/multiguerras.png",
"youtube_id": "./carteles/multiguerras.png"
"youtube_id": "multiguerras.png"
},
{
"titulo": "Sara, Claudia y Candela",
"nombre_foto": "./carteles/mileva.png",
"youtube_id": "./carteles/mileva.png"
"nombre_foto": "./carteles/mileva.jpg",
"youtube_id": "mileva.jpg"
},
{
"titulo": "Hectór Sancibrián y Diego",
"nombre_foto": "./carteles/turing.png",
"youtube_id": "./carteles/turing.png"
"youtube_id": "turing.png"
},
{
"titulo": "Little Boy",
"nombre_foto": "./carteles/boy.svg",
"youtube_id": "./carteles/boy.svg"
"youtube_id": "boy.svg"
},
{
"titulo": "Borrón y cuenta nueva",
"nombre_foto": "./carteles/borron.png",
"youtube_id": "./carteles/borron.png"
"youtube_id": "borron.png"
},
{
"titulo": "Fleming",
"nombre_foto": "./carteles/fleming.png",
"youtube_id": "./carteles/fleming.png"
"youtube_id": "fleming.png"
}
]
}
Expand Down

0 comments on commit 0c920bd

Please sign in to comment.