Copy the repository to your local machine.
You can use VS Code to run and view this code.
You can use the following extension to look up the local server.
extension: Go Live
Vs Code
The above code is a simple dad joke generator web app that displays a random dad joke from an array of jokes every time the "Generate a Dad Joke" button is clicked.
To install and use the app, follow these steps:
- Create a new folder on your computer and save the above code in three separate files - an HTML file named "index.html", a CSS file named "style.css", and a JavaScript file named "app.js".
- Copy and paste the code above into the corresponding file.
- Open the "index.html" file in a web browser to launch the app.
- Click on the "Generate a Dad Joke" button to generate a random dad joke from the array displayed below the button.
Note that the above code assumes that the HTML file, CSS file, and JavaScript file are saved in the same folder and have the same file names specified in the code. If you save the files with different names or in different locations, you will need to update the file paths in the code accordingly.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
MIT License Copyright (c) 2023 keron patel
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.