-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add clock example #545
Add clock example #545
Conversation
Interesting, but:
|
I have made a clock that moves. But I think maybe we can wrap the executing code in iframe for better isolation. You can try it out in ide
|
Now that's pretty cool!!
|
I think the original clock is meant for some ancient clock. Anyway, maybe a modern clock system is better for demonstration purposes. I have updated the code above and corrected the timezone (hopefully).
|
Maybe hijack is not a best solution for this. Some other use case like infinite loops, setTimeout or anything that has side effects can not be fully cover by hijack. Please try out the iframe solution, I think it may solve most of these problems. :)
Definitely! Looking forward to that. |
EDIT: NVMD. Check out your new version, works perfectly |
Oh wait, it only works for the first 15 minutes of an hour. This is more correct:
Let me push it. EDIT: pushed: c4bf9c9 |
This example is not written by me. I just found it on the snippet site and there are no current examples utilize the
曆法
lib. I think theclock
is a perfect example of it.