Skip to content

Instantly share code, notes, and snippets.

View x9t9's full-sized avatar

x9t9 x9t9

  • Hong Kong // Shenzen // Berlin
View GitHub Profile
@x9t9
x9t9 / timer.js
Created May 11, 2019 18:00 — forked from fundon/timer.js
One Page One Timer
var Timer = {
i: 0,
t: 0,
queue: {},
tq: {},
add: function (time, callback) {
if (!this.queue[time]) {
this.queue[time] = [];
this.tq[time] = 0;
}