lib/overlay.js
function (pairCode, linkUrl, includeStyles) {
	/** @type {string} Pair code. */
	this.pairCode = pairCode;

	/** @type {string} URL for 'Connect' button. */
	this.linkUrl = linkUrl;

  /** @type {Element} Overlay element. */
  this.el = document.createElement('div');

  /** @type {Element} Overlay stylesheet. */
  this.stylesheet = null;

  if (includeStyles) {
  	this.stylesheet = document.createElement('style');
  	this.appendStyles();
  }

  this.render();
}
function (pairCode, linkUrl, includeStyles) {
	/** @type {string} Pair code. */
	this.pairCode = pairCode;

	/** @type {string} URL for 'Connect' button. */
	this.linkUrl = linkUrl;

  /** @type {Element} Overlay element. */
  this.el = document.createElement('div');

  /** @type {Element} Overlay stylesheet. */
  this.stylesheet = null;

  if (includeStyles) {
  	this.stylesheet = document.createElement('style');
  	this.appendStyles();
  }

  this.render();
}
function ( pairCode , linkUrl , includeStyles ) { /** @type {string} Pair code. */ this . pairCode = pairCode ; /** @type {string} URL for 'Connect' button. */ this . linkUrl = linkUrl ; /** @type {Element} Overlay element. */ this . el = document . createElement ( 'div' ) ; /** @type {Element} Overlay stylesheet. */ this . stylesheet = null ; if ( includeStyles ) { this . stylesheet = document . createElement ( 'style' ) ; this . appendStyles ( ) ; } this . render ( ) ; }
Helper class for the canvas overlay, which has to be rendered and styled
in JavaScript, just because.

@param {string} pairCode
* @param {string} linkUrl
@param {boolean} includeStyles
Helper class for the canvas overlay which has to be rendered and styled in JavaScript just because .