1.0.7 • Published 6 years ago

omnicron v1.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Omnicron

Light and minimal library to organize js of webpages

Source Code

Cloning

git clone https://github.com/MSLacerda/Omnicron

Install dependencies

cd Omnicron

npm install

Dist folder has a version.

Usage

import omnicron.min.js into your html project.

<script src="dist/omni.min.js"></script>

Create omnicron element

  <om-cron om-name="burning">

  </om-cron>

Create new App

    (() => {
      new Omnicron({
        app: 'burning',
        run: () => {

        },
        render: {
          url: 'tests/files/file.html',
          onSuccess: () => {
            console.log("rendered!")
          }
        }
      });
    })()

Methods and Attributes

Method/AttrInformationTypes
runWill execute if the app existsFunction
appName of the app, need be the same on app TagString
beforeWill execute before the run executesFunction
renderRender a element inside the appObject
render.urlPath of the templateString
render.onSuccessWill execute when rendering is completeFunction
1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago