Download Github

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.

Try selecting any text on this page

Basic Usage

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

Designed with by Regorxxx. Original design by Prateek Kalra.

Xelection.js is based on Selection.js.

Advanced Usage

<script src="xelection.min.js"></script>
<script>
var selection = new Selection();
selection.config({
facebook: true,
twitter: true,
search:true,
copy:true,
speak:false,
translate: true,
dictionary: true,
image: true,
map: false,
github: false,
email: false,
print: true,
backgroundColor: '#dc143c', // Crimson
iconColor: '#ffffff', // White
opacity: 1,
scale: 1
}).init();
</script>