2.3.3 • Published 9 years ago

vistar-ad-view-cortex v2.3.3

Weekly downloads
2
License
ISC
Repository
-
Last release
9 years ago

vistar-ad-view-cortex

a standalone Cortex lib for displaying Vistar Media ads.

adConfig            = require('vistar-ad-view-cortex').config
inject              = require 'honk-di'
{AdView}            = require('vistar-ad-view-cortex')
{Ajax, XMLHttpAjax} = require 'ajax'

class Binder extends inject.Binder
  configure: ->
    @bind(Ajax).to(XMLHttpAjax)
    @bindConstant('config').to adConfig.config

injector = new inject.Injector(new Binder)
adView   = injector.getInstance AdView

Cortex?.view.register adView.constructor.name
Cortex?.view.setDefaultView adView.constructor.name

adView.run()
Cortex?.view.start()

the "config" object from the vistar-ad-view-cortex library will contain any parameters set in the Cortex dashboard.

can install or set as a dependency in your package.json:

npm install vistar-ad-view-cortex

or in your package.json

"dependencies": {
  "vistar-ad-view-cortex": "1.0.2"
}
2.3.3

9 years ago

2.3.2

9 years ago

2.3.1

9 years ago

2.3.0

9 years ago

2.2.4

9 years ago

2.2.3

9 years ago

2.2.2

9 years ago

2.2.1

9 years ago

2.2.0

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago