Sha256: 2501cc715a569ffc52e438f47f09cc2072458e398fd36633e251ec6caedfe04e
Contents?: true
Size: 526 Bytes
Versions: 1
Compression:
Stored size: 526 Bytes
Contents
function GenericPixel(options) { options = options || {}; this.snippet = options.pixel['snippet']; this.context = options.context; this.comment = 'Generic Pixel(' + options.pixel['type'] + '): ' + options.pixel['name']; this.template = _.template('<!-- ' + this.comment + ' -->' + decodeURIComponent(this.snippet)); this.tag = this.template(this.context); } GenericPixel.prototype.insert = function() { $(this.tag).addClass('pixel').appendTo('body'); $('body').append('<!-- END ' + this.comment + ' -->'); };
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pixelator-0.0.1 | app/assets/javascripts/core/generic_pixel.js |