Skip to content

Conversation

@castrotrad-afk
Copy link

-->

Why:

Closes:

<title>Random Joke Generator</title> <style> body { font-family: Arial, sans-serif; text-align: center; padding: 50px; } .joke { font-size: 1.5em; margin: 20px 0; } button { padding: 10px 20px; font-size: 1em; cursor: pointer; } </style>

Random Joke Generator

Click the button to get a joke!
Get a Joke <script> async function getJoke() { try { const response = await fetch('https://v2.jokeapi.dev/joke/Any'); const data = await response.json(); const jokeContainer = document.querySelector('.joke'); if (data.type === 'single') { jokeContainer.textContent = data.joke; } else { jokeContainer.textContent = `${data.setup} - ${data.delivery}`; } } catch (error) { console.error('Error fetching joke:', error); document.querySelector('.joke').textContent = 'Failed to fetch a joke. Please try again!'; } } </script>

What's being changed (if available, include any code snippets, screenshots, or gifs):

Check off the following:

  • A subject matter expert (SME) has reviewed the technical accuracy of the content in this PR. In most cases, the author can be the SME. Open source contributions may require an SME review from GitHub staff.
  • The changes in this PR meet the docs fundamentals that are required for all content.
  • All CI checks are passing and the changes look good in the review environment.

@welcome
Copy link

welcome bot commented Dec 17, 2025

Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

@github-actions github-actions bot added the triage Do not begin working on this issue until triaged by the team label Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage Do not begin working on this issue until triaged by the team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants