Skip to content

Tweet a selected text in your page or specific areas like a content area with just one click

License

Notifications You must be signed in to change notification settings

k4fer74/tweet-selected-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tweet Selected Text

Tweet a selected text on a your page or in specific areas like a content area with just one click

Install

Manually

In the head, add the css

<link rel="stylesheet" href="path/to/your/tweet-selected-text.css">

Before body tag closing, add the javascript

<script src="path/to/your/tweet-selected-text.min.js"></script>

Init the plugin

<script> new SelectedText(['.class-content-block']); </script>

Note: you must pass the classes or id's to constructor as array

<script> new SelectedText(['#id-content', '.class-posts']); </script>

Note: To pass a list of classes or IDS to the constructor, admitted that the texts within the respective elements can be shared

About

Tweet a selected text in your page or specific areas like a content area with just one click

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published