Andros Fenollosa 21f73ea37f Add test class
2020-07-05 10:35:36 +02:00
2020-07-05 10:35:36 +02:00
2020-07-05 10:35:36 +02:00
2020-07-05 10:35:36 +02:00
2020-07-05 10:35:36 +02:00
2020-07-04 16:57:28 +02:00
2020-06-29 19:39:58 +02:00
2020-07-04 16:57:28 +02:00
2020-07-04 16:57:28 +02:00
2020-07-04 17:24:45 +02:00

FFNM (Front-End for the next master)

Simple plugin to avoid writing Javascript in trivial tasks.

Documentation


Spanish/Español

Instalar

Añade a tu <head> la siguiente etiqueta.

<script src="https://cdn.jsdelivr.net/gh/tanrax/FFNM@v1.0.0/ffnm.min.js"></script>

Ejemplos de uso

Clic

Añadir la clase show al selector #menu cuando sea pulsado el botón.
<button i-click="class:add('show', '#menu')">abrir</button>
Quitar la clase show al selector #menu cuando sea pulsado el botón.
<button i-click="class:remove('show', '#menu')">cerrar</button>
Intercambiar la clase show al selector #menu cuando sea pulsado el botón.
<button i-click="class:toggle('show', '#menu')">ver</button>

Clases sin eventos

Añadir la clase show al selector #menu
class:add('show', '#menu')
Quitar la clase show al selector #menu
class:remove('show', '#menu')
Intercambiar la clase show al selector #menu
class:toggle('show', '#menu')

Development

Install

npm i

Build

gulp

Watch mode

gulp dev
Description
Front-End for the next master
Readme 692 KiB
Languages
HTML 72.8%
JavaScript 27.2%