Gallery

sábado, 28 de noviembre de 2026

GRID - Simple y el mejor que se ha creado

Ggrid para tener contenido en la pantalla




Ahora si el código para copiar y pegar

HTML5

<div class="parent">
    <div class="div1">
       
         <iframe
            src="#"
            width="100%"
            height="100%"
            title="BitMe"
            loading="lazy">
        </iframe>

    </div>
    <div class="div2">
       
        <iframe
            src="#"
            width="100%"
            height="100%"
            title="Hoppers"
            loading="lazy">
        </iframe>

    </div>
    <div class="div3">

         <iframe
            src="#"
            width="100%"
            height="100%"
            title="HBO"
            loading="lazy">
        </iframe>

    </div>
    <div class="div4">
       
       <img src="https://i.pinimg.com/originals/
            e2/9e/1a/e29e1a7bcce0269e79cc7430d7736ee0.gif" alt="gif gato">
     
       
    </div>
    <div class="div5">
        <img src="https://i.redd.it/rmyx34qz0r471.gif" alt="gif ciudad">

    </div>
    <div class="div6">
        <img src="https://i.pinimg.com/originals/7
            b/35/1f/7b351fe4af916680bca761e0b1072e82.gif" alt="arbol rosa">

    </div>
    <div class="div7">
        <img src="https://i.pinimg.com/originals/
        97/25/39/97253941a874955f10c180764759d2cd.gif" alt="playita">

    </div>
    <div class="div8">
        <iframe
            src="#"
            width="100%"
            height="100%"
            title="Canal MX"
            loading="lazy">
        </iframe>

    </div>
    <div class="div9">
        <img src="https://diocesanos.es/blogs/
        equipotic/wp-content/uploads/sites/2/2020/06/banner_8.gif" alt="">

    </div>
</div>


--------------------------- CSS

.parent {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 8px;

    width: 100%;
    max-height: 600px;
    height: min(600px, 60vw);

    overflow: hidden;
}

/* Imágenes */
.parent > div {
    overflow: hidden;
    border-radius: 10px;
}

.parent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.div2 {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
}

.div3 {
    grid-column-start: 4;
}

.div4 {
    grid-row: span 2 / span 2;
    grid-column-start: 5;
}

.div5 {
    grid-row: span 3 / span 3;
    grid-row-start: 2;
}

.div6 {
    grid-column: span 2 / span 2;
    grid-column-start: 2;
    grid-row-start: 3;
}

.div7 {
    grid-row: span 2 / span 2;
    grid-column-start: 4;
    grid-row-start: 2;
}

.div8 {
    grid-column-start: 5;
    grid-row-start: 3;
}

.div9 {
    grid-column: span 4 / span 4;
    grid-column-start: 2;
    grid-row-start: 4;
}
       

viernes, 27 de noviembre de 2026

Javascript - Copiar texto con onclic

 Copiar contenido con funcion onclic


Ya solo falta copiar el código y pegarlo acá:
------ HTML

<p onclick="copyText('81-4777-5355')"
class="hover:text-[#fcee0a] cursor-pointer flex justify-between items-center">
<span>811330-5555</span>
<i class="ph ph-copy text-xs text-gray-500"></i>
</p>
------ JAVASCRIPT
   let toastTimeout;

        function copyText(text) {
            // Crear un input temporal para asegurar compatibilidad en
todos los navegadores e iframes
            const tempInput = document.createElement('input');
            tempInput.value = text;
            document.body.appendChild(tempInput);
            tempInput.select();
            document.execCommand('copy');
            document.body.removeChild(tempInput);

            // Mostrar notificación visual estilo Cyberpunk
            const toast = document.getElementById('cyber-toast');
            const toastMsg = document.getElementById('toast-message');
           
            toastMsg.textContent = `COPIADO: ${text}`;
            toast.classList.remove('translate-y-24', 'opacity-0');
            toast.classList.add('translate-y-0', 'opacity-100');

            clearTimeout(toastTimeout);
            toastTimeout = setTimeout(() => {
                toast.classList.remove('translate-y-0', 'opacity-100');
                toast.classList.add('translate-y-24', 'opacity-0');
            }, 2500);
        }


Funciona de maravilla en el sitio..


lunes, 23 de noviembre de 2026

PHP - Configurar tema en localhost

Cambio a modo oscuro en localhost



Pasos para lograr el temas que quieras..
...
1.- Descargar el tema
2.- Guardarlo en la carpeta de phpMyAdmin theme (descomprimir): C:\xampp\phpMyAdmin\themes
3.- Editar el achivo: config.inc.php, al final del archivo hay que agregar la línea: 
$cfg['ThemeDefault'] = 'blueberry';



Con ella ya agregada y guardada, solo actualizamos localhost y listo... tema oscuro! 

NOTA: El nombre que agregamos dentro de las comillas simples, son el nombre que tiene la carpeta.

miércoles, 11 de noviembre de 2026

HTML5 - Reproductor de vídeo

 Reproductor de música para tu sitio web


Acá el código para copiar y pegar...

HTML5

<div class="player">
    <h1>►► ♫ Música ♪ ◄◄</h1>

    <div class="cover">
        <img id="portada"
         src="caratulas/portada1.jpg"
         alt="Carátula del álbum">
    </div>

    <h2 id="titulo">Selecciona una canción</h2>
    <p id="estado">Listo para reproducir</p>

    <audio id="audio"></audio>

    <input type="range" id="progreso"
           value="0" min="0" max="100">

    <div class="tiempos">
        <span id="actual">0:00</span>
        <span id="duracion">0:00</span>
    </div>

    <div class="controles">
        <button id="aleatorio" title="Aleatorio"><img src="
https://images.icon-icons.com/8936/PNG/96/467909_shuffle-icon.png"
alt="" style="height: 20px; vertical-align: middle;"></button>
        <button id="anterior">⏮</button>
        <button id="play">▶</button>
        <button id="siguiente">⏭</button>
    </div>

    <div class="volumen">
        🔊
        <input type="range" id="volumen"
               min="0" max="1" step="0.01" value="0.7">
    </div>

    <h3>Lista de canciones</h3>
    <ul id="lista"></ul>
</div>
   
    <script src="javascript.js"></script>

CSS

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body {
    width: 100%;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #141e30, #243b55);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.player {
    background: url(img/ipodfondo.jpg) no-repeat center /cover;
    width: 100%;
    max-width: 380px;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 35px #0005;
    border: 1px solid rgb(83, 83, 83);
}
h1 {
    font-size: 18px;
    font-weight: bolder;
    margin-bottom: 10px;
    color: rgb(145, 255, 0);
    -webkit-text-stroke-width: .4px;
    -webkit-text-stroke-color: rgb(18, 81, 199);
}
#lista {
    background: rgb(233, 233, 233);
    list-style: none;
    text-align: left;
    height: 260px;
    border-radius: 6px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    scrollbar-color: #727272 #c7c7c7;
}

#lista li {
    height: 52px;
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}
.cover {
    width: 100%;
    height: 250px;
    background: #243b55;
    border-radius: 15px;
    overflow: hidden;
    margin: 5px 0px;
    box-shadow: 0px 10px 17px 0px rgba(0,0,0,0.75);
    -webkit-box-shadow: 0px 10px 17px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 10px 17px 0px rgba(0,0,0,0.75);
}
.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
h2 {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 19px;
    font-weight: bolder;
    color: rgb(145, 255, 0);
    -webkit-text-stroke-width: .1px;
    -webkit-text-stroke-color: black;
}
#estado {
    color: #afdb11;
    font-size: 13px;
    margin-bottom: 20px;
}
#progreso {
    width: 100%;
    cursor: pointer;
}
.tiempos {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 5px;
}
span{
    color: cornsilk;
}
.controles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

button {
    border: none;
    background: cornsilk;
    color: rgb(97, 92, 70);
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: .2s all linear;
}
button:hover {
    background: rgb(209, 203, 179);
    color: rgb(243, 231, 183);
}
#play {
    background: rgb(233, 226, 199);
    color: rgb(97, 92, 70);
    width: 55px;
    height: 55px;
    font-size: 23px;
}
#aleatorio {
    background: cornsilk;
}

#aleatorio.activo {
    background: cornflowerblue;
}
.volumen {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
#volumen {
    width: 120px;
}
h3 {
    color: cornsilk;
    text-align: left;
    margin-bottom: 10px;
}
#lista {
    list-style: none;
    text-align: left;
    max-height: 180px;
    overflow-y: auto;
}
#lista li {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    background: cornsilk;
}
#lista li:hover {
    background: rgb(223, 216, 189);
}
#lista li.activa {
    color: #1c7bbb;
    font-weight: bold;
}

JS


const canciones = [
    {
        titulo: "Korn - Twister Transistor",
        archivo: "https://cs1.mp3.pm/listen/239685/aGdCU
TVSb2s5eGlDR20vVlpLYWhLclJrTTY4dURvZnB2L1E2ODVSWmlka1VQe
FpEOWlnRnRQNVpRQ1RLUDB1bHdQeWVqSVE4NkNGcDhzMXdtdU5YSE1LT
3ZLSE1MbVR6bGlEZmpNSXVKRlA1NENNT0RxWkFiYzBVdGpNRURocE4/K
orn_-_Twisted_Transistor_(mp3.pm).mp3",
        portada: "https://encrypted-tbn0.gstatic.com/image
s?q=tbn:ANd9GcQXsUGDmKOVhhy1XU_qH5Mzxgxe2H2Q7jD74RgQ0-p7eg&s=10"
    },
    {
        titulo: "Korn - Somebody someone",
        archivo: "https://cs1.mp3.pm/listen/239693/aGdCUT
VSb2s5eGlDR20vVlpLYWhLclJrTTY4dURvZnB2L1E2ODVSWmlkblg5Vj
NteG9FTlhxWXVUS05Pb0tGNDEwU0NDdTVsbmxKMFpNUjJLeGVHZHpIND
NCdW0xSzlHbFpHeW52WjJubFdCcEJQbE91VnlmOVZFYmsxM2l4bFQ/Ko
rn_-_Somebody_Someone_(mp3.pm).mp3",
        portada: "https://encrypted-tbn0.gstatic.com/ima
ges?q=tbn:ANd9GcR_qT3y6ztA47yIVSy-TiRRoYO14nLSrB97dW-rrTs0VA&s=10"
    },
    {
        titulo: "Korn - Got the life",
        archivo: "https://cs1.mp3.pm/listen/239697/aGdCU
TVSb2s5eGlDR20vVlpLYWhLclJrTTY4dURvZnB2L1E2ODVSWmlkbkNiNW
9IVE55Q1NjSGlCU1pRNXhwcjBtZXNIejU3U25KTXlGYVRXWlBOTU5IdHd
KY29QMWllY0pQM3JaM2hHbTlLaDhqR2p0bFdWL0d2MWZZQ2NzTHQ/Korn
_-_Got_The_Life_(mp3.pm).mp3",
        portada: "https://encrypted-tbn0.gstatic.com/imag
es?q=tbn:ANd9GcSUV9hep0vqQvLoE566E-fDod8GaMX4iFyyDwmo3fiCUQ&s=10"
    },
    {
        titulo: "Korn - Adidas",
        archivo: "https://cs1.mp3.pm/listen/116030549/aGd
CUTVSb2s5eGlDR20vVlpLYWhLclJrTTY4dURvZnB2L1E2ODVSWmlkbVly
cVBHZmtXMmZSYzdmczEwWjFWbjlReFA1ck9FYkR3S2twdDNVa3lpSWl0W
EhTeGlzUVhSbW91Umxpelp1ZDZYK21UQUREcEpPeVZYdFFRS3hsaVA/Ko
rn_-_A.D.I.D.A.S.XD_(mp3.pm).mp3",
        portada: "https://encrypted-tbn0.gstatic.com/imag
es?q=tbn:ANd9GcSHG7Qm9aKe0vIc6sLLy9ggpy1JfFE1VWR1SgBoFN6F5A&s=10"
    },
    {
        titulo: "Korn - World Up",
        archivo: "https://cs1.mp3.pm/listen/1525870/aGdCUT
VSb2s5eGlDR20vVlpLYWhLclJrTTY4dURvZnB2L1E2ODVSWmlkbGZFQUVO
UTJJeUVlRExhRVZEcWVvWExnKzM2QTZXUEVvckdhZWRtTkkyYmY1a2VUcX
BSVjg2Qktma28zb05TSllmVktCT0t2bVd5NWVpMWJlM1Q3V1E/Korn_-_W
ord_Up_Cameo_(mp3.pm).mp3",
        portada: "https://encrypted-tbn0.gstatic.com/image
s?q=tbn:ANd9GcSlE7eKRXx-63fLgPbYUst-lPP1C_KBdQQ9Jb72xeu5lSSMGXxntyv7Dpgl&s=10"
    },
    {
        titulo: "Korn - Here to stay",
        archivo: "https://cs1.mp3.pm/listen/1893610/aGdCU
TVSb2s5eGlDR20vVlpLYWhLclJrTTY4dURvZnB2L1E2ODVSWmlkbnZTUj
BLeHNlb3lqTXFYWEJmd3V2S1ZkSHdIdFJtM0pWYyttNEVKaWNkTFNZZmN
MT0o4Tng0YTV5Q00yYXVZVFpiaTB1eXJ3c0pPNHEwQUxvWDBCcFM/Korn
_-_Here_To_Stay_Album_Version_(mp3.pm).mp3",
        portada: "https://encrypted-tbn0.gstatic.com/imag
es?q=tbn:ANd9GcRFSQ7x5KCI9JSwtPIUPBW8vROcqfvcKrKczA_M-ddokg&s=10"
    },
    {
        titulo: "Korn - Make me bad",
        archivo: "https://cs1.mp3.pm/listen/1893648/aGdCUT
VSb2s5eGlDR20vVlpLYWhLclJrTTY4dURvZnB2L1E2ODVSWmlkbGZaMUNy
YkNSNHJ3d2VXMEpkRmdpMzcvZFRldlc4ZzJTaURHdTExQ3R1Zy95Z096cEF
jRTIycExkMzNmMDZVWW5vK3JTSmczcEJRd1gvV0xzTG9LRHI/Korn_-_Ma
ke_Me_Bad_Album_Version_(mp3.pm).mp3",
        portada: "https://encrypted-tbn0.gstatic.com/images
?q=tbn:ANd9GcQvu4DMfCC1Ik6sHMiHYirR23Onl0AkO_tBcqCSOElhtg&s=10"
    },
    {
        titulo: "Korn - Did my time",
        archivo: "https://cs1.mp3.pm/listen/2736380/aGdCUT
VSb2s5eGlDR20vVlpLYWhLclJrTTY4dURvZnB2L1E2ODVSWmlkbWxsMlRR
amZFTW01WC9kTTVWK3VvNklpTDk4WkcyQzVHTUVHSElNYnVhYVl4OVVEd3
pacWRuUWpjcE92bUlNbHRTdmsraFRDb1hweEFhVzVtMFRUa0E/Korn_-_Did_My_Time_(mp3.pm).mp3",
        portada: "https://encrypted-tbn0.gstatic.com/imag
es?q=tbn:ANd9GcTFsqgNns8XCYHMBZtw0S5UJeHeWsTYzJinNs03IXaCfQ&s"
    }
];

const audio = document.getElementById("audio");
const titulo = document.getElementById("titulo");
const play = document.getElementById("play");
const lista = document.getElementById("lista");
const progreso = document.getElementById("progreso");

let indice = 0;
let aleatorio = false;

// Cargar canción sin reproducir
function cargarCancion(i) {
    indice = i;

    audio.src = canciones[indice].archivo;

    titulo.textContent = canciones[indice].titulo;

    // Cambiar automáticamente la carátula
    document.getElementById("portada").src =
        canciones[indice].portada;

    audio.load();

    actualizarLista();

    play.textContent = "▶";

    document.getElementById("estado").textContent =
        "Listo para reproducir";
}


// Reproducir o pausar
play.addEventListener("click", () => {
    if (audio.paused) {
        audio.play();
        play.textContent = "⏸";
    } else {
        audio.pause();
        play.textContent = "▶";
    }
});

// Siguiente canción
function siguienteCancion() {
    if (aleatorio) {
        if (canciones.length > 1) {
            let nuevoIndice;

            do {
                nuevoIndice = Math.floor(
                    Math.random() * canciones.length
                );
            } while (nuevoIndice === indice);

            indice = nuevoIndice;
        }
    } else {
        indice = (indice + 1) % canciones.length;
    }

    cargarCancion(indice);
    audio.play();
    play.textContent = "⏸";
}

