1.0.3 • Published 3 years ago

@ankerpeet/easy-dom v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

About EasyDom

EasyDom makes attaching and unattaching events to DOM elements easy.


Installation

  1. Install with NPM

    npm install easy-dom
  2. Or include links to the CDN in your HTML

<link rel="stylesheet" href="https://unpkg.com/simple-dragn@1.0.3/stand-alone/core.css">
<script src="https://unpkg.com/simple-dragn@1.0.3/stand-alone/dragnDrop.js">

Usage

  1. In EasyDom, we keep everything within an object called the Dom object. To start out instantiate a new Dom object.
var dom = new Dom();

EasyDom is set up to be used as either a CDN, or as an NPM package that you can install and bundle with your application.

Here is an example of how to create a basic HTML document that uses the CDN to attach events to DOM elements:

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>EasyDom Sample App</title>
    </head>
    <body>
        <div id="container" class="container">
        </div>
        <script src="https://unpkg.com/simple-dragn@1.0.4/stand-alone/dragnDrop.js"></script>
        <script>
            var dom = new Dom();
        </script>
    </body>    
</html>

License

Distributed under the MIT License.


Contact

LinkedIn - in/anker-peet

Portfolio: ankerpeet.com

1.0.2

3 years ago

1.0.1

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago