/watermark

Create watermark for webpage and automatic adjust when window resize.

Primary LanguageJavaScript

Watermark

Create watermark for webpage and automatic adjust when windows resize.

Usage

Browser

  1. Clone source

    git clone git@github.com: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")