Skip to content

Instantly share code, notes, and snippets.

@ebrelsford
Created March 23, 2015 19:44
Show Gist options
  • Save ebrelsford/babf36b14e8f956f5c71 to your computer and use it in GitHub Desktop.
Save ebrelsford/babf36b14e8f956f5c71 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/wesiyi
<!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>
#bob {
background-color: blue;
height: 50px;
width: 50px;
}
$(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