mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-08-28 09:01:35 +02:00
Merge branch 'main' into ko_translation
This commit is contained in:
@@ -23,7 +23,7 @@ This lesson assumes you're familiar with the following concepts:
|
||||
|
||||
## Lesson
|
||||
|
||||
[Creating a typing game by using event driven programming](./project/README.md)
|
||||
[Creating a typing game by using event driven programming](./typing-game/README.md)
|
||||
|
||||
## Credits
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## Pre-Lecture Quiz
|
||||
|
||||
[Pre-lecture quiz](.github/pre-lecture-quiz.md)
|
||||
[Pre-lecture quiz](../.github/pre-lecture-quiz.md)
|
||||
|
||||
## Event driven programming
|
||||
|
||||
@@ -90,6 +90,7 @@ Create a new file named **index.html**. Add the following HTML:
|
||||
<div>
|
||||
<input type="text" id="typed-value" /> <!-- The textbox for typing -->
|
||||
<button type="button" id="start">Start</button> <!-- To start the game -->
|
||||
</div>
|
||||
<script src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -172,10 +173,10 @@ const quotes = [
|
||||
'Education never ends, Watson. It is a series of lessons, with the greatest for the last.',
|
||||
];
|
||||
// store the list of words and the index of the word the player is currently typing
|
||||
const words = [];
|
||||
let words = [];
|
||||
let wordIndex = 0;
|
||||
// the starting time
|
||||
let startTime = DateTime.getTime();
|
||||
let startTime = Date.now();
|
||||
// page elements
|
||||
const quoteElement = document.getElementById('quote');
|
||||
const messageElement = document.getElementById('message');
|
||||
@@ -325,7 +326,7 @@ Add more functionality
|
||||
|
||||
## Post-Lecture Quiz
|
||||
|
||||
[Post-lecture quiz](.github/post-lecture-quiz.md)
|
||||
[Post-lecture quiz](../.github/post-lecture-quiz.md)
|
||||
|
||||
## Review & Self Study
|
||||
|
||||
|
Reference in New Issue
Block a user