maulanaahmadarif / titit

Highlight the text, and tweet it!!!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!!!


Languages

Language:JavaScript 100.0%