1.0.5 • Published 5 years ago

sparetime.js v1.0.5

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

sparetime.js Beta

A dom manipulation library that spares your time.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

What things you need to install the software and how to install them

node

Installing

npm install sparetime.js --save

Up and running

 window.onload = () => {
          spare();
        }

Examples

  • Create, add attributes, add Classes, add Html, get element
 let m = Spare.create('li').attr('id', 'working').Class('i','work', 'here').html(" Spare.js Rocks").element;
 Spare.sel('#but').html(`<span> This is cool huh? </span>`);
  • Select and append
  Spare.sel('#list').append(m);
 Spare.addEvent('#but', 'click',() => {
            return  Math.floor(Math.random() * 1000)
          });

Built With

  • Typescript
  • javascript
  • Webpack

Versioning

We use Npm for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Hat tip to typescript
1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago