Last active
December 21, 2016 19:23
-
-
Save tiffwu/ecf728ac54d04f7511315c6fc756fe45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="tl_ad"></div> | |
<script> | |
try { | |
var inv_code = ""; | |
var settings = { domain: "%%PATTERN:domain%%", ctype: "%%PATTERN:ctype%%", plat: "%%PATTERN:plat%%", id: "%%PATTERN:id%%", ch: "%%PATTERN:ch%%", ptype: "%%PATTERN:ptype%%"}; | |
var pos_map = [ | |
{ pos: { domain: "www.cookinglight.com", ctype: "homepage", plat: "desktop"}, inv_code: "cookinglight_main_feed" }, | |
{ pos: { domain: "www.cookinglight.com", ctype: "channel", plat: "desktop"}, inv_code: "cookinglight_sectionfront_feed" }, | |
{ pos: { domain: "www.cookinglight.com", ctype: "gallery"}, inv_code: "cookinglight_gallery_relatedlinks" }, | |
{ pos: { domain: "www.cookinglight.com", ctype: "homepage", plat: "mobile"}, inv_code: "cookinglight_main_feed_mobile" }, | |
{ pos: { domain: "www.cookinglight.com", ctype: "channel", plat: "mobile"}, inv_code: "cookinglight_sectionfront_feed_mobile" } | |
]; | |
for (var i = 0; i < pos_map.length; ++i) { | |
for (var key in pos_map[i].pos) { | |
if (pos_map[i].pos[key] == settings[key]){ | |
inv_code = pos_map[i].inv_code; | |
} else { | |
inv_code = ""; | |
break; | |
} | |
} | |
if (inv_code != "") break; | |
} | |
if (!inv_code) { | |
throw new Error('no inv_code mapped to this ad slot'); | |
} | |
var prot = ""; | |
if (top.window.location.protocol == "https:") { | |
prot = "https:"; | |
} | |
var tl_script = document.createElement("script"); | |
var tl_src = prot + "//ib.3lift.com/ttj?inv_code=" + inv_code; | |
tl_script.src = tl_src; | |
document.getElementById("tl_ad").appendChild(tl_script); | |
} catch (e) { | |
var p = document.createElement('IMG'); | |
var ref = encodeURIComponent(document.URL); | |
p.src = "//eb2.3lift.com/sce?block=timeinc_js"+"&ref="+ref+"&lvl=2&inv_code="+inv_code+"&e="+encodeURIComponent(e); | |
p.width = 0; | |
p.height = 0; | |
document.body.appendChild(p); | |
} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="tl_ad"></div> | |
<script> | |
try { | |
var inv_code = ""; | |
var settings = { domain: "%%PATTERN:domain%%", ctype: "%%PATTERN:ctype%%", ch: "%%PATTERN:ch%%" }; | |
var pos_map = [ | |
{ pos: { domain: "www.ew.com", ctype: "homepage" }, inv_code: "EW_main_feed" }, | |
{ pos: { domain: "www.ew.com", ctype: "main", ch: "movies" }, inv_code: "ew_sectionfront_movies" }, | |
{ pos: { domain: "www.ew.com", ctype: "main", ch: "books" }, inv_code: "ew_sectionfront_books" }, | |
{ pos: { domain: "www.ew.com", ctype: "main", ch: "tv" }, inv_code: "ew_sectionfront_tv" }, | |
{ pos: { domain: "www.ew.com", ctype: "main", ch: "tv-recaps" }, inv_code: "ew_sectionfront_tv_recaps" }, | |
{ pos: { domain: "www.ew.com", ctype: "main", ch: "theater" }, inv_code: "ew_sectionfront_theater" }, | |
{ pos: { domain: "www.ew.com", ctype: "main", ch: "music" }, inv_code: "ew_sectionfront_music" }, | |
{ pos: { domain: "www.ew.com", ctype: "article" }, inv_code: "EW_article_sub" } | |
]; | |
for (var i = 0; i < pos_map.length; ++i) { | |
for (var key in pos_map[i].pos) { | |
if (pos_map[i].pos[key] == settings[key]){ | |
inv_code = pos_map[i].inv_code; | |
} else { | |
inv_code = ""; | |
break; | |
} | |
} | |
if (inv_code != "") break; | |
} | |
if (!inv_code) { | |
throw new Error('no inv_code mapped to this ad slot'); | |
} | |
var prot = ""; | |
if (top.window.location.protocol == "https:") { | |
prot = "https:"; | |
} | |
var tl_script = document.createElement("script"); | |
var tl_src = prot + "//ib.3lift.com/ttj?inv_code=" + inv_code; | |
tl_script.src = tl_src; | |
document.getElementById("tl_ad").appendChild(tl_script); | |
} catch (e) { | |
var p = document.createElement('IMG'); | |
var ref = encodeURIComponent(document.URL); | |
p.src = "//eb2.3lift.com/sce?block=timeinc_js"+"&ref="+ref+"&lvl=2&inv_code="+inv_code+"&e="+encodeURIComponent(e); | |
p.width = 0; | |
p.height = 0; | |
document.body.appendChild(p); | |
} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="tl_ad"></div> | |
<script> | |
try { | |
var inv_code = ""; | |
var settings = { domain: "%%PATTERN:domain%%", ctype: "%%PATTERN:ctype%%", plat: "%%PATTERN:plat%%", id: "%%PATTERN:id%%", ch: "%%PATTERN:ch%%", ptype: "%%PATTERN:ptype%%"}; | |
var pos_map = [ | |
{ pos: { domain: "www.health.com", ctype: "Homepage"}, inv_code: "health_main_feed" }, | |
{ pos: { domain: "www.health.com", ctype: "channel"}, inv_code: "health_sectionfront_feed" }, | |
{ pos: { domain: "www.health.com", ctype: "Gallery"}, inv_code: "health_gallery_more_feed" } | |
]; | |
for (var i = 0; i < pos_map.length; ++i) { | |
for (var key in pos_map[i].pos) { | |
if (pos_map[i].pos[key] == settings[key]){ | |
inv_code = pos_map[i].inv_code; | |
} else { | |
inv_code = ""; | |
break; | |
} | |
} | |
if (inv_code != "") break; | |
} | |
if (!inv_code) { | |
throw new Error('no inv_code mapped to this ad slot'); | |
} | |
var prot = ""; | |
if (top.window.location.protocol == "https:") { | |
prot = "https:"; | |
} | |
var tl_script = document.createElement("script"); | |
var tl_src = prot + "//ib.3lift.com/ttj?inv_code=" + inv_code; | |
tl_script.src = tl_src; | |
document.getElementById("tl_ad").appendChild(tl_script); | |
} catch (e) { | |
var p = document.createElement('IMG'); | |
var ref = encodeURIComponent(document.URL); | |
p.src = "//eb2.3lift.com/sce?block=timeinc_js"+"&ref="+ref+"&lvl=2&inv_code="+inv_code+"&e="+encodeURIComponent(e); | |
p.width = 0; | |
p.height = 0; | |
document.body.appendChild(p); | |
} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="tl_ad"></div> | |
<script> | |
try { | |
var inv_code = ""; | |
var settings = { domain: "%%PATTERN:domain%%", ctype: "%%PATTERN:ctype%%", plat: "%%PATTERN:plat%%", id: "%%PATTERN:id%%", ch: "%%PATTERN:ch%%", ptype: "%%PATTERN:ptype%%"}; | |
var pos_map = [ | |
{ pos: { domain: "www.myrecipes.com", ctype: "recipe", plat: "desktop"}, inv_code: "myrecipes_recipe_morerecipes" }, | |
{ pos: { domain: "www.myrecipes.com", ctype: "topicpagechild", plat: "desktop"}, inv_code: "myrecipes_topic_feed" }, | |
{ pos: { domain: "www.myrecipes.com", ptype: "channel", plat: "desktop"}, inv_code: "myrecipes_sectionfront_feed" } | |
]; | |
for (var i = 0; i < pos_map.length; ++i) { | |
for (var key in pos_map[i].pos) { | |
if (pos_map[i].pos[key] == settings[key]){ | |
inv_code = pos_map[i].inv_code; | |
} else { | |
inv_code = ""; | |
break; | |
} | |
} | |
if (inv_code != "") break; | |
} | |
if (!inv_code) { | |
throw new Error('no inv_code mapped to this ad slot'); | |
} | |
var prot = ""; | |
if (top.window.location.protocol == "https:") { | |
prot = "https:"; | |
} | |
var tl_script = document.createElement("script"); | |
var tl_src = prot + "//ib.3lift.com/ttj?inv_code=" + inv_code; | |
tl_script.src = tl_src; | |
document.getElementById("tl_ad").appendChild(tl_script); | |
} catch (e) { | |
var p = document.createElement('IMG'); | |
var ref = encodeURIComponent(document.URL); | |
p.src = "//eb2.3lift.com/sce?block=timeinc_js"+"&ref="+ref+"&lvl=2&inv_code="+inv_code+"&e="+encodeURIComponent(e); | |
p.width = 0; | |
p.height = 0; | |
document.body.appendChild(p); | |
} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="tl_ad"></div> | |
<script> | |
try { | |
var inv_code = ""; | |
var settings = { domain: "%%PATTERN:domain%%", ctype: "%%PATTERN:ctype%%", plat: "%%PATTERN:plat%%", id: "%%PATTERN:id%%", ch: "%%PATTERN:ch%%", ptype: "%%PATTERN:ptype%%"}; | |
var pos_map = [ | |
{ pos: { domain: "people.com", ctype: "homepage" }, inv_code: "people_main_latestnews_feed" }, | |
{ pos: { domain: "people.com", ctype: "main" }, inv_code: "people_sectionfront_more_feed" }, | |
{ pos: { domain: "people.com", ctype: "article" }, inv_code: "people_article_more_feed" } | |
]; | |
for (var i = 0; i < pos_map.length; ++i) { | |
for (var key in pos_map[i].pos) { | |
if (pos_map[i].pos[key] == settings[key]){ | |
inv_code = pos_map[i].inv_code; | |
} else { | |
inv_code = ""; | |
break; | |
} | |
} | |
if (inv_code != "") break; | |
} | |
if (!inv_code) { | |
throw new Error('no inv_code mapped to this ad slot'); | |
} | |
var prot = ""; | |
if (top.window.location.protocol == "https:") { | |
prot = "https:"; | |
} | |
var tl_script = document.createElement("script"); | |
var tl_src = prot + "//ib.3lift.com/ttj?inv_code=" + inv_code; | |
tl_script.src = tl_src; | |
document.getElementById("tl_ad").appendChild(tl_script); | |
} catch (e) { | |
var p = document.createElement('IMG'); | |
var ref = encodeURIComponent(document.URL); | |
p.src = "//eb2.3lift.com/sce?block=timeinc_js"+"&ref="+ref+"&lvl=2&inv_code="+inv_code+"&e="+encodeURIComponent(e); | |
p.width = 0; | |
p.height = 0; | |
document.body.appendChild(p); | |
} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="tl_ad"></div> | |
<script> | |
try { | |
var inv_code = ""; | |
var settings = { domain: "%%PATTERN:domain%%", ctype: "%%PATTERN:ctype%%", plat: "%%PATTERN:plat%%", id: "%%PATTERN:id%%", ch: "%%PATTERN:ch%%", ptype: "%%PATTERN:ptype%%"}; | |
var pos_map = [ | |
{ pos: { domain: "www.realsimple.com", ch: "homepage"}, inv_code: "realsimple_main_feed" }, | |
{ pos: { domain: "www.realsimple.com", ctype: "channel"}, inv_code: "realsimple_sectionfront_feed" }, | |
{ pos: { domain: "www.realsimple.com", ctype: "subchannel"}, inv_code: "realsimple_subchannel_feed" }, | |
{ pos: { domain: "www.realsimple.com", ctype: "package"}, inv_code: "realsimple_packages_feed" }, | |
{ pos: { domain: "www.realsimple.com", ctype: "article"}, inv_code: "realsimple_article_mid" } | |
]; | |
for (var i = 0; i < pos_map.length; ++i) { | |
for (var key in pos_map[i].pos) { | |
if (pos_map[i].pos[key] == settings[key]){ | |
inv_code = pos_map[i].inv_code; | |
} else { | |
inv_code = ""; | |
break; | |
} | |
} | |
if (inv_code != "") break; | |
} | |
if (!inv_code) { | |
throw new Error('no inv_code mapped to this ad slot'); | |
} | |
var prot = ""; | |
if (top.window.location.protocol == "https:") { | |
prot = "https:"; | |
} | |
var tl_script = document.createElement("script"); | |
var tl_src = prot + "//ib.3lift.com/ttj?inv_code=" + inv_code; | |
tl_script.src = tl_src; | |
document.getElementById("tl_ad").appendChild(tl_script); | |
} catch (e) { | |
var p = document.createElement('IMG'); | |
var ref = encodeURIComponent(document.URL); | |
p.src = "//eb2.3lift.com/sce?block=timeinc_js"+"&ref="+ref+"&lvl=2&inv_code="+inv_code+"&e="+encodeURIComponent(e); | |
p.width = 0; | |
p.height = 0; | |
document.body.appendChild(p); | |
} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="tl_ad"></div> | |
<script> | |
try { | |
var inv_code = ""; | |
var settings = { domain: "%%PATTERN:domain%%", ctype: "%%PATTERN:ctype%%", plat: "%%PATTERN:plat%%", id: "%%PATTERN:id%%", ch: "%%PATTERN:ch%%", ptype: "%%PATTERN:ptype%%"}; | |
var pos_map = [ | |
{ pos: { domain: "www.southernliving.com", ctype: "homepage"}, inv_code: "southernliving_main_feed" }, | |
{ pos: { domain: "www.southernliving.com", ctype: "channel"}, inv_code: "southernliving_sectionfront_trending" }, | |
{ pos: { domain: "www.southernliving.com", ctype: "gallery"}, inv_code: "southernliving_gallery_feed" } | |
]; | |
for (var i = 0; i < pos_map.length; ++i) { | |
for (var key in pos_map[i].pos) { | |
if (pos_map[i].pos[key] == settings[key]){ | |
inv_code = pos_map[i].inv_code; | |
} else { | |
inv_code = ""; | |
break; | |
} | |
} | |
if (inv_code != "") break; | |
} | |
if (!inv_code) { | |
throw new Error('no inv_code mapped to this ad slot'); | |
} | |
var prot = ""; | |
if (top.window.location.protocol == "https:") { | |
prot = "https:"; | |
} | |
var tl_script = document.createElement("script"); | |
var tl_src = prot + "//ib.3lift.com/ttj?inv_code=" + inv_code; | |
tl_script.src = tl_src; | |
document.getElementById("tl_ad").appendChild(tl_script); | |
} catch (e) { | |
var p = document.createElement('IMG'); | |
var ref = encodeURIComponent(document.URL); | |
p.src = "//eb2.3lift.com/sce?block=timeinc_js"+"&ref="+ref+"&lvl=2&inv_code="+inv_code+"&e="+encodeURIComponent(e); | |
p.width = 0; | |
p.height = 0; | |
document.body.appendChild(p); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment