sergio_educacionit

galeria objecet storage

Apr 8th, 2026
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.26 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="es">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <title>Galería de imágenes</title>
  7.     <style>
  8.         body {
  9.             font-family: Arial, sans-serif;
  10.             margin: 20px;
  11.         }
  12.  
  13.         h1 {
  14.             font-size: 22px;
  15.         }
  16.  
  17.         #galeria {
  18.             display: flex;
  19.             flex-wrap: wrap;
  20.             gap: 16px;
  21.         }
  22.  
  23.         #galeria img {
  24.             width: 300px;
  25.             height: auto;
  26.             border: 1px solid #ccc;
  27.             padding: 4px;
  28.             background: #f9f9f9;
  29.         }
  30.     </style>
  31. </head>
  32. <body>
  33.     <h1>Imágenes del bucket</h1>
  34.     <div id="galeria"></div>
  35.  
  36.     <script>
  37.         const imagenes = [
  38.             "HTTP://IP_OBJECT_STORAGE_SERVICE:PORT/API/...,
  39.             "HTTP://IP_OBJECT_STORAGE_SERVICE:PORT/API/...,
  40.             "HTTP://IP_OBJECT_STORAGE_SERVICE:PORT/API/...
  41.         ];
  42.  
  43.         const galeria = document.getElementById("galeria");
  44.  
  45.         imagenes.forEach(url => {
  46.             const img = document.createElement("img");
  47.             img.src = url;
  48.             img.alt = "Imagen del bucket";
  49.             galeria.appendChild(img);
  50.         });
  51.     </script>
  52. </body>
  53. </html>
Advertisement
Add Comment
Please, Sign In to add comment