Skip to content

Instantly share code, notes, and snippets.

@avermeulen
Created September 19, 2014 07:00
Show Gist options
  • Save avermeulen/c0b1716522861db4bee3 to your computer and use it in GitHub Desktop.
Save avermeulen/c0b1716522861db4bee3 to your computer and use it in GitHub Desktop.
<!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">
h1 {
color : orange;
}
</style>
</head>
<body>
<h1>Hello</h1>
<input type="button" id="ola" value="ola">
<script id="jsbin-javascript">
$(function(){
$("#ola").click(function(){
alert("ola!");
console.log("ola");
});
});
</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>
<h1>Hello</h1>
<input type="button" id="ola" value="ola">
</body>
</html></script>
<script id="jsbin-source-css" type="text/css">h1 {
color : orange;
}</script>
<script id="jsbin-source-javascript" type="text/javascript">$(function(){
$("#ola").click(function(){
alert("ola!");
console.log("ola");
});
});</script></body>
</html>
h1 {
color : orange;
}
$(function(){
$("#ola").click(function(){
alert("ola!");
console.log("ola");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment