Skip to content

Instantly share code, notes, and snippets.

@tommymarshall
Created July 15, 2014 17:50
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tommymarshall/81df4bc8f15860c50a12 to your computer and use it in GitHub Desktop.
var Floodlight = {
init: function() {
this.binds();
this.vars();
},
vars: function() {
this.$links = $('.fl-record-click')
},
binds: function() {
this.$links.on('click', this.recordButtonClick);
},
recordButtonClick: function() {
var axel = Math.random()+"";
var a = axel * 10000000000000000;
var spotpix = new Image();
var $el = $(this);
var cat = $el.data('cat');
var property_name = $el.data('prop');
// <a href="#" class="fl-record-click" data-cat="cwu01" data-prop="something">Link</a>
spotpix.src="http://ad.doubleclick.net/activity;src=4076176;type=conve135;cat="+cat+";u1=["+property_name+"];ord=" + a + "?";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment