Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vistar-ad-view-cortex

Package Overview
Dependencies
Maintainers
6
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.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
51
Maintainers
6
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 21 Sep 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc