typing-tutor's People
typing-tutor's Issues
add large data base of sentences for user to type
-
add new data of a large number of sentences
-
when user finishes typing a sentence correctly, render a new sentence on the page.
User can see the text
๐ฐ Motivation
The user will need to see the whole phrase they are about to type.
โ๏ธ Implementation
- Create an
index.html
for the markup. - Put background and text colors in
styles.css
. - Select a font from Google Fonts for the text.
- Create an
Array
ofObjects
representing the characters in the phrase. - Define a function that renders a single character.
- Define a function that renders all characters and appends them to the page.
- Adjust CSS styles to look visually appealing.
user can start game with a button
-
add a start button
-
style button
-
add event listener to start button
-
when start button is clicked, render words to page
User can get feedback
๐ฐ Motivation
The user needs to be alerted to successful or failed attempts at typing a character.
โ๏ธ Implementation
- Add
failures
property to eachcharacter
in the application state set to0
. - Add an event listener to the
window
to listen for'keydown'
events that re-renders the phrase. - Compare the pressed key with the current character. Record failures to match the current character.
- Enhance function for rendering a single character to conditionally add a special
failed
class to the element. - When a matching key is pressed, update the
currentCharacter
property of the application state.
restyle page
-
Redo theme colors
-
Redo font sizing
-
Redo font colors
-
Add animations if possible
Refactor names of variables and functions
- change function names to be more clear / change variable names to be more clear
User can see space failures
- enhance functionality of
createSpan
function to display failed spaces.
User can see next letter
๐ฐ Motivation
The user needs to know how far along they are in the phrase.
โ๏ธ Implementation
- Create an
Object
to represent the application state, and make the characters a property. - Add a property to the application state to track the index of the
currentCharacter
. - Define a CSS class to highlight the
current-character
. - Enhance function that renders a character to conditionally add a special
current-character
class.
User can see score
๐ฐ Motivation
The user will need to know that the game is over and how they performed.
โ๏ธ Implementation
give user 30 seconds to finish game
-
when start button is pressed, add a 30 second timer countdown
-
when timer reaches 0, end game and calculate score
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.