Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ispirett/sparetime.js
A Dom manipulation library that spares your time.
https://github.com/ispirett/sparetime.js
Last synced: 6 days ago
JSON representation
A Dom manipulation library that spares your time.
- Host: GitHub
- URL: https://github.com/ispirett/sparetime.js
- Owner: Ispirett
- License: other
- Created: 2019-10-11T22:14:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T10:37:11.000Z (about 2 years ago)
- Last Synced: 2024-11-14T11:37:05.314Z (2 months ago)
- Language: JavaScript
- Size: 226 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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(` This is cool huh? `);```
* 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](http://npm.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/ispirett/spare.js/tags).
## Authors
* **Isaac Browne** - *Initial work* - [Ispirett](https://github.com/isprett)
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
## Acknowledgments
* Hat tip to typescript