-
Notifications
You must be signed in to change notification settings - Fork 0
/
testing.html
30 lines (24 loc) · 928 Bytes
/
testing.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel='stylesheet' href='style.css'>
</head>
<body>
<script type='module'>
import cfa from './dist/cf-alert.js';
await cfa.message('test', 'foobar');
await cfa.message('<b>unsafe</b>', 'unsafe alert', 'test', false)
let confirm = await cfa.confirm('testing confirm');
console.log(confirm);
let text = await cfa.input('text', 'test', 'foobar');
let number = await cfa.input('number', 'test', 'foobar');
let password = await cfa.input('password', 'test', 'foobar');
let longText = await cfa.input('textarea', 'test', 'foobar');
console.log(text, number, password, longText);
</script>
</body>
</html>