-
Notifications
You must be signed in to change notification settings - Fork 22.6k
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
Convert Example to Live Sample and remove typewriter simulation demo #9111
Conversation
AnilSeervi
commented
Sep 20, 2021
•
edited
Loading
edited
- Fixes Issue with "setInterval()": (Typewriter simulation demo results 404) #9044
- Remove TypeWriter Example
- Convert alternating colors example to live sample
- update id link by reducing a space
Preview URLsFlawsNone! 🎉 External URLsURL: No new external URLs (this comment was updated 2021-09-21 12:08:10.966116) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR! But I think the right thing to do here (if we want to keep this example at all, which I'm not sure about) would be to make this into a live sample, as we did for #8667 .
Yes. I too thought about converting it into a live sample. But then the example would start right away when the page loads and it'd be over by the time some users get to it. I know that there are controls to trigger the actions. But, |
That's a good point. Yes, it would need some kind of "start/reset" buttons.
Looking at this page as a whole, I think it ought to have at least one live sample. At the moment it has none but has two examples that could be converted to live samples, "Alternating two colors", and "Typewriter simulation". I think the issue I have with the typewriter one is that it's quite long and has a lot of complexity in it that's not relevant to the So, I think the best thing for this page:
Also for "Alternating two colors" it might also be worth changing it to set a class attribute on the element, and having some separate CSS, like: .stop {
color: red;
}
.go {
color: green;
} ...rather than setting the CSS inline with the What do you think? |
(also, this is completely irrelevant but typewriter simulations should build in some randomized delay before each "keypress". They look much more realistic that way :) |
Agree with you @wbamberg. The conversion to live sample of the simple example would add to the understanding of the API right away.👍
|
I've assigned you the issue, hope that's OK :).
I think it can just be removed, without an external link. Otherwise one day it will rot and someone will file this bug again :). |
Yea sure no problem.
Will remove it:) |
Looking good, aint't it. @wbamberg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this looks great :).