Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="es">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Galería de imágenes</title>
- <style>
- body {
- font-family: Arial, sans-serif;
- margin: 20px;
- }
- h1 {
- font-size: 22px;
- }
- #galeria {
- display: flex;
- flex-wrap: wrap;
- gap: 16px;
- }
- #galeria img {
- width: 300px;
- height: auto;
- border: 1px solid #ccc;
- padding: 4px;
- background: #f9f9f9;
- }
- </style>
- </head>
- <body>
- <h1>Imágenes del bucket</h1>
- <div id="galeria"></div>
- <script>
- const imagenes = [
- "HTTP://IP_OBJECT_STORAGE_SERVICE:PORT/API/...,
- "HTTP://IP_OBJECT_STORAGE_SERVICE:PORT/API/...,
- "HTTP://IP_OBJECT_STORAGE_SERVICE:PORT/API/...
- ];
- const galeria = document.getElementById("galeria");
- imagenes.forEach(url => {
- const img = document.createElement("img");
- img.src = url;
- img.alt = "Imagen del bucket";
- galeria.appendChild(img);
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment