Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 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.
- Host: GitHub
- URL: https://github.com/prateekkalra/Selection-js
- Owner: prateekkalra
- License: mit
- Created: 2018-04-16T18:37:20.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-05T03:55:33.000Z (over 1 year ago)
- Last Synced: 2024-10-01T01:59:03.867Z (4 months ago)
- Topics: copy-paste, facebook, google-search, javascript, javascript-library, popover, selection, text-to-speech, twitter, vanilla-javascript
- Language: JavaScript
- Homepage: https://prateekkalra.github.io/Selection-js/
- Size: 75.2 KB
- Stars: 93
- Watchers: 6
- Forks: 61
- Open Issues: 37
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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.
## 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