GithubHelp home page GithubHelp logo

touchtype's Issues

add an afterCancel event

There should be an event fired after cancel has been called. This will allow users to perform different actions when cancel is called.

Upgrade to Infusion 1.4

Upgrade to Infusion 1.4 when it is released. Start working from a pre-release version till then if needed.

Provide a means to cancel the test

You should be able to cancel the test. This should be able to be triggered by an element (i.e. onscreen button) and focus being lost from the textfield.

This should do the following:

  1. clear the timer
  2. clear the textfield
  3. rebind the event to start the test
  4. make sure the textfield is enabled

Upgrade to IoC

Rewrite the component using IoC.

This should help reduce code, improve flexibility, and etc.

Allow test to be of varying time

The test should be configurable to a user defined length. There should be options to specify the length of the test. This also means that the test should be able to handle calculating the typing speed in WPM when the test is not a minute in length (could be more or less than a minute).

Create a demo page

Move existing html to a demo directory and update it to make it a proper demo.

Initial implementation of touchType

Create the initial implementation of touchType. This is a blanket issue that should be replaced by specific ones once the initial implementation is in place.

Provide functionality to sanitize text

A user should be able to provide a path to any text, the component itself should take it in and sanitize it as needed. This should probably be a public function.

Don't cancel on blur

Currently the test will automatically cancel on blur. The problem with this is that if someone wanted to setup a "Done" button using the that.finish, the test would cancel before the button could trigger done. This will be particularly useful if the test is sufficiently long that all typing is done before the time expires.

The finish function shouldn't die if there is no sample text.

Need to set the sample text to some default value to handle the case where finish is called before it is set. Currently it causes an error when it tries to call the calculateWPMStats which in turn calls the toArray function. If sampleText hadn't been set yet, the toArray function throws an error when trying to call the split function

Look at afterStarted and afterFinished events

Currently the afterStart and afterFinished events call that.start and that.finish respectively. However, based on the names one would expect these functions to call the events. Look at how to make these thing more semantically correct.

Add an afterTextRendered event

Should have an afterTextRendered event so that we know when the text has been displayed. Currently we only know when the text has been fetched. Since registering multiple listeners to the same event will not guarantee an order of which are triggered, the text may not be rendered before other listeners fire.

Remove hard coding of url to text

Break out the url's to the text into the defaults structure, this will allow me to fix the issue where the unit tests can't be run because of the differing relative paths.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.