🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

vistar-ad-view-cortex

Package Overview
Dependencies
Maintainers
5
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vistar-ad-view-cortex

An ad view compatible with Cortex 1.6, using Cortex scheduler

2.3.0
npm
Version published
Weekly downloads
2
-93.33%
Maintainers
5
Weekly downloads
 
Created
Source

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"
}

FAQs

Package last updated on 12 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts