0.2.1 • Published 6 months ago

awebjs v0.2.1

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

AWebJS

AwebJS is a javascript technology for making sites and UIs using javascript

Getting Started

Awebjs is constructed to be easy to use

first import your main javascript file (Note: type="module" Is required else it throws a error)

<script type="module" src="index.js"></script>

on your script import the AWebJS class:

import AWebJS from './awebjs/src/awebjs.js'
const AwebJS = new AWebJS()

and your ready to use AWebJS

Examples

AWebJSDOM Class Usage

function HelloWorld(text)
{
AwebJS.AwebJSDOM.render('p',`${text}`)
}
HelloWorld('Hello world!');

Using AWebJS in Buttons

const HelloWorld = () =>
{
    AwebJS.AwebJSDOM.renderElement('h1','Hello World','hwdom')
}

const btn = document.getElementById('sample-button')
btn.addEventListener('click', HelloWorld)

Contributing

we do welcome contributions if you find any bugs or spelling issues or want to make new features please make a pull request and we look forward.