Skip to content

Aleksey-Mazur/Dicee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dicee

Roll the dice!

This is a small project to resolve disputes.

Created using HTML, CSS and JavaScript.

Logic:

  1. Declared two variables that generate random numbers from 1 to 6.
  2. Created function that changes properties of src attribute in html substituting our variables into the names of image files.
  3. Also function include checking the value of generated numbers. Based on this function changes value of H1.innerHTML.
  4. Created a function that reloads a page after a click on button in html. dicee-screen