Giter Site home page Giter Site logo

jdaviderb / ember-sharer Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 189 KB

Create your own social share buttons on Emberjs (sharer.js wrapper)

License: MIT License

JavaScript 91.84% HTML 7.85% Handlebars 0.30%
ember-addon social-media shared-library social-network share-buttons

ember-sharer's Introduction

ember-sharer

ember-sharer is an addon that provides an ember-modifier that setup https://github.com/ellisonleao/sharer.js out of box

Compatibility

  • Ember.js v3.16 or above
  • Ember CLI v2.13 or above
  • Node.js v10 or above

Installation

ember install ember-sharer

Usage

this addon just provides a modifier {{sharer-init}} that initializes the library in the element.

examples ๐Ÿ‘‡

Facebook
<div
  data-sharer="facebook" 
  data-hashtag="sharerjs"
  data-quote="sharerjs from ember-modifier"
  data-url="https://emberobserver.com/"
  {{sharer-init}}
>
  Hello SharerJS
</div>
Twitter
<button 
  class="button" 
  data-sharer="twitter" 
  data-title="Checkout Sharer.js!" 
  data-hashtags="awesome, sharer.js" 
  data-url="https://ellisonleao.github.io/sharer.js/"
  {{sharer-init}}
>
  Share on Twitter
</button>
Linkedin
<button 
  class="button" 
  data-sharer="linkedin" 
  data-url="https://ellisonleao.github.io/sharer.js/"
  {{sharer-init}}
>
  Share on Linkedin
</button>
Email
<button 
  class="button" 
  data-sharer="email" 
  data-title="Awesome Url" 
  data-url="https://ellisonleao.github.io/sharer.js/" 
  data-subject="Hey! Check out that URL" 
  data-to="[email protected]"
  {{sharer-init}}
>
  Share via Email
</button>

WhatsApp
<button 
  class="button" 
  data-sharer="whatsapp" 
  data-title="Checkout Sharer.js!" 
  data-url="https://ellisonleao.github.io/sharer.js/"
  {{sharer-init}}
>
  Share on Whatsapp
</button>

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

ember-sharer's People

Contributors

ember-tomster avatar jdaviderb avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.