Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added pause & reset function. Also added a little help text. #1

Merged
merged 15 commits into from
Apr 28, 2020

Conversation

JannesPeters
Copy link
Collaborator

@lennet hope this is the right way to do it. Also not sure how 'good' the code is, but it works for me without ever crashing 🤞

code.ts Outdated Show resolved Hide resolved
code.ts Outdated Show resolved Hide resolved
code.ts Outdated Show resolved Hide resolved
code.ts Outdated Show resolved Hide resolved
code.ts Outdated Show resolved Hide resolved
code.ts Outdated Show resolved Hide resolved
@lennet
Copy link
Owner

lennet commented Apr 25, 2020

Thanks for your contribution, I like the new feature!

I left you some comments. Overall it would be nice if you could:

  • Remove dead code (logs, unreachable code or code that is commented out)
  • Use boolean instead of integers (e.g. var paused = false instead of var paused = 0 )
  • Apply a code formatter to the files you changed (in VS Code you can right click and select Format Document)

Co-Authored-By: Leo Thomas <lennet@users.noreply.github.com>
JannesPeters and others added 2 commits April 26, 2020 08:57
Co-Authored-By: Leo Thomas <lennet@users.noreply.github.com>
Co-Authored-By: Leo Thomas <lennet@users.noreply.github.com>
code.ts Outdated Show resolved Hide resolved
code.ts Outdated
if (reset) {
secondsToGo = seconds;
newText = fillUpTimeStringWithTemplate(secondsToInterval(secondsToGo), template);
newText = "Timer: " + newText;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not all Timer start with "Timer: "

Bug

ui.html Outdated Show resolved Hide resolved
also removed an unnecessary delay(), and fixed the 'timer:' bug
Copy link
Owner

@lennet lennet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

giphy-5

@JannesPeters JannesPeters merged commit 3b52515 into lennet:master Apr 28, 2020
@JannesPeters JannesPeters deleted the pie-chart-visualization branch April 29, 2020 08:35
lennet pushed a commit that referenced this pull request May 6, 2020
I want to update my fork
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants