s-event.js

1.0.5 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i s-event.js

Weekly Downloads

1

Version

1.0.5

License

ISC

Unpacked Size

4.44 kB

Total Files

5

Last publish

Collaborators

  • tasvet