/* ControlTag Loader for Webedia 221bdf58-7735-4bcb-9673-a03b459a1a40 */
(function(w, cs) {
if (/Twitter for iPhone/.test(w.navigator.userAgent || '')) {
return;
}
var debugging = /kxdebug/.test(w.location);
var log = function() {
debugging && w.console && w.console.log([].slice.call(arguments).join(' '));
};
var load = function(url, callback) {
log('Loading script from:', url);
var node = w.document.createElement('script');
node.async = true;
node.src = url;
node.onload = node.onreadystatechange = function () {
var state = node.readyState;
if (!callback.done && (!state || /loaded|complete/.test(state))) {
log('Script loaded from:', url);
callback.done = true;
callback();
}
};
var sibling = w.document.getElementsByTagName('script')[0];
sibling.parentNode.insertBefore(node, sibling);
};
var config = {"app":{"name":"krux-scala-config-webservice","version":"3.17.0","schema_version":3},"confid":"KO96Fuv_","context_terms":[],"publisher":{"id":1832,"name":"Webedia","uuid":"221bdf58-7735-4bcb-9673-a03b459a1a40","version_bucket":"stable","version_hash":"da4798c0826a222a4c9afbf2aee6be77"},"params":{"link_header_bidder":false,"site_level_supertag_config":"site","recommend":false,"control_tag_pixel_throttle":100,"fingerprint":false,"user_data_timing":"load","store_realtime_segments":false,"tag_source":false,"link_hb_start_event":"ready","first_party_uid":false,"link_hb_timeout":2000,"link_hb_adserver_subordinate":true,"optimize_realtime_segments":false,"link_hb_adserver":"dfp","target_fingerprint":false,"context_terms":false,"dfp_premium":true,"control_tag_namespace":"webedia"},"prioritized_segments":[],"realtime_segments":[{"id":"qoy2tt1z4","test":["and",["and",["or",["intersects","$page_attr_genre_label2:,",["animation","dessin animé","dessin_anime"]]]]]},{"id":"qeroufkth","test":["and",["and",["or",["contains","$page_attr_movie_label",[]]]]]}],"services":{"userdata":"//cdn.krxd.net/userdata/get","contentConnector":"//connector.krxd.net/content_connector","stats":"//apiservices.krxd.net/stats","optout":"//cdn.krxd.net/userdata/optout/status","event":"//beacon.krxd.net/event.gif","set_optout":"//apiservices.krxd.net/consumer/optout","data":"//beacon.krxd.net/data.gif","link_hb_stats":"//beacon.krxd.net/link_bidder_stats.gif","userData":"//cdn.krxd.net/userdata/get","link_hb_mas":"//link.krxd.net/hb","config":"//cdn.krxd.net/controltag/{{ confid }}.js","social":"//beacon.krxd.net/social.gif","addSegment":"//cdn.krxd.net/userdata/add","pixel":"//beacon.krxd.net/pixel.gif","um":"//apiservices.krxd.net/um","click":"//apiservices.krxd.net/click_tracker/track","stats_export":"//beacon.krxd.net/controltag_stats.gif","cookie":"//beacon.krxd.net/cookie2json","proxy":"//cdn.krxd.net/partnerjs/xdi","is_optout":"//beacon.krxd.net/optout_check","impression":"//beacon.krxd.net/ad_impression.gif","transaction":"//beacon.krxd.net/transaction.gif","log":"//jslog.krxd.net/jslog.gif","set_optin":"//apiservices.krxd.net/consumer/optin","usermatch":"//beacon.krxd.net/usermatch.gif"},"site":{"id":40234,"name":"canalblog.com"},"tags":[{"id":17432,"name":"Cinephile assidu","content":"","target":null,"target_action":"append","timing":"onload","method":"document","internal":false,"template_replacement":true,"criteria":["and",["and",["and",["intersects","$user_segments",["qbx3rc5w7"]]]]]},{"id":17451,"name":"Sticky Synchro","content":"\n ","target":null,"target_action":"append","timing":"onload","method":"document","internal":false,"template_replacement":true,"criteria":[]},{"id":7499,"name":"StickyAds Pixel","content":"","target":null,"target_action":"append","timing":"onload","method":"document","internal":true,"template_replacement":true,"criteria":[]},{"id":7501,"name":"Google User Match","content":"","target":"","target_action":"append","timing":"onload","method":"document","internal":true,"template_replacement":true,"criteria":[]},{"id":7502,"name":"Rubicon User Match","content":"","target":null,"target_action":"append","timing":"onload","method":"document","internal":true,"template_replacement":true,"criteria":[]},{"id":20385,"name":"Bluekai Orange Sync","content":"","target":null,"target_action":"append","timing":"onload","method":"document","internal":false,"template_replacement":true,"criteria":[]},{"id":7359,"name":"Technographic Data provider tag","content":"","target":null,"target_action":"append","timing":"onload","method":"document","internal":true,"template_replacement":true,"criteria":["and",["and",["and",["<=","$frequency",3]]]]},{"id":7360,"name":"Krux Geographic Data provider tag","content":"None","target":null,"target_action":"append","timing":"onload","method":"document","internal":true,"template_replacement":true,"criteria":["and",["and",["and",["<=","$frequency",3]]]]},{"id":7361,"name":"Krux Track Social","content":"","target":null,"target_action":"append","timing":"onload","method":"document","internal":true,"template_replacement":true,"criteria":[]},{"id":19445,"name":"Cookie Sync Tradelab/Wootbox","content":"","target":null,"target_action":"append","timing":"onload","method":"document","internal":false,"template_replacement":true,"criteria":[]},{"id":7580,"name":"Krux Standard DTC","content":"","target":null,"target_action":"append","timing":"onready","method":"document","internal":true,"template_replacement":true,"criteria":[]}],"link":{"adslots":{},"bidders":{}}};
for (var i = 0, tags = config.tags, len = tags.length, tag; (tag = tags[i]); ++i) {
if (String(tag.id) in cs) {
tag.content = cs[tag.id];
}
}
var esiGeo = String(function(){/*
*/}).replace(/^.*\/\*[^{]+|[^}]+\*\/.*$/g, '');
if (esiGeo) {
log('Got a request for:', esiGeo, 'adding geo to config.');
try {
config.geo = w.JSON.parse(esiGeo);
} catch (__) {
log('Unable to parse geo from:', config.geo);
config.geo = {};
}
}
var proxy = (window.Krux && window.Krux.q && window.Krux.q[0] && window.Krux.q[0][0] === 'proxy');
if (!proxy || true) {
load('//cdn.krxd.net/ctjs/controltag.js.da4798c0826a222a4c9afbf2aee6be77', function() {
log('Loaded stable controltag resource');
Krux('config', config);
});
}
})(window, (function() {
var obj = {};
return obj;
})());