Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
11 lines
246 B
Text
11 lines
246 B
Text
import {Timer} from "./timer.js";
|
|
|
|
export default function(callback, delay, time) {
|
|
var t = new Timer;
|
|
delay = delay == null ? 0 : +delay;
|
|
t.restart(elapsed => {
|
|
t.stop();
|
|
callback(elapsed + delay);
|
|
}, delay, time);
|
|
return t;
|
|
}
|