Roll the dice!
This is a small project to resolve disputes.
Created using HTML, CSS and JavaScript.
Logic:
- Declared two variables that generate random numbers from 1 to 6.
- Created function that changes properties of src attribute in html substituting our variables into the names of image files.
- Also function include checking the value of generated numbers. Based on this function changes value of H1.innerHTML.
- Created a function that reloads a page after a click on button in html.