// Execute the base code baseCode();// Execute the ad code adcode();// Execute the WXC code wxcCode();

Source of the article: Sohu Entertainment on 2024-05-24 10:39:51 – The news is taken from major news media, and the content of the news does not represent the position of this website!

Sohu Entertainment News: On May 24, Wu Jing attended a cultural forum with long hair, a beard and a baseball cap. His look was eye-catching, subverting his previous classic image and full of hormones.

Wu Jing’s long hair transforms him into a charming uncle.

Wu Jing’s long hair adds a bit of mystery.

Wu Jing wears a headband around his neck, looking very fashionable.

Wu Jing’s long hair style is refreshing and not greasy.

–>

`,
“script”:[{“type”:”text/javascript”,”src”:”//widgets.outbrain.com/outbrain.js”,”async”:”async”}]
}
, “gg_rightside”: {
“html”:`

advertisement

advertisement

advertisement

`,
“script”:[{“type”:”text/javascript”,”src”:”//widgets.outbrain.com/outbrain.js”,”async”:”async”}]
}
, “gg_duturandom”: {
“html”:`

`,
“script”:[]
}
, “gg_square”: {
“html”:“,
“script”:[]
}
, “gg_topbanner”: {
“html”:`
`,
“script”:[]
}
, “gg_middlesquare”: {
“html”:`
`,
“script”:[]
}
, “gg_dutu”: {
“html”:`

`,
“script”:[]
}
, “gg_botline”: {
“html”:“,
“script”:[]
}
, “gg_dututop”: {
“html”:`

`,
“script”:[]
}
, “gg_shipintop”: {
“html”:`
`,
“script”:[]
}
, “gg_inContent”: {
“html”:`

`,
“script”:[]
}
, “gg_shipinrandom”: {
“html”:“,
“script”:[]
}
, “gg_sideSticky”: {
“html”:`

`,
“script”:[]
}
, “gg_bottombanner”: {
“html”:`
`,
“script”:[{“type”:”text/javascript”,”src”:”//widgets.outbrain.com/outbrain.js”,”async”:”async”}]
}
, “gg_marquee”: {
“html”:“,
“script”:[]
}
}
const adEnv={
“gg_header”: {
“html”:“,
“script”:[{“type”:”text/javascript”,”exec”:` var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; var pbjs = pbjs || {}; pbjs.que = pbjs.que || []; `},{“type”:”text/javascript”,”src”:”
}

}
const wxcEnv = {
“base”:{
“exe”:[],
“src”:[
{“src”: “/news/js/recommendednews.js”,”defer”:”true”},
{“src”:”/js/wxcFunc.js”,”defer”:”true”}
]
},
“func”:{
“exe”:[
//展示评论
‘function showMoreComments(){let n = 0;for(let i=0;i2){dom.hide();}}$(“#showallcomment”).show();$(“#showlesscomment”).hide();};’,
],
“src”:[
//图片,搜索,QR code
{“src”: “/news/js/view.js?v=05132024”},
//计数器
{“src”:”//count.wenxuecity.com/service/count/script/do.php?type=news&id=258398&n=0&out=jsval”,”defer”:”true”},

]
}
}

function wxcCode(){
wxcEnv.base.exe.forEach(x=>{
let tag = buildAdcode(x);
document.head.append(tag);
})

wxcEnv.base.src.forEach(src => {
let tag = buildSrc(src)
document.head.append(tag);
});

wxcEnv.func.exe.forEach(x=>{
let tag = buildAdcode(x);
document.body.append(tag);
})

wxcEnv.func.src.forEach(src => {
let tag = buildSrc(src)
document.body.append(tag);
});
}
function adcode(){
let adkey = Object.keys(ads);
adkey.forEach(x=>{
let code = ads[x].html;
let div = document.getElementById(x);
if(div)div.innerHTML = code;
ads[x].script.forEach(s=>{
if(Object.keys(s).indexOf(‘src’)===-1){
let tag = buildAdcode(s.exec);
document.body.append(tag);
}else{
let tag = buildSrc(s);
document.body.append(tag);
}
})
})
}
function baseCode(){
let baseKeys = Object.keys(adEnv);
baseKeys.forEach(x=>{
adEnv[x].script.forEach(s=>{
if(Object.keys(s).indexOf(‘src’)===-1){
let tag = buildAdcode(s.exec);
document.head.append(tag);
}else{
let tag = buildSrc(s);
document.head.append(tag);
}
})
})
}

function buildAdcode(script){
let tag = document.createElement(‘script’);
tag.innerHTML = script;
return tag;
}
function buildSrc(obj){
let keys = Object.keys(obj);
let tag = document.createElement(“script”);
keys.forEach(key=>{
tag.setAttribute(key, obj[key]);
})
return tag ;
}
2024-05-24 17:41:22
#Jings #photo #shows #big #change #image #long #hair #beard #full #hormones #WenxueCity

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *