Skip to content

Instantly share code, notes, and snippets.

@d8ta
Created November 21, 2013 19:38
Show Gist options
  • Save d8ta/7588160 to your computer and use it in GitHub Desktop.
Save d8ta/7588160 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JQuerie Aufgabe</title>
<link rel="stylesheet" href="style.css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#headone").click(function(){
$("#one").toggle();
});
$("#headtwo").click(function(){
$("#two").toggle();
});
$("#headthree").click(function(){
$("#three").toggle();
});
$("#headfour").click(function(){
$("#four").toggle();
});
$("#headfive").click(function(){
$("#five").toggle();
});
});
</script>
</head>
<body>
<h1>My Favorite Movies of all time....</h1>
<div class="main">
<h2 id="headone">Star Wars</h2>
<p id="one" style="display: none">i talk about the original movies, and hopefully about the new stuff from Disney (OMG dont screw up please!)</p>
<h2 id="headtwo">Goodfellas</h2>
<p id="two" style="display: none">nobody plays like DeNiro</p>
<h2 id="headthree">The Lord of the Rings</h2>
<p id="three" style="display: none">For the epicness</p>
<h2 id="headfour">Terminator 2 Judgment Day</h2>
<p id="four" style="display: none">Nearly 20 Years old and still good effects. I´ll be back!</p>
<h2 id="headfive">Breaking Bad</h2>
<p id="five" style="display: none">Actually not a Movie but a very good series.</p>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment