Skip to content

Instantly share code, notes, and snippets.

View Naibaf93's full-sized avatar

Fabian Huertas Naibaf93

View GitHub Profile
@codigoconjuan
codigoconjuan / app.js
Created October 6, 2022 22:32
Validar email
const regex = /^\w+([.-_+]?\w+)*@\w+([.-]?\w+)*(\.\w{2,10})+$/
@codigoconjuan
codigoconjuan / index.html
Last active May 15, 2024 18:25
Gist Menú Café
<ul>
<li>
<p>Café Latte <span>Café Espresso con leche caliente evaporada</span> </p>
<p class="precio">$25</p>
</li>
<li>
<p>Café Mocha <span>Espresso con crema batida</span> </p>
<p class="precio">$30</p>
</li>
<li>
@codigoconjuan
codigoconjuan / imagenes.js
Created August 4, 2021 21:43
Gist Soporte Imagenes WebP y Avif como Background
(function (document) {
var checkCount = 0,
formatFound = false;
function setHTMLClass(height, className) {
checkCount++;
if (height == 2) {
formatFound = true;
document.documentElement.className += " " + className;
} else {