Skip to content

Instantly share code, notes, and snippets.

Created February 9, 2016 22:00
Show Gist options
  • Save anonymous/23d5a823a0c4ca063411 to your computer and use it in GitHub Desktop.
Save anonymous/23d5a823a0c4ca063411 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/revixi
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-1.9.1.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
body{
margin-bottom: 100px;
}
p{
font-size: 2em;
}
</style>
</head>
<body>
<h1> HVA </h1>
<hr>
<div id="joke-1">
<p>Why did the chicken go to the 
séance?</p>
</div>
<hr>
<div id="joke-2">
<p> What do you call a parade of rabbits hopping backwards? </p>
</div>
<hr>
<img id="joke-3" src="http://cdn.meme.am/instances2/500x/4226262.jpg">
<hr>
<div id="joke-4">
<p> Insert text. </p>
</div>
<div id="answer-4">
<p> Insert text. </p>
</div>
<script id="jsbin-javascript">
$("#joke-1").click( function(){
$("#joke-1").text("To get to the other side haahahahaha...no..ok");
});
$("#joke-2").click( function(){
$("#joke-2").text("a receding hare-line");
});
// .text()
// .append()
// .attr()
// .css()
$("#joke-3").click( function(){
$("#joke-3").attr("src", );
});
</script>
<script id="jsbin-source-css" type="text/css">body{
margin-bottom: 100px;
}
p{
font-size: 2em;
}
</script>
<script id="jsbin-source-javascript" type="text/javascript">$("#joke-1").click( function(){
$("#joke-1").text("To get to the other side haahahahaha...no..ok");
});
$("#joke-2").click( function(){
$("#joke-2").text("a receding hare-line");
});
// .text()
// .append()
// .attr()
// .css()
$("#joke-3").click( function(){
$("#joke-3").attr("src", );
});
</script></body>
</html>
body{
margin-bottom: 100px;
}
p{
font-size: 2em;
}
$("#joke-1").click( function(){
$("#joke-1").text("To get to the other side haahahahaha...no..ok");
});
$("#joke-2").click( function(){
$("#joke-2").text("a receding hare-line");
});
// .text()
// .append()
// .attr()
// .css()
$("#joke-3").click( function(){
$("#joke-3").attr("src", );
});
@joseph45666
Copy link

saved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment