Skip to content

Lruihao/watermark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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")