Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
Learning JavaScript
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MohammadAli Keshavarz
Learning JavaScript
Commits
3753f7ec
Commit
3753f7ec
authored
Oct 25, 2019
by
MohammadAli Keshavarz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
using getElementById to initialize scores and current scores
parent
acdc1d54
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
app.js
section3/app.js
+4
-0
No files found.
section3/app.js
View file @
3753f7ec
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment