Skip to content

rilwis/ejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

e.js

A simple JavaScript for common actions.

Usage

Add the following script into your HTML:

<script src="https://cdn.jsdelivr.net/gh/rilwis/ejs/e.min.js"></script>

Toggle a class of an element by adding x-toggle attribute to a trigger element with value selector:className.

The code bellow will toggle the menu class of the body element when click the button:

<body>
	<button x-toggle="body:menu">Toggle</button>

	<script src="https://cdn.jsdelivr.net/gh/rilwis/ejs/e.min.js"></script>
</body>

About

Simple JS library for common actions

Resources

Stars

Watchers

Forks

Packages

No packages published