Created
March 8, 2019 05:19
-
-
Save Richardtex22/aeaba57242aaf67b695ac90794ab9367 to your computer and use it in GitHub Desktop.
Ejercicio 4 // source https://jsbin.com/wihowus
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<script src="https://code.jquery.com/jquery-3.1.0.js"></script> | |
<title>Ejercicio 4</title> | |
<script> | |
$(function() { | |
$("#clicker").click(function(){ | |
$("#pic").attr('src',"https://camo.githubusercontent.com/cd497a9f2fde9bbaabd6af9c35135c55db70f7c5/687474703a2f2f72733238342e70627372632e636f6d2f616c62756d732f6c6c33362f426967737465766538372f476966732f4c697a5f4c656d6f6e5f486967685f466976652e6769667e63323030"); | |
}); | |
}); | |
</script> | |
</head> | |
<body> | |
<img id="pic" src="http://hackasaurus.toolness.org/images/goggles/supergirl.png"> | |
<p> | |
<button id="clicker">Click me to change the picture</button> | |
</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment