Create watermark for webpage and automatic adjust when windows resize.
-
Clone source
git clone git@github.com:Lruihao/watermark.git
-
Load
Watermark
<script type="text/javascript" src="./src/watermark.js"></script> <!-- Or CDN --> <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/cell-watermark"></script>
-
Initialization
document.addEventListener('DOMContentLoaded', function () { new Watermark({ content: "cell-watermark" }) });
-
Install
npm i cell-watermark
-
Import
import Watermark from 'cell-watermark' /* Or */ var Watermark = require("cell-watermark")