Skip to content

Commit

Permalink
Added to the dad jokes list
Browse files Browse the repository at this point in the history
Added to the dad jokes list
  • Loading branch information
Abbby1007 authored Jul 12, 2024
1 parent 3dea2a4 commit 85b97b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dadjokes.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1> Dad Jokes</h1>
<div class="picture"><img src="https://i.etsystatic.com/17959787/r/il/5fc46d/4811942197/il_fullxfull.4811942197_1dz7.jpg" alt="Sock Puppet"> </div>
<button onclick="dadjokes()" id="generate" > Generate </button>
<div> <a href="index.html"> <button> Back to Select Screen</button></a> </div>
<a href = ""> <button> Source of the Dad Jokes</button></a>
<a href = "https://www.today.com/life/dad-jokes-rcna27325"> <button> Source of the Dad Jokes</button></a>
<a href = "https://www.etsy.com/listing/1448744497/blue-and-wild-sock-puppet"> <button> Source of the Sock Puppet</button></a>

</div>
Expand Down
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function randomColorandAnimation(){
}

function dadjokes(){
const list = ["HEllo", "bye"]
const list = ["Why shouldn't you tell secrets in a cornfield? There are too many ears all around.", "What kind of underpants do lawyers wear? Briefs.", "What do you call it when a cow grows facial hair? A moo-stache.","Did you hear about the cleaners who went to space? They ended up scrubbing the mission.","Did you hear about the two rowboats that got into an argument? It was an oar-deal.","What did the beach say when the tide came in? Long time no sea.","Why do turkeys play percussion? They have drumsticks.","There are only two things I don't eat for breakfast: Lunch and dinner.","I adopted a dog from a blacksmith. As soon as I brought him home, he made a bolt for the door.","How much does it cost to swim with sharks? An arm and a leg.","What did one toilet say to the other? You appear a bit flushed.","Why are most people tired on April 1? They've just finished a 31-day March.","How do you make a tissue dance? Put a little boogie in it.","Why did the rabbit go to the salon? It was having a bad hare day.","Where do birds stay when they travel? Someplace cheep.",];
const computerChoice = list[Math.floor(Math.random() * list.length)];

const display = document.getElementById('result');
Expand Down

0 comments on commit 85b97b6

Please sign in to comment.