Browse
For agents
About
Boxzilla – WordPress Popup Builder
/
trunk
Boxzilla – WordPress Popup Builder
vtrunk
Switch version
3.4.11
3.4.10
3.4.9
3.4.3
3.4.4
3.4.5
3.4.6
3.4.7
3.4.8
trunk
3.0
3.0.1
3.0.2
3.0.3
3.1
3.1.1
3.1.10
3.1.11
3.1.12
3.1.13
3.1.14
3.1.15
3.1.16
3.1.17
3.1.18
All 72 releases
Overview
Code
boxzilla
/
assets
/
js
/
src
/
boxzilla
/
timer.js
timer.js
in Boxzilla – WordPress Popup Builder trunk, at assets/js/src/boxzilla/timer.js
24 lines
409 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
const
Timer
=
function
(
)
{
2
this
.
time
=
0
3
this
.
interval
=
0
4
}
5
6
Timer
.
prototype
.
tick
=
function
(
)
{
7
this
.
time
++
8
}
9
10
Timer
.
prototype
.
start
=
function
(
)
{
11
if
(
!
this
.
interval
)
{
12
this
.
interval
=
window
.
setInterval
(
this
.
tick
.
bind
(
this
)
,
1000
)
13
}
14
}
15
16
Timer
.
prototype
.
stop
=
function
(
)
{
17
if
(
this
.
interval
)
{
18
window
.
clearInterval
(
this
.
interval
)
19
this
.
interval
=
0
20
}
21
}
22
23
module
.
exports
=
Timer
24