georapbox / canvas-circular-countdown Goto Github PK
View Code? Open in Web Editor NEWDraw a configurable circular canvas countdown timer.
Home Page: https://georapbox.github.io/canvas-circular-countdown/
License: MIT License
Draw a configurable circular canvas countdown timer.
Home Page: https://georapbox.github.io/canvas-circular-countdown/
License: MIT License
Hey there,
First of all - thanks for making this library and hitting the nail right in the head.
A server maintains the duration and elapsed time. I use sockets to sync with it.
Long story short, I have a duration
and elapsedTime
which is maintained outside of canvas-circular-countdown. I want canvas-circular-countdown to use the elapsedTime which I provide.
time
which contains the remaining time (pass by reference). Use it simply to display. Or...instance
called "setTime". That way we could use setTime whenever the server timer changes.Open to more solutions.
Hi everyone,
I have a situation where a circular counter is shown to explain the user the time he has to complete a form. If the user suubmit the form and there are some server validation errors, the page is re render and I would like to start the circular countdown again but with the elapsed time instead of creating a countdown with less duration.
As far as I see in the code, there is an easy way to add it as configuration and pass it to the Timer class instead to always assign this._time
with 0
. What do you think? Would you accept a PR with that?
I would be interested to know if the canvas element can slow down the browser after a certain time?
Especially when multiple timers are running at the same time?
Since I installed the timer plugin, the website becomes very sluggish after a while, so that the scroll bars can no longer be moved back and forth smoothly and the scrolling is also messy.
I can imagine that canvas is responsible for this and is “garbaging” the server.
maybe you have any idea or a solution to clean it up?
Thank you and best regards.
Hello,
as first let me say you have do a nice Script here, i like it ! =)
But i have a little problem, your timer is anymore running when the tab is anymore in focus.
That is a problem then il added a tick-function on onTimerRunning, so when timer is done it will play an alert sound.
But the tab need to be still active to run the tick-function, this is a big problem.
is it a native problem of canvas or on your script?
I would be very much happy if you can help/fix.
Thank you.
How to control the direction, clockwise
is it possible to display remaining time instead of percentage?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.