Skip to content

Instantly share code, notes, and snippets.

@justinboyle
Created January 9, 2014 16:51
Show Gist options
  • Save justinboyle/8337580 to your computer and use it in GitHub Desktop.
Save justinboyle/8337580 to your computer and use it in GitHub Desktop.
var loc = window.location.pathname
, site = {
'spx' : 'SPX',
'str' : 'STR',
'rhl' : 'RHL',
'lya' : 'LYA'
}
, cat = ''
, map = {
'swm' : 'Swim',
'sw' : 'Shapewear',
'br' : 'Bras',
'leg' : 'Legwear',
'act' : 'Active',
'men' : 'Men',
'pls' : 'Plus',
'sal' : 'Sale'
}
$('body').append('<script src="http://jact.atdmt.com/jaction/bvkspc_' + loc.match(/spx|str|rhl|lya/) + 'Category' + loc.match(/swm|sw|pty|br|leg|act|men|pls|sal/) + 'Mobile_1"><\/scr'+'ipt>');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment