demo-selection-js

1.0.0 • Public • Published

SelectionJS

A lightweight javascript library which provides users with a set of options in the form of a small popover over the selected portion of text.

Live Demo

Usage

To get started with Selection.js, download the Script and add it to your project

Basic

<script src="selection.min.js"></script>
<script>
  var selection = new Selection();
  selection.init();
</script> 

Advanced

<script src="selection.min.js"></script>
<script>
  var selection = new Selection();
  selection.config({
    facebook: true,
    twitter: true,
    search:true,
    copy:true,
    speak:true,
    backgroundColor: 'crimson',
    iconColor: '#fff',
  }).init();
</script> 

Result

Demo

Package Sidebar

Install

npm i demo-selection-js

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

49.6 kB

Total Files

7

Last publish

Collaborators

  • jeremigendron