nrsimha / sticky-attribution

Insert attribution next to the copied text.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sticky Attribution

Insert attribution next to the copied text.

Sticky Attribution

Tested on Mozilla Firefox 53.0.3, Google Chrome 58.0.3029.110 and Internet Explorer 11.0.9600.16663.

Demo: https://tovic.github.io/sticky-attribution

Usage

<!DOCTYPE html>
<html dir="ltr">
  <head>
    <meta charset="utf-8">
    <title>Demo</title>
  </head>
  <body>
    <p>Content goes here.</p>
    <script src="sticky-attribution.min.js"></script>
  </body>
</html>

Note: This script will not add the attribution if you are copying text inside <pre>, <code> or any HTML container with class no-attribution in it.

About

Insert attribution next to the copied text.


Languages

Language:HTML 52.1%Language:JavaScript 47.9%