0.0
No commit activity in last 3 years
No release in over 3 years
jsSocials is a simple social network sharing jQuery plugin. It's flexible and easily extensible. Configure visual appearance. Choose one of several themes provided. Add any yet unsupported social network if needed.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.9
~> 10.0
 Project Readme

Jssocials::Rails

jsSocials is a simple social network sharing jQuery plugin.

This gem was built for the ease use of jsSocials in Rails projects.

Gem Version

Installation

Add this line to your application's Gemfile:

gem 'jssocials-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install jssocials-rails

Usage

Add this line to your application's app/assets/javascripts/application.js:

//= require ...
//= require jssocials   # or jssocials.min
//= require ...

Add this line to your application's app/assets/javascripts/application.scss:

...
@import 'jssocials';    
@import 'jssocials-theme-flat';
...

Finally, add the share container tag to your application's some view template file as follows:

<div id='share'></div>

and, add this coffeescript to your application's some coffeescript file as follows:

$ ->
  ...
  $('#share').jsSocials
    url: 'http://your-domain'
    text: 'your share message'
    showCount: (screenWidth) ->
      screenWidth > 1024
    showLabel: (screenWidth) ->
      screenWidth > 1280
    shares: [
      'email'
      'twitter'
      'facebook'
      'googleplus'
      'linkedin'
      'pinterest'
    ]  

That's it.

Changelog

  • v 0.2.0.0 : Initially deployed to Rubygems.org

Contributing

  1. Fork it ( https://github.com/[my-github-username]/jssocials-rails/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request