This Library is used to send a payload to Hadrian and handle the evaluated response.
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/[email protected]/dist/hadrian.min.js">
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',
...
})
$ npm run build
$ npm run test
Please see Contributing Guide and Code of Conduct for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.