Commit 3753f7ec authored by MohammadAli Keshavarz's avatar MohammadAli Keshavarz

using getElementById to initialize scores and current scores

parent acdc1d54
......@@ -21,6 +21,10 @@ activePlayer = 0;
// console.log(x);
document.querySelector(".dice").style.display = "none";
document.getElementById('current-0').textContent = "0" ;
document.getElementById('current-1').textContent = "0" ;
document.getElementById('score-0').textContent = "0" ;
document.getElementById('score-1').textContent = "0" ;
document.querySelector(".btn-roll").addEventListener("click", function() {
//create random number
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment