krishnjs
v1.0.2
Published
The KrishnJS is a dom-manipulation library it helps the developer to develop interactive web pages without writing a huge line of code.
Downloads
5
Readme
KrishnJS The DOM Manipulation Javascript Library
The KrishnJS is a dom-manipulation library it helps the developer to develop interactive web pages without writing a huge line of code.
To Load the KrishnJS library from the URL, https://cdn.jsdelivr.net/gh/RsVijayTiwari/[email protected]/main/krishn.js
To support the development of KrishnJS Library, Please buy me coffee https://www.buymeacoffee.com/vijaytiwari
To install the KrishnJS via npm use the following command:
npm install krishnjs
Example Code of KrishnJS
#1. To Show an element in DOM, The function should be attach on the onclick listner in the DOM.
container_visibility('show', ['class_name'], [true]);
To Hide an element in DOM
container_visibility('hide', ['class_name'], [true]);
#2. To change the style of element by onclick listner follow then write below code.
change_style(['element_class'], [true], ['backgroundColor'], ['#000']);