Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/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.
https://github.com/prateekkalra/Selection-js

copy-paste facebook google-search javascript javascript-library popover selection text-to-speech twitter vanilla-javascript

Last synced: about 2 months ago
JSON representation

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.

Awesome Lists containing this project

README

        


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](https://github.com/prateekkalra/Selection-js/files/1920677/SelectionJS.zip) and add it to your project

### Basic

```html

var selection = new Selection();
selection.init();

```

### Advanced

```html

var selection = new Selection();
selection.config({
facebook: true,
twitter: true,
search:true,
copy:true,
speak:true,
backgroundColor: 'crimson',
iconColor: '#fff',
}).init();

```

# Result


Demo