Created
March 23, 2015 19:44
-
-
Save ebrelsford/babf36b14e8f956f5c71 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/wesiyi
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
#bob { | |
background-color: blue; | |
height: 50px; | |
width: 50px; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="bob"></div> | |
<script id="jsbin-javascript"> | |
$(document).ready(function () { | |
$('#bob').click(function () { | |
$(this).css('background-color', 'red'); | |
}); | |
}); | |
</script> | |
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html> | |
<html> | |
<head> | |
<script src="//code.jquery.com/jquery-2.1.1.min.js"><\/script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div id="bob"></div> | |
</body> | |
</html></script> | |
<script id="jsbin-source-css" type="text/css">#bob { | |
background-color: blue; | |
height: 50px; | |
width: 50px; | |
}</script> | |
<script id="jsbin-source-javascript" type="text/javascript">$(document).ready(function () { | |
$('#bob').click(function () { | |
$(this).css('background-color', 'red'); | |
}); | |
});</script></body> | |
</html> |
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
#bob { | |
background-color: blue; | |
height: 50px; | |
width: 50px; | |
} |
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
$(document).ready(function () { | |
$('#bob').click(function () { | |
$(this).css('background-color', 'red'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment