var _pnq = _pnq || [];
_pnq.push(['setId', '1']);
// New Code
_pnq.push(['addModalReadyCallback', function (iframeDocument) {
var div = document.createElement('div');
// "­" refers to http://www.thecssninja.com/javascript/noscope
div.innerHTML = `
­<style>
.zulily-footer {
margin-top: 16px;
font-size: 14px;
text-align: center;
}
.zulily-footer a {
text-decoration: none;
color: #4767AA;
}
</style>
<div class="zulily-footer">
<a href="/about-ads">about ads</a> |
<a href="/advertise-with-us">advertise on zulily</a> |
<a href="/contact-us">contact us</a> |
<a href="#" onclick="return window.top.adManager.update();">disable ads</a>
</div>`;
iframeDocument.querySelector('#custom-footer').appendChild(div);
}]);
// END of New Code
(function() {
var pnr = document.createElement('script');
pnr.type = 'text/javascript';
pnr.async = true;
pnr.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'report-ads-to.pubnation.com/dist/pnr.js?t=1';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(pnr, s);
})();adManagerinstance should be available on the page where pubnation was loaded.
