1.0.7 • Published 7 years ago

omnicron v1.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
7 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

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago