No commit activity in last 3 years
No release in over 3 years
Popover menu to share on Twitter or by email any text selected on the page with support for mobile devices (with a popunder).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

selection-sharer

Popover menu to share on Twitter or by email any text selected on the page with support for mobile devices (with a popunder).

selection sharer screenshot

Installation

Add this line to your application's Gemfile:

gem 'selection-sharer'

And then execute:

$ bundle

Usage

At this point, the files from the selection-sharer project are in your asset pipeline's path... all you have to do is require them in the appropriate places. For instance, in your application.css:

*= require selection-sharer

And in your application.js:

//= require selection-sharer

How to add it to your site

This script requires jQuery so make sure you have it loaded on your page.

<script>
$('p').selectionSharer();
</script>

If you want to add Facebook share, please make sure that your page has a Facebook App ID meta tag:

<meta property="fb:app_id" content="123456789" />

The url shared can be set using the og:url tag:

<meta property="og:url" content="http://your.url/to/share" />