-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
29 lines (29 loc) · 843 Bytes
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<img id="imgs" src="//static.bom.ai/files/owner/logo.png" style="width: 100%;height:100%;"/>
<button id="btn">显示</button>
<script>
window.onload = () => {
const notify = window.ms_notify('#imgs' , {
width: 320,
height: 188,
offset: 20,
delay: 10000,
placement: 'bottom-right', // bottom-right bottom-left top-right top-left
direction: 'toTop', // toTop toLeft toBottom toRight
timingFunction: 'ease', // linear ease ease-in ease-in-out ease-out step-start step-end
message: '#{delay}S后关闭'
})
document.querySelector('#btn').addEventListener('click', () => {
notify.show()
})
}
</script>
</body>
</html>