Created
October 10, 2016 14:31
-
-
Save joliz/a5007fd02662ae0469221ab26bf7eac5 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=a5007fd02662ae0469221ab26bf7eac5
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> | |
<title>jQuery Practice 1</title> | |
</head> | |
<body> | |
<h1>The jQuery Site</h1> | |
<div id="info"></div> | |
<div id="cool"> jQuery is cool I guess</div> | |
<img id="pic" src="www.fake.com"> | |
</body> | |
</html> |
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
$("h1").css("color", "green"); | |
$("#info").append("This site was made almost entirely using jQuery!"); | |
$("#cool").html("jQuery is AWESOME!"); | |
$("img").attr("src","https://cdn.meme.am/instances/57092433.jpg"); | |
$("h1").click(function() { alert("Joliz"); }); | |
$("#pic").click(function() { alert("24 karat magic"); }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment