RAILWAYS ROUTE DESIGNER: TRICKLES ELAPSED TIME: 10:25
Chapter10: Application Development
Section: Chapter Questions
Problem 15VE
Related questions
Question
COMPLETE THE FOLLOWING CODE SO THAT WHEN startBtn is clicked the timer starts going, and place the route designer, time containing div beside the matrix with a borderline.
HTML:
<div id="game-page" class="w-2/3 mx-auto rounded-xl mt-10 bg-base-300 ">
<h2>Railways Game</h2>
<div>
<h3id="name">ROUTE DESIGNER: </h3>
<h3id="times">TIME: </h3>
</div>
<buttonid = "backBtn"class="w-full mx-auto btn btn-primary m-5">Back to Menu</button>
</div>
JS:
startBtn.addEventListener('click', startGame)
function startGame(){
menuDiv.style.display='none'
gameDiv.style.display='block'
rulesDiv.style.display='none'
ldrDiv.style.display='none'
document.querySelector('#name').innerHTML="ROUTE DESIGNER: "+nameInput.value
//document.querySelector('#times').innerHTML = "TIME ELAPSED: "
}
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Recommended textbooks for you
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole