/SHiT.JS

Show Hide Toggle (SHiT.JS)

Primary LanguageJavaScriptMIT LicenseMIT

SHiT.JS

Show Hide Toggle ( SHiT.JS )

A JavaScript Library that allow you to Show,Hide and Toggle HTML Elements. It's size is 2Kb.

Instructions

Adding SHiT.JS

<script type="text/javascript" src="shit.min.js"></script>

Function Usage

Show

Show - using ID

shit.show('#id_name');

Show - using Class

shit.show('.class_name');

Show - using Tag

shit.show('tag_name');
Hide

Hide - using ID

shit.hide('#id_name');

Hide - using Class

shit.hide('.class_name');

Hide - using Tag

shit.hide('tag_name');
Toggle

Toggle - using ID

shit.toggle('#id_name');

Toggle - using Class

shit.toggle('.class_name');

Toggle - using Tag

shit.toggle('tag_name');

Using with event handlers

<button onclick="shit.show('tag_name');">Show</button>