// Canción anterior
function anteriorCancion() {
    indice = (indice - 1 + canciones.length) %
             canciones.length;

    cargarCancion(indice);
    audio.play();
    play.textContent = "⏸";
}

document.getElementById("siguiente")
    .addEventListener("click", siguienteCancion);

document.getElementById("anterior")
    .addEventListener("click", anteriorCancion);

// Activar o desactivar aleatorio
document.getElementById("aleatorio")
    .addEventListener("click", function() {
        aleatorio = !aleatorio;
        this.classList.toggle("activo", aleatorio);
    });

// Crear lista de canciones
function actualizarLista() {

    lista.innerHTML = "";

    // Mostrar solamente 5 canciones
    const cantidadVisible = 5;

    // Calcular inicio de la lista
    let inicio = Math.max(
        0,
        indice - Math.floor(cantidadVisible / 2)
    );

    // Evitar espacios al llegar al final
    inicio = Math.min(
        inicio,
        Math.max(0, canciones.length - cantidadVisible)
    );

    const fin = Math.min(
        inicio + cantidadVisible,
        canciones.length
    );

    // Crear únicamente las 5 canciones visibles
    for (let i = inicio; i < fin; i++) {

        const li = document.createElement("li");

        li.textContent =
            (i === indice ? "▶ " : "♫ ") +
            canciones[i].titulo;

        li.classList.toggle(
            "activa",
            i === indice
        );

        li.addEventListener("click", () => {

            cargarCancion(i);

            audio.play();

            play.textContent = "⏸";

        });

        lista.appendChild(li);
    }
}// Actualizar progreso
audio.addEventListener("timeupdate", () => {
    if (audio.duration) {
        progreso.value =
            (audio.currentTime / audio.duration) * 100;

        document.getElementById("actual").textContent =
            formatoTiempo(audio.currentTime);
    }
});

// Mostrar duración
audio.addEventListener("loadedmetadata", () => {
    document.getElementById("duracion").textContent =
        formatoTiempo(audio.duration);
});

// Mover progreso
progreso.addEventListener("input", () => {
    if (audio.duration) {
        audio.currentTime =
            (progreso.value / 100) * audio.duration;
    }
});

// Control de volumen
document.getElementById("volumen")
    .addEventListener("input", function() {
        audio.volume = this.value;
    });

function formatoTiempo(segundos) {
    if (!Number.isFinite(segundos)) return "0:00";

    const minutos = Math.floor(segundos / 60);
    const segundosRestantes =
        Math.floor(segundos % 60);

    return minutos + ":" +
        String(segundosRestantes).padStart(2, "0");
}

// Reproducir siguiente al terminar
audio.addEventListener("ended", siguienteCancion);

// Actualizar estado
audio.addEventListener("play", () => {
    document.getElementById("estado").textContent =
        "Reproduciendo";
});

audio.addEventListener("pause", () => {
    document.getElementById("estado").textContent =
        "En pausa";
});

// Inicializar sin reproducción automática
audio.volume = 0.7;
cargarCancion(0);






jueves, 5 de noviembre de 2026

CSS - Girar imagen 3d izquierda a derecha

 Gira la imágen 3d de izquierda a derecha


Código listo para usar, solo copiar y pegar...


CÓDIGO HTML
          <h4>Michella <div class="corazon">♥</div> Bella</h4>

CÓDIGO CSS
.corazon {
    color: #ff1744;
    font-size: 60px;
    display: inline-block;
    animation: giro3d 1s linear infinite;
    transform-style: preserve-3d;
    font-size: 20px;
}
@keyframes giro3d {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

lunes, 2 de noviembre de 2026

CSS - Sangre goteando para Halloween

 Agregar sangre goteando en tu sitio web en la parte superior.




He acá el código para copiar y pegar.



HTML
<div id="blood"></div>


CSS
#blood{
    width: 100%;
    height: 30px;
    background: url(https://rgthree.com/spooky_scary_movie_night/media
        /graphic.bar.ani.blood_drip.gif) repeat-x;
    position: fixed; /* Mantiene la posición fija */
    top: 0;          /* Distancia desde la parte superior */
    left: 0;         /* Distancia desde la izquierda */
    z-index: 999;    /* Asegura que esté por encima de otros elementos */
}




Documental de Hackers