Skip to content

interconnectit/hadrian-js

Hadrian

build status code style

This Library is used to send a payload to Hadrian and handle the evaluated response.

Install

include via NPM

$ npm install --save @interconnectit/hadrian

Pull via CDN

<script src="https://cdn.jsdelivr.net/gh/interconnectit/hadrian-js/dist/hadrian.min.js"></script>

or you can pull a specific version

<script src="https://cdn.jsdelivr.net/gh/interconnectit/hadrian-js@2.0.0/dist/hadrian.min.js">

Usage

hadrian()
    .on({user: {subscription: 'gold'}}, function () {
        $('.popup_subscription_gold').show()
    })
    .on({user: {subscription: 'silver'}}, function () {
        $('.popup_subscription_silver').show()
    })
    ...
    .evaluate({
        post_id: 1,
        post_title: 'Lorem ipsum dolor sit amet',
        ...
    })

Compile

$ npm run build

Testing

$ npm run test

Contributing

Please see Contributing Guide and Code of Conduct for details.

Security

If you discover any security related issues, please email support@interconnectit.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

No description or website provided.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors