Merge branch 'main' into ko_translation

This commit is contained in:
minwook
2020-11-30 19:09:24 +09:00
committed by GitHub
56 changed files with 757 additions and 165 deletions

View File

@@ -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

View File

@@ -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