-
Notifications
You must be signed in to change notification settings - Fork 46
/
index.html
70 lines (64 loc) · 2 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>**alimask** is a simple library to generate water mask with canvas used in alibaba / antfin.</title>
<meta name="keywords" content="alimask" />
<meta name="description" content="**alimask** is a simple library to generate water mask with canvas used in alibaba / antfin." />
<style type="text/css">
body {
max-width: 1000px;
margin: 0 auto;
padding: 10px 20px;
}
pre {
background-color: #f6dcd7;
border-radius: 3px;
padding: 10px 15px;
white-space: pre-wrap;
word-wrap: break-word;
font-weight: bold;
}
</style>
</head>
<body>
<h1> alimask </h1>
<p>
Project <a href="https://github.com/hustcc/alimask">alimask</a> is a simple library to generate water mask with canvas used in alibaba / antfin. 用于生成阿里内部网站水印的 JavaScript 库。
</p>
<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- sorry for ad -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-7292810486004926"
data-ad-slot="7806394673"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<h2> Install </h2>
<pre>
npm install alimask </pre>
<p> Then import it. </p>
<pre>
// import library use script tag.
<script type="text/javascript" src="dist/alimask.min.js"></script>
// or
var alimask = require('alimask');
// or
import alimask from 'alimask';
</pre>
<h3>Usage</h3>
<pre>
var base64 = alimask('王小为(小为) 888888');
</pre>
<hr />
<p>
The code of alimask hosted on Github, click <a href="https://github.com/hustcc/alimask">here</a>. Welcome to issue or pull request.
</p>
<script type="text/javascript" src="dist/alimask.min.js"></script>
<script type="text/javascript">
document.body.style.background = 'url(' + alimask('王小为(小为) 888888') + ')';
</script>
</body>
</html>