prateekkalra / Selection-js

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

Home Page:https://prateekkalra.github.io/Selection-js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://prateekkalra.github.io/Selection-js/

License:MIT License


Languages

Language:JavaScript 77.6%Language:HTML 20.5%Language:CSS 1.9%