Skip to content

maulanaahmadarif/titit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Titit (Tweet it)

Simply Highlight your text and tweet it!

Include the assets

<link rel="stylesheet" href="./path/titit.min.css">

or

<link rel="stylesheet" href="./path/titit.css">

and also the script before closing body tag

<script src="./path/titit.min.js"></script>

or

<script src="./path/titit.js"></script>

Titit Parameters

Parameter Type Default
color String #fff
containerColor String #000
elem String null

You have to initialized the elem parameter to work

Example

const TititOpt = {
    color: '#fff',
    containerColor: '#000',
    elem: '.content p',
};

const titit = new Titit(TititOpt);
titit.init();

About

Highlight the text, and tweet it!!!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published