UNPKG
easyvn
Version:
latest (0.1.1)
0.1.1
0.1.0
Modular visual novel engine for the web
github.com/Eshan276/easyvn
Eshan276/easyvn
easyvn
/
dist
/
waitClick.js
15 lines
(14 loc)
•
339 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export
function
waitClick
(
) {
return
new
Promise
(
(
resolve
) =>
{
const
textbox =
document
.
getElementById
(
"textbox"
);
if
(textbox) { textbox.
onclick
=
() =>
{ textbox.
onclick
=
null
;
resolve
(); }; }
else
{
resolve
(); } }); }