Coin hover brightness effect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
'use strict'; | |
document.addEventListener('DOMContentLoaded', function(){ | |
//Here your JS Code! | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Enlace 6 | |
var enlacesSidebar = document.querySelector('#sidebar ul'); | |
var link = document.createElement('a'); | |
link.setAttribute('href', '#'); | |
var textlink = document.createTextNode('lista irwin'); | |
link.appendChild(textlink); | |
var lista = document.createElement('li'); | |
lista.appendChild(link); | |
enlacesSidebar.appendChild(lista); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('main article:first img').on('click', function() { | |
$(this).attr('src', 'img/imagen_3.jpg'); | |
}) | |
//Cambiar atributos | |
$('main article:first h1').text('texto'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$conn = new mysqli('localhost', 'root', '', 'uptask'); | |
echo "<pre>"; | |
var_dump($conn); | |
echo "</pre>"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<a href="#" id="facebook"><li><i class="fab fa-facebook-f"></i></li></a> | |
<a href="#" id="instagram"><li><i class="fab fa-instagram"></i></li></a> | |
<a href="#" id="twitter"><li><i class="fab fa-twitter"></i></li></a> | |
<a href="#" id="codepen"><li><i class="fab fa-codepen"></i></li></a> | |
<a href="#" id="behance"><li><i class="fab fa-behance"></i></li></a> | |
<a href="#" id="dribbble"><li><i class="fab fa-dribbble"></i></li></a> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eventListeners(); | |
function eventListeners() { | |
document.querySelector('#formulario').addEventListener('submit', validarRegistro); | |
} | |
function validarRegistro(e) { | |
e.preventDefault(); | |
var usuario = document.querySelector('#usuario').value, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$accion = $_POST['accion']; | |
$password = $_POST['password']; | |
$usuario = $_POST['usuario']; | |
if($accion === 'crear') { | |
//Codigo para crear los administradores | |
//hashear password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button id="button" onmouseover="sobreBoton();" onmouseout="afueraBoton()">Button</button> | |
<script> | |
function sobreBoton() { | |
document.getElementById("button").innerHTML = "Welcome"; | |
} | |
function afueraBoton() { | |
document.getElementById("button").innerHTML = "Thanks"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
//Js Code Here | |
// Se debe colocar para que entienda Elementos de ES6 |
OlderNewer