Linke,Box,/Heinz480854.html,Robert,Matteac,Cigar,66,Gitarre,3spv,$90,panacool.com,Musical Instruments & Gear , Guitars & Basses , Cigar Box Guitars,Blues,Delta,Route Cigar Box Gitarre Route 66 3spv Linke Max 75% OFF Delta Matteac Robert Blues Cigar Box Gitarre Route 66 3spv Linke Max 75% OFF Delta Matteac Robert Blues $90 Cigar Box Gitarre Route 66 3spv Linke Delta Blues Robert Matteac Musical Instruments & Gear Guitars & Basses Cigar Box Guitars $90 Cigar Box Gitarre Route 66 3spv Linke Delta Blues Robert Matteac Musical Instruments & Gear Guitars & Basses Cigar Box Guitars Linke,Box,/Heinz480854.html,Robert,Matteac,Cigar,66,Gitarre,3spv,$90,panacool.com,Musical Instruments & Gear , Guitars & Basses , Cigar Box Guitars,Blues,Delta,Route
/g, result;
while((result = regex.exec(str)) !== null) {
urls.push(result[1]);
}
return urls;
}
var $ad = document.querySelector('#'+adObj.targetId);
var nativeObj = adObj.native;
// not all native fields will be specified on the request,
// so make sure you trap any null values properly
var clickUrl = nativeObj.clickUrl;
var title = nativeObj.title;
var body = nativeObj.body;
var sponsor = nativeObj.sponsoredBy;
var imgSrc = nativeObj.image && nativeObj.image.url;
var cta = nativeObj.cta;
var iconSrc = nativeObj.icon && nativeObj.icon.url;
// If winning creative doesn't have the optional field icon,
// remove corresponding section from the HTML
var iconElement = jQuery($ad).find('img.xandr-icon')
if (iconElement.length && typeof iconSrc === 'string') {
var iconSrcText = iconElement.attr('src')
iconElement.attr('src', iconSrcText.replace(/\[%icon.url%\]/, iconSrc))
}
else if (iconElement.length > 0) {
iconElement.remove()
}
if (typeof clickUrl === 'string') {
jQuery($ad).on('click', function () {
window.open(clickUrl, '_blank')
})
}
var imageElement = jQuery($ad).find('img.xandr-image')
if (imageElement.length && typeof imgSrc === 'string') {
var imageSrcText = imageElement.attr('src')
imageElement.attr('src', imageSrcText.replace(/\[%image.url%\]/, imgSrc))
}
else if (imageElement.length > 0) {
imageElement.remove()
}
var titleElement = jQuery($ad).find('h1.xandr-title')
if (titleElement.length && typeof title === 'string') {
var titleText = titleElement.html()
titleElement.html(titleText.replace(/\[%title%\]/, title))
}
else if (titleElement.length > 0) {
titleElement.remove()
}
var sponsoredElement = jQuery($ad).find('span.xandr-sponsored-by')
if (sponsoredElement.length && typeof sponsor === 'string') {
var sponsoredText = sponsoredElement.html()
sponsoredElement.html(sponsoredText.replace(/\[%sponsoredBy%\]/, sponsor))
}
else if (sponsoredElement.length > 0) {
sponsoredElement.remove()
}
//
jQuery($ad).closest('hidden > div, hidden > ul').unwrap()
// collect and fire off the trackers
var impTrackers = nativeObj.impressionTrackers || [];
var jsTrackers = parseJsTrackers(nativeObj.javascriptTrackers) || [];
var clickTrackers = nativeObj.clickTrackers;
//
// fire imp trackers
for(var i = 0; i < impTrackers.length; i++) {
fireRequest(impTrackers[i]);
}
for(var i = 0; i < jsTrackers.length; i++) {
// this is where you would filter out tracker that you don't want to fire
// for example, this will only include moat trackers:
// if(url.indexOf('//z.moatads.com') > -1) { /* .... */ }
if(true) {
var d = document, scr = d.createElement('script'), tar = d.getElementsByTagName("head")[0];
scr.type = 'text/javascript'; scr.async = true;
scr.src = jsTrackers[i];
tar.insertBefore(scr, tar.firstChild);
}
}
// set up handlers for click trackers
jQuery($ad).on('click', function () {
for(var j = 0; j < clickTrackers.length; j++) {
fireRequest(clickTrackers[j]);
}
})
};
Foundation.ApnAds.setup = function () {
if (Foundation.ApnAds.setupCalled === true)
return
Foundation.ApnAds.setupCalled = true
window.apntag = window.apntag || {};
apntag.anq = apntag.anq || [];
(function() {
var d = document, e = d.createElement('script'), p = d.getElementsByTagName('head')[0];
e.type = 'text/javascript'; e.async = true;
e.src = '//acdn.adnxs.com/ast/ast.js';
p.insertBefore(e, p.firstChild);
})();
apntag.anq.push(function() {
apntag.setPageOpts({
member: 9027,
publisherId: 1222163
});
// phx ad vertical home (3621072)
// 21983215 Native Home Top
var mySizes = [1,1]
Foundation.ApnAds.nativeTop = ['apn-nativeTop']
Foundation.ApnAds.nativeTop.each(function (item) {
var nativeTopBottomMaxTitlelength = 200
if (window.innerWidth <= Foundation.ApnAds.mobileWidth) {
nativeTopBottomMaxTitlelength = 100
}
apntag.defineTag({
tagId: 21983215,
sizes: mySizes,
targetId: item,
native: {
title: {
required: true,
max_length: nativeTopBottomMaxTitlelength
},
body: { required: false },
image: { required: true },
sponsoredBy: {
required: true,
max_length: 100
},
icon: {
required: true,
sizes: [{ width: 300, height: 300 }]
},
cta: { required: false },
},
})
})
// 21983216 Native Home Bottom
var mySizes = [1,1]
Foundation.ApnAds.nativeBottom = ['apn-nativeBottom']
Foundation.ApnAds.nativeBottom.each(function (item) {
var nativeTopBottomMaxTitlelength = 200
if (window.innerWidth <= Foundation.ApnAds.mobileWidth) {
nativeTopBottomMaxTitlelength = 100
}
apntag.defineTag({
tagId: 21983216,
sizes: mySizes,
targetId: item,
native: {
title: {
required: true,
max_length: nativeTopBottomMaxTitlelength
},
body: { required: false },
image: { required: true },
sponsoredBy: {
required: true,
max_length: 100
},
icon: {
required: true,
sizes: [{ width: 300, height: 300 }]
},
cta: { required: false },
},
})
})
if (window.innerWidth > Foundation.ApnAds.tabletWidth) {
// Reskin (13486045) - 1920x900
var mySizes = [2000,900]
Foundation.ApnAds.reskin = ['apn-reskin']
Foundation.ApnAds.reskin.each(function (item) {
apntag.defineTag({
tagId: 13486045,
sizes: mySizes,
targetId: item,
})
})
// 160x600 (19146134) - 160x600, 300x600 reskin fallback
// reskinFallback disabled
// Leaderboard Middle (13486043) - 970x250, 728x90
var mySizes = [728,90]
Foundation.ApnAds.leaderboardMiddle = ['apn-leaderboardMiddle-1','apn-leaderboardMiddle-2','apn-leaderboardMiddle-3']
Foundation.ApnAds.leaderboardMiddle.each(function (item) {
Foundation.ApnAds.tags = Foundation.ApnAds.tags || {}
Foundation.ApnAds.tags[item] = {
tagId: 13486043,
sizes: mySizes,
targetId: item,
}
})
// Rectangle (13486044) - 300x250, 300x600
var mySizes = [300,250]
Foundation.ApnAds.rectangle = ['apn-rectangle-1','apn-rectangle-2','apn-rectangle-3','apn-rectangle-4','apn-rectangle-5','apn-rectangle-6']
Foundation.ApnAds.rectangle.each(function (item) {
Foundation.ApnAds.tags = Foundation.ApnAds.tags || {}
Foundation.ApnAds.tags[item] = {
tagId: 13486044,
sizes: mySizes,
targetId: item,
}
})
// Sticky - Desktop (13486046) - 728x90
var mySizes = [728,90]
Foundation.ApnAds.sticky = ['apn-sticky']
Foundation.ApnAds.sticky.each(function (item) {
apntag.defineTag({
tagId: 13486046,
sizes: mySizes,
targetId: item,
})
})
}
else if (window.innerWidth > Foundation.ApnAds.mobileWidth) {
// Tablet Middle (13486054) - 468x60
var mySizes = [468,60]
Foundation.ApnAds.leaderboardMiddle = ['apn-leaderboardMiddle-1','apn-leaderboardMiddle-2','apn-leaderboardMiddle-3']
Foundation.ApnAds.leaderboardMiddle.each(function (item) {
Foundation.ApnAds.tags = Foundation.ApnAds.tags || {}
Foundation.ApnAds.tags[item] = {
tagId: 13486054,
sizes: mySizes,
targetId: item,
}
})
// Rectangle (13486044) - 300x250, 300x600
var mySizes = [300,250]
Foundation.ApnAds.rectangle = ['apn-rectangle-1','apn-rectangle-2','apn-rectangle-3','apn-rectangle-4','apn-rectangle-5','apn-rectangle-6']
Foundation.ApnAds.rectangle.each(function (item) {
Foundation.ApnAds.tags = Foundation.ApnAds.tags || {}
Foundation.ApnAds.tags[item] = {
tagId: 13486044,
sizes: mySizes,
targetId: item,
}
})
}
else {
// Middle Banner (13486049) - 320x50
var mySizes = [320,50]
Foundation.ApnAds.leaderboardMiddle = ['apn-leaderboardMiddle']
Foundation.ApnAds.leaderboardMiddle.each(function (item) {
Foundation.ApnAds.tags = Foundation.ApnAds.tags || {}
Foundation.ApnAds.tags[item] = {
tagId: 13486049,
sizes: mySizes,
targetId: item,
}
})
// Mobile Rectangle (13486050) - 300x250, 300x600
var mySizes = [[300,600],[300,250]]
Foundation.ApnAds.rectangle = ['apn-rectangle-1','apn-rectangle-2','apn-rectangle-3','apn-rectangle-4','apn-rectangle-5','apn-rectangle-6']
Foundation.ApnAds.rectangle.each(function (item) {
Foundation.ApnAds.tags = Foundation.ApnAds.tags || {}
Foundation.ApnAds.tags[item] = {
tagId: 13486050,
sizes: mySizes,
targetId: item,
}
})
// Sticky - Mobile (13486051) - 320x50
var mySizes = [320,50]
Foundation.ApnAds.sticky = ['apn-sticky']
Foundation.ApnAds.sticky.each(function (item) {
apntag.defineTag({
tagId: 13486051,
sizes: mySizes,
targetId: item,
})
})
}
// /Macros/Ads/phx/home
//
window.apntag.onEvent('adNoBid', function(adObj) {
if (adObj.targetId.match(/reskin$/)){
// Original reskin failed to serve go with fallback
// Foundation.ApnAds.displayReskinFallback()
}
})
window.apntag.onEvent('adAvailable', function(adObj) {
if (adObj.targetId.match(/reskin$/)) {
// Disabled for now
Foundation.ApnAds.displayReskinAd()
}
else if (adObj.targetId.match(/sticky/)) {
// Don't create the overlay element unless there's actually a sticky ad to show
// Also don't create a new sticky ad if the overlay element already exists (refresh)
if (jQuery('#apn-sticky-bottom-container').length < 1) {
Foundation.ApnAds.displayStickyAd()
Foundation.ApnAds.reloader('apn-sticky', 25, 3)
}
}
else if (adObj.targetId.match(/reskinFallback/)) {
// console.log('reskinFallback adObj: ',adObj)
}
else if (adObj.targetId.match(/native/)) {
Foundation.ApnAds.stashNativeAdObject(adObj)
}
})
window.apntag.onEvent('adBadRequest', function(adObj) {
setTimeout(function() {
// console.log('[adBadRequest]', adObj.targetId, 'hiding ad container')
jQuery('#' + adObj.targetId)
.closest('[fdn-ad-component]')
.wrap('
Phoenix's independent source of
local news and culture
Coupons Captain is a trusted partner with Phoenix New Times. Our news staff is not involved in making product recommendations, but Phoenix New Times may receive a portion of the revenue if you make a purchase.