Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
* Switch from inline JS to a module * Pull URL from data attribute * Switch from setInterval to a timeout that gets set once the previous request is complete * Reduce scope of jQuery selectors to just the element we’re looking at * Create a spec Not yet handling errors, updating aria values or handling completion
* When done matches total, stop making requests, show a success state and shut down the module * Use jasmine clock to avoid having to wait 1 second for each timeout test