1 line
16 KiB
Plaintext
1 line
16 KiB
Plaintext
(()=>{"use strict";var t=function(){try{if(!("localStorage"in window)||null===window.localStorage)return!1;try{localStorage.setItem("_admstorage",""),localStorage.removeItem("_admstorage")}catch(t){return!1}return!0}catch(t){return!1}}(),e={version:"1.0.0",paramFlash:{},lcStorage:{timestamp:"timestamp_",get_exprises:function(t,e,a,o){return e=(t+="").indexOf(e,a),a=t.length-1,-1!=e?(-1==(o=t.indexOf(o,e))&&(o=a),t.substring(e,o)):""},get_item:function(t,e){var a=localStorage.getItem(t),o=(new Date).getTime(),n=this.timestamp;if(""==a||null==a)return"";if(-1==a.indexOf("timestamp_"))return a;var i,r="_azs"==t?";":",";return""==(i=(i=this.get_exprises(a,n,0,r)).replace(n,""))||isNaN(parseInt(i))||parseInt(i)<o?"":a=a.replace(n+i+r,"")}},getDomainGuid:function(){return window.__admloadPageIdc||window.__admloadPageRdIdc||this.createDomainGuid()},makeDomainGuid:function(){function t(t){return void 0!==t&&t&&2==t?Math.floor(256*(1+Math.random())).toString(16).substring(1):Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return"01"+Math.floor((new Date).getTime()/1e3).toString(16)+t(2)+t(4)+t(4)+t(4)+t(4)+t(4)},createDomainGuid:function(){var e,a="";return e=this.getCookie("__uidac"),t&&""==(a=localStorage.__uidac||e)&&(a=this.makeDomainGuid(),localStorage.__uidac=a,window.__admloadPageIdc=a,window.__admloadPageRdIdc=a,this.setCookie("__uidac",a,2e3,"/","."+document.domain)),""==a&&(a=this.makeDomainGuid(),this.setCookie("__uidac",a,2e3,"/","."+document.domain),window.__admloadPageIdc=a,window.__admloadPageRdIdc=a),a},setCookie:function(t,e,a,o,n,i){for(var r in(new Date).getTime(),"/",a=0==a||""==a?new Date(+new Date+63072e7).toGMTString():new Date(+new Date+864e5*a).toGMTString(),t=[t+"="+escape(e)],a={expires:a,path:"/",domain:n})a[r]&&t.push(r+"="+a[r]);return i&&t.push("secure"),document.cookie=t.join(";"),!0},getCookie:function(t){let e=t+"=",a=window.unescape(document.cookie).split(";");for(let t=0;t<a.length;t++){let o=a[t];for(;" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(e))return o.substring(e.length,o.length)}return""},get:function(e){if("__uidac"==e)return this.getDomainGuid();var a="",o=e;if("__ui"!=e&&"__uid"!=e&&"__create"!=e||(o=e,e="__uif"),"__uif"==e&&(t&&null!=(a=localStorage.__uif)&&""!=a||(a=this.getCookie("__uif")),""!=a)){var n=new RegExp(o+":([0-9+%C]+)").exec(a);if(n&&n.length>1)return(a=n[1])||""}if(t){var i=localStorage[o];i&&""!=i&&(a=i.replace(/timestamp_[0-9]+?,/g,""))}return""==a&&(a=this.getCookie(o)),a||""},getParam:function(){try{var t=this.get("__create")||this.getCookie("__create"),e=this.get("__uid")||this.getCookie("__uid");return 30<e.length&&(e=""),""==e&&(t=""),11<t.length&&""!=e&&(t=Math.floor((new Date).getTime()/1e3)),"&ce=1&lc="+this.get("__RC")+"&cr="+t+"&ui="+e+"&dg="+(this.get("__uidac")||this.getCookie("__uidac"))}catch(t){return""}},getInfoParam:function(){return`&ce=1&guie=1&ui=${this.get("__uid")}&cr=${this.get("__create")}&dg=${this.get("__uidac")||this.getCookie("__uidac")}`}};function a(t,e,a){if(0==e||void 0===e)return t;var o=/https:\/\/[^\/]+\//i.exec(t),n="";return o?(n=o[0],-1!=t.indexOf(n)&&(t=t.replace(n,"")),String.format=function(t){if(arguments.length<=1)return t;for(var e=arguments.length-2,a=0;a<=e;a++)t=t.replace(new RegExp("\\{"+a+"\\}","gi"),arguments[a+1]);return t},a?String.format("{0}zoom/{1}_{2}/{3}",n,e,a,t.trimStart("/")):String.format("{0}thumb_w/{1}/{3}",n,e,a,t.trimStart("/"))):t}var o=function(t){return/^https?:\/\/.+\.(jpg|jpeg|png|webp|avif|gif|svg)$/.test(t)};var n={url:"https://rec.aiservice.vn/recengine/prod/admicro/recgate/api/v1/recommender?customerid=c5a35200a455caf3&boxid=348",limitPage:"1",limitItem:"8",divId:"thanhnien_popup_web",website:"thanhnien.vn",dataMarkedZoneid:"tn_popup_readmore",regex:"%%regex%%",template:""};function i(t){var i=e.getDomainGuid(),r=function(){var t="";if(""==(t=e.get("__uid"))&&(t=e.getCookie("__uif")),-1!=t.indexOf("_")&&t){var a=/__uid:([0-9]+)/.exec(t);a&&(t=a[1])}return t}(),c=window.relatedNews&&window.relatedNews.popupUrlData&&window.relatedNews.popupUrlData()||document.URL,d=/([\d]+).htm|([\d]+)rf[\d]+.htm/.exec(c+""),l="";d&&(l=d[1]?d[1]:d[2]);var m=document.querySelector.bind(document),s=-1!=(document.domain+"").indexOf("cnnd.vn")?"/dev":"/prod",f=n.url;"/dev"==s&&(f=f.replace("/prod/","/dev/"));var g,p,u,h;f+="&dg=".concat(i,"&extr=").concat(function(t){var a={cr:e.get("__create")||e.getCookie("__create")||"",lc:e.get("__RC")||e.getCookie("__RC")||"",pglid:window.__admPageloadid||window.__m_admPageloadid||"",type:t},o="";try{o=encodeURIComponent(window.btoa(JSON.stringify(a)))}catch(t){}return o}("pc"),"&uid=&itemid=").concat(l,"&deviceid=").concat(r,"&template=2&limit=").concat(n.limitItem);g=f,p=function(e){var i=JSON.parse(e);if(!i||!i.recommend||0==i.recommend.length)return m("".concat(t)).getAttribute("data-callback-error")&&window[m("".concat(t)).getAttribute("data-callback-error")](),!1;var r,c,d,s=i.algid,f=i.requestid,g=i.boxid;d=n.divId,r='@font-face { font-family: "Merriweather"; font-weight: normal; font-style: normal; src: url("https://static.mediacdn.vn/fonts/Merriweather-Regular.woff2") format("woff2"), url("https://static.mediacdn.vn/fonts/Merriweather-Regular.woff") format("woff"), url("https://static.mediacdn.vn/fonts/Merriweather-Regular.ttf") format("truetype"), url("https://static.mediacdn.vn/fonts/Merriweather-Regular.eot") format("embedded-opentype"); } @font-face { font-family: "Merriweather"; font-weight: bold; font-style: normal; src: url("https://static.mediacdn.vn/fonts/Merriweather-Bold.woff2") format("woff2"), url("https://static.mediacdn.vn/fonts/Merriweather-Bold.woff") format("woff"), url("https://static.mediacdn.vn/fonts/Merriweather-Bold.ttf") format("truetype"), url("https://static.mediacdn.vn/fonts/Merriweather-Bold.eot") format("embedded-opentype"); } @font-face { font-family: "Merriweather"; font-weight: 900; font-style: normal; src: url("https://static.mediacdn.vn/fonts/Merriweather-Black.woff2") format("woff2"), url("https://static.mediacdn.vn/fonts/Merriweather-Black.woff") format("woff"), url("https://static.mediacdn.vn/fonts/Merriweather-Black.ttf") format("truetype"), url("https://static.mediacdn.vn/fonts/Merriweather-Black.eot") format("embedded-opentype"); } @font-face { font-family: \'Inter\'; font-style: normal; font-weight: 400; src: url("https://static.mediacdn.vn/fonts/Inter-Regular.woff2") format("woff2"), url("https://static.mediacdn.vn/fonts/Inter-Regular.woff") format("woff"), url("https://static.mediacdn.vn/fonts/Inter-Regular.ttf") format("truetype"), url("https://static.mediacdn.vn/fonts/Inter-Regular.eot") format("embedded-opentype"); } @font-face { font-family: \'Inter\'; font-style: normal; font-weight: 500; src: url("https://static.mediacdn.vn/fonts/Inter-Medium.woff2") format("woff2"), url("https://static.mediacdn.vn/fonts/Inter-Medium.woff") format("woff"), url("https://static.mediacdn.vn/fonts/Inter-Medium.ttf") format("truetype"), url("https://static.mediacdn.vn/fonts/Inter-Medium.eot") format("embedded-opentype"); } @font-face { font-family: \'Inter\'; font-style: normal; font-weight: 600; src: url("https://static.mediacdn.vn/fonts/Inter-SemiBold.woff2") format("woff2"), url("https://static.mediacdn.vn/fonts/Inter-SemiBold.woff") format("woff"), url("https://static.mediacdn.vn/fonts/Inter-SemiBold.ttf") format("truetype"), url("https://static.mediacdn.vn/fonts/Inter-SemiBold.eot") format("embedded-opentype"); } @font-face { font-family: \'Inter\'; font-style: normal; font-weight: 700; src: url("https://static.mediacdn.vn/fonts/Inter-Bold.woff2") format("woff2"), url("https://static.mediacdn.vn/fonts/Inter-Bold.woff") format("woff"), url("https://static.mediacdn.vn/fonts/Inter-Bold.ttf") format("truetype"), url("https://static.mediacdn.vn/fonts/Inter-Bold.eot") format("embedded-opentype"); } @font-face { font-family: \'Inter\'; font-style: normal; font-weight: 800; src: url("https://static.mediacdn.vn/fonts/Inter-Black.woff2") format("woff2"), url("https://static.mediacdn.vn/fonts/Inter-Black.woff") format("woff"), url("https://static.mediacdn.vn/fonts/Inter-Black.ttf") format("truetype"), url("https://static.mediacdn.vn/fonts/Inter-Black.eot") format("embedded-opentype"); } @font-face { font-family: \'Playfair Display\'; font-style: normal; font-weight: 400; src: url("https://static.mediacdn.vn/fonts/PlayfairDisplay-Regular.ttf") format("truetype"); } @font-face { font-family: \'Playfair Display\'; font-style: normal; font-weight: 500; src: url("https://static.mediacdn.vn/fonts/PlayfairDisplay-Medium.ttf") format("truetype"); } @font-face { font-family: \'Roboto\'; font-style: normal; font-weight: 400; src: url("https://static.mediacdn.vn/fonts/Roboto-Regular.woff2") format("woff2"), url("https://static.mediacdn.vn/fonts/Roboto-Regular.woff") format("woff"), url("https://static.mediacdn.vn/fonts/Roboto-Regular.ttf") format("truetype"), url("https://static.mediacdn.vn/fonts/Roboto-Regular.eot") format("embedded-opentype"); } #'.concat(d," .docthemve{ font-family: 'Merriweather'; font-size: 14px; line-height: 20px; color: #333; } #").concat(d,' .docthemve .box-category[data-layout="33"] .box-category-top { margin-bottom: 16px; text-align: left!important; } #').concat(d,' .docthemve .box-category[data-layout="33"] .box-category-top .box-category-title { display: inline-block; font-weight: 700; font-size: 17px; line-height: 26px; color: #8e8e8e; border-bottom: 1px solid #0098D1; } #').concat(d,' .docthemve .box-category[data-layout="33"] .box-category-top .box-category-title strong { color: #292929; } #').concat(d,' .docthemve .box-category[data-layout="33"] .box-category-middle { display: flex; flex-wrap: wrap; } #').concat(d,' .docthemve .box-category[data-layout="33"] .box-category-middle .box-category-item { width: calc(25% - 24px); margin-right: 32px; margin-bottom: 30px; } #').concat(d,' .docthemve .box-category[data-layout="33"] .box-category-middle .box-category-item:nth-child(4n){ margin-right: 0; } #').concat(d,' .docthemve .box-category[data-layout="33"] .box-category-middle .box-category-item .box-category-link-with-avatar { margin-bottom: 8px; } #').concat(d," .docthemve .box-category .box-category-link-with-avatar { position: relative; } #").concat(d," .docthemve p, #").concat(d," .docthemve h1,#").concat(d," .docthemve h2,#").concat(d," .docthemve h3 { margin: 0; } #").concat(d," .docthemve .img-resize { display: block; position: relative; height: max-content; } #").concat(d," .docthemve a { background-color: transparent; text-decoration: none; color: #666666; outline: none; } #").concat(d,' .docthemve .img-resize:before { padding-bottom: 62.5%; content: ""; display: block; } .box-category .box-category-link-with-avatar img { width: 100%; height: 100%; object-fit: cover; } #').concat(d," .docthemve img { width: 100%; max-width: 100%; display: block; image-rendering: -webkit-optimize-contrast; color: transparent; border-style: none; } #").concat(d," .docthemve .img-resize img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; bottom: 0; margin: auto; background-size: cover; background-position: center; object-fit: cover; } #").concat(d,' .docthemve .box-category[data-layout="33"] .box-category-middle .box-category-item .box-category-link-title { font-weight: 700; font-size: 17px; line-height: 26px; color: #292929; } #').concat(d,' .docthemve .box-category[data-layout="33"] .box-category-middle .box-category-item .box-related { margin-top: 13px; } #').concat(d,' .docthemve .box-category[data-layout="33"] .box-category-middle .box-category-item .box-related .box-related-item { display: flex; padding: 16px 0; border-top: 1px solid #EBEBEB; } #').concat(d,' .docthemve .box-category[data-layout="33"] .box-category-middle .box-category-item .box-related .box-related-item .box-category-link-with-avatar { width: 81px; margin-right: 16px; } #').concat(d,' .docthemve .box-category[data-layout="33"] .box-category-middle .box-category-item .box-related .box-related-item .box-category-content { width: calc(100% - 97px); } #').concat(d,' .docthemve .box-category[data-layout="33"] .box-category-middle .box-category-item .box-related .box-related-item .box-category-link-title { font-weight: 400; font-size: 13px; line-height: 20px; color: #292929; } '),(c=document.createElement("style")).type="text/css",document.getElementsByTagName("head")[0].appendChild(c),c.styleSheet?c.styleSheet.cssText=r:c.appendChild(document.createTextNode(r));for(var p="",u=" "+(i.tags?i.tags.join(", "):""),h=i.recommend.length>=parseInt(n.limitItem)?parseInt(n.limitItem):i.recommend.length,y=0;y<h;y++){var w=i.recommend[y];null==w.news_type&&(w.news_type="0"),null==w.DisplayInSlide&&(w.DisplayInSlide="0"),w.url=w.url.replace("http://"+n.website,""),w.url=w.url.replace("https://"+n.website,"");var v=w.url;w.url=w.url.replace(".htm","rf".concat(l,".htm"));var b="",x="";1e3==w.type&&(b="show-popup visit-popup",x='ispopup="1" data-popup-url="'.concat(w.url,'"')),w.image=w.image.replace("thanhnien.qltns.mediacdn.vn","images2.thanhnien.vn"),1013!=w.type&&(w.image=w.image.replace("thanhnien.mediacdn.vn","images2.thanhnien.vn")),w.image=w.image.replace("image.thanhnien.vn","images2.thanhnien.vn"),w.image=a(w.image,256,160),!1===o(w.image)&&(w.image="https://static.mediacdn.vn/thanhnien.vn/image/no-thumb.jpg"),p+='<div class="box-category-item" data-id="'.concat(w.id,'"><a data-url="').concat(v,'" class="box-category-link-with-avatar img-resize ').concat(b,'" ').concat(x,' data-popup-url="').concat(w.url,'" href="').concat(w.url,'" title="').concat(w.title,'" data-id="').concat(w.id,'" data-type="').concat(w.type,'" data-newstypepopup="').concat(w.news_type,'" data-newstype="').concat(w.DisplayInSlide,'"><img data-type="').concat(w.type,'" data-newstypepopup="').concat(w.news_type,'" data-newstype="').concat(w.DisplayInSlide,'" src="').concat(w.image,'" alt="').concat(w.title,'" class="box-category-avatar" /></a><div class="box-category-content"><h3 class="box-title-text"><a data-url="').concat(v,'" data-type="').concat(w.type,'" data-linktype="newsdetail" data-id="').concat(w.id,'" class="box-category-link-title ').concat(b,'" ').concat(x,' data-popup-url="').concat(w.url,'" href="').concat(w.url,'" title="').concat(w.title,'" data-newstypepopup="').concat(w.news_type,'" data-newstype="').concat(w.DisplayInSlide,'">').concat(w.title,"</a></h3></div></div>")}m(t).innerHTML='<div class="docthemve"><div class="detail__foru-flex"><div class="box-category box-border-top" data-layout="33" data-key="keycd"><div class="box-category-top"><h2 class="title-category"><a class="box-category-title">Đọc thêm về:<strong>'.concat(u,'</strong></a></h2></div><div class="box-category-middle" id="relasedPopup" data-marked-zoneid="').concat(n.dataMarkedZoneid,"_boxid_").concat(g,"_algid_").concat(s,"_rid_").concat(f,'">').concat(p,"</div></div></div></div>");try{relatedNews("#".concat(n.divId," .box-category-item .box-category-link-title ,#").concat(n.divId," .box-category-item .box-category-link-with-avatar"))}catch(c){}try{relatedNews.initReadMorePopup("#relasedPopup")}catch(c){}window.setTimeout((function(){try{window.initLightBoxDom()}catch(t){}}),1e3)},(h=new XMLHttpRequest).onreadystatechange=function(){4==h.readyState&&(200==h.status?p&&p(h.responseText):u&&u(h))},h.open("GET",g,!0),h.send(null)}"string"==typeof n&&(n={url:"https://rec.aiservice.vn/recengine/prod/thanhnien/recgate/api/v1/recommender?",divId:"thanhnien_popup_web",website:"thanhnien.vn",dataMarkedZoneid:"tn_popup_readmore",regex:"/([d]+).htm|([d]+)rf[d]+.htm/",limitItem:"8",template:"2"}),window.aiServiceNewsReadMorePopup=i,function(){var t=document.querySelector.bind(document)("#".concat(n.divId));try{var e=t.getAttribute("data-no-init")}catch(t){}!t||e&&"true"==e||i("#".concat(n.divId))}()})(); |