1.0.5 • Published 2 years ago

s-event.js v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

S-EVENT.JS

turn your easy code to secure code

Authors

License

MIT

Badges

MIT License GPLv3 License AGPL License

Documentation

Documentation

Installation

Install s-event.js with npm

  npm install s-event.js --save

Usage/Examples

in file app.js

    require('s-event.js');

in file index.html

    <body>
        ...
        <script src="path/app.js"></script>
    </body>

Usage :

    <a s-click-link="http://www.abc.com">
        Open link on current page
    </a>

    ...

    <a s-click-fn="test(10)">
        do on function
    </a>
    <script>
        function test(number){
            console.log(number);
       }
    </script>
    <tagName s-[event]-[type]></tagName>

How it work!

    //check resourse code

    <a s-click-link="http://www.abc.com">
        Open link on current page
    </a>

    to

    <a>
        Open link on current page
    </a>
    //when click will open http://www.abc.com

Related

Here are some related projects

Awesome README

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago