UNPKG
danmuku
Version:
latest (1.0.0)
1.0.0
Display danmu (flying comments) on HTML5 video.
danmuku
/
src
/
api
/
hide.js
14 lines
(12 loc)
•
258 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
pause
from
'../internal/pause.js'
;
export
default
function
(
Danmuku
) {
Danmuku
.
prototype
.
hide
=
function
(
) {
if
(!
this
.
visible
) {
return
this
; } pause.
call
(
this
);
this
.
clear
();
this
.
visible
=
false
;
return
this
; }; }