Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 850 Bytes

README.md

File metadata and controls

49 lines (34 loc) · 850 Bytes

Watermark

Create watermark for webpage and automatic adjust when windows resize.

Usage

Browser

  1. Clone source

    git clone [email protected]:Lruihao/watermark.git
  2. 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>
  3. Initialization

    document.addEventListener('DOMContentLoaded', function () {
      new Watermark({
        content: "cell-watermark"
      })
    });

NPM

  1. Install

    npm i cell-watermark
  2. Import

    import Watermark from 'cell-watermark'
    /* Or */
    var Watermark = require("cell-watermark")