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

Timer intervals revised #14

Merged
merged 6 commits into from
Feb 25, 2018
Merged

Timer intervals revised #14

merged 6 commits into from
Feb 25, 2018

Conversation

gazj
Copy link
Contributor

@gazj gazj commented Feb 24, 2018

  • Added function to replace text with "scifi" text
  • Added 'keepChars' array option to prevent replacing certain characters
  • Invervals are now responsible for clearing themselves
  • Expose interval continues until reaching end of content string
  • Scifi interval continues until display text matches original content
  • Config values renamed to 'scifiSpeed' and 'exposeDelay' for clarity
  • Support added for using a scifiSpeed higher than exposeDelay value

Gary Locke and others added 2 commits February 23, 2018 19:07
- Added function to replace text with "scifi" text
- Added 'keepChars' array option to prevent replacing certain characters
- Invervals are now responsible for clearing themselves
- Expose interval continues until reaching end of content string
- Scifi interval continues until display text matches original content
- Config values renamed to 'scifiSpeed' and 'exposeDelay' for clarity
- Support added for using a scifiSpeed higher than exposeDelay value
@gazj
Copy link
Contributor Author

gazj commented Feb 24, 2018

This request includes revised interval functions and should resolve the concern in #11 without undoing the fix for #4, which means if there are no concerns with these changes, we can merge this change and hopefully be able to close both of those open issues.

Copy link
Owner

@egoist egoist left a comment

Choose a reason for hiding this comment

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

LGTM, can you update the docs as well?

function toScifiText(chars, text, keepChars) {
let retChars = ''
for (let i = 0; i < text.length; i++) {
retChars += keepChars.includes(text[i]) ? text[i] : getRandomChar(chars)
Copy link
Owner

Choose a reason for hiding this comment

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

maybe use .indexOf for IE compatibility 😄

@gazj
Copy link
Contributor Author

gazj commented Feb 24, 2018

I've switched to using indexOf as requested, and also updated the documentation to reference the new set of options.

@egoist egoist merged commit daf2912 into egoist:master Feb 25, 2018
@gazj gazj deleted the revised_timers branch February 25, 2018 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants