1 line
31 KiB
Plaintext
1 line
31 KiB
Plaintext
(()=>{"use strict";function t(t,e,a){var o=new XMLHttpRequest;o.onreadystatechange=function(){4==o.readyState&&(200==o.status?e&&e(o.responseText):a&&a(o))},o.open("GET",t,!0),o.send(null)}var e=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}}(),a={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(),i=this.timestamp;if(""==a||null==a)return"";if(-1==a.indexOf("timestamp_"))return a;var n,c="_azs"==t?";":",";return""==(n=(n=this.get_exprises(a,i,0,c)).replace(i,""))||isNaN(parseInt(n))||parseInt(n)<o?"":a=a.replace(i+n+c,"")}},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 t,a="";return t=this.getCookie("__uidac"),e&&""==(a=localStorage.__uidac||t)&&(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,i,n){for(var c 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:i})a[c]&&t.push(c+"="+a[c]);return n&&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(t){if("__uidac"==t)return this.getDomainGuid();var a="",o=t;if("__ui"!=t&&"__uid"!=t&&"__create"!=t||(o=t,t="__uif"),"__uif"==t&&(e&&null!=(a=localStorage.__uif)&&""!=a||(a=this.getCookie("__uif")),""!=a)){var i=new RegExp(o+":([0-9+%C]+)").exec(a);if(i&&i.length>1)return(a=i[1])||""}if(e){var n=localStorage[o];n&&""!=n&&(a=n.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 o(t,e,a){if(0==e||void 0===e)return t;var o=/https:\/\/[^\/]+\//i.exec(t),i="";return o?(i=o[0],-1!=t.indexOf(i)&&(t=t.replace(i,"")),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}",i,e,a,t.trimStart("/")):String.format("{0}thumb_w/{1}/{3}",i,e,a,t.trimStart("/"))):t}var i=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=5",limitPage:"1",limitItem:"15",divId:"thanhnien_tinthitruong_web",website:"thanhnien.vn",dataMarkedZoneid:"tn_home_tinthitruong",regex:"%%regex%%",template:""};function c(e,c){var r=a.getDomainGuid(),l=function(){var t="";if(""==(t=a.get("__uid"))&&(t=a.getCookie("__uif")),-1!=t.indexOf("_")&&t){var e=/__uid:([0-9]+)/.exec(t);e&&(t=e[1])}return t}();c=c||0;var d=parseInt(n.limitItem),s=c*d+7;if(s>300)return!1;var m=new RegExp(n.regex,"g").exec(document.URL+""),g="";m&&(g=m[1]);var b,x,p,y=document.querySelector.bind(document),f=((document.domain+"").indexOf("cnnd.vn"),n.url);if(0==c){p=n.divId,b='@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"); } *, ::after, ::before { box-sizing: border-box; } .list__stream-main { width: calc(100% - 385px); } #'.concat(p,' .box-category[data-layout="8"] .box-category-top { margin-bottom: 32px; text-align: center; } #').concat(p,' .box-category[data-layout="8"] .box-category-top .box-category-title { display: inline-block; font-weight: 700; font-size: 17px; line-height: 26px; color: #292929; border-bottom: 1px solid #0098D1; } #').concat(p,' .box-category[data-layout="8"] .box-category-middle .box-category-item { padding: 32px 0; border-bottom: 1px solid #EBEBEB; display: flex; } #').concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='2'] .box-category-link-with-avatar { width: 320px; margin-right: 24px; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='2'] .box-category-content { width: calc(100% - 344px); display: flex; flex-direction: column; justify-content: space-between; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='2'] .box-category-content .box-content-bot { border: 1px solid #F6F6F6; border-radius: 4px; padding: 16px; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='2'] .box-category-content .box-content-bot .title-box { font-weight: 700; font-size: 14px; line-height: 20px; color: #292929; margin-bottom: 8px; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='2'] .box-category-content .box-content-bot .box-bot-item { display: flex; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='2'] .box-category-content .box-content-bot .box-bot-item .box-bot-link-with-avatar { width: 118px; margin-right: 16px; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='2'] .box-category-content .box-content-bot .box-bot-item .box-bot-content { width: calc(100% - 134px); } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='2'] .box-category-content .box-content-bot .box-bot-item .box-bot-content .box-category-link-title { font-weight: 700; font-size: 14px; line-height: 20px; color: #292929; display: block; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='3'] .box-left { width: 447px; margin-right: 16px; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='3'] .box-left .box-category-link-title { display: block; font-weight: 700; font-size: 17px; line-height: 26px; color: #292929; margin-bottom: 16px; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='3'] .box-left .box-category-link-with-avatar { width: 100%; margin-right: 0; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='3'] .box-category-content { width: calc(100% - 463px); } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='3'] .box-category-content .note { font-family: 'Inter'; font-style: normal; font-weight: 400; font-size: 13px; line-height: 18px; color: #8B8B8B; margin-bottom: 16px; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='3'] .box-category-content .box-bot-item .item { padding-bottom: 16px; padding-left: 32px; position: relative; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='3'] .box-category-content .box-bot-item .item:before { content: ''; width: 12px; height: 12px; background: url(https://static.mediacdn.vn/thanhnien.vn/image/dot-timeline.png) no-repeat; position: absolute; left: 2px; top: 6px; z-index: 2; background-size: cover; } #").concat(p,' .box-category[data-layout="8"] .box-category-middle .box-category-item[data-stream=\'3\'] .box-category-content .box-bot-item .item:after { width: 1px; height: 100%; border-left: 1px dashed #D9D9D9; content: ""; left: 8px; position: absolute; top: 9px; } #').concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='3'] .box-category-content .box-bot-item .item:last-child:after { display: none; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='3'] .box-category-content .box-bot-item .item .time { display: block; font-family: 'Inter'; font-style: normal; font-weight: 600; font-size: 13px; line-height: 16px; color: #292929; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='3'] .box-category-content .box-bot-item .item .nav-link { font-family: 'Inter'; font-style: normal; font-weight: 400; font-size: 15px; line-height: 22px; color: #292929; display: block; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='3'] .box-category-content .box-bot-item .item .nav-link:hover { color: #0098D1 !important; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='4'] { display: block; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='4'] .box-item-title { display: inline-block; margin-bottom: 16px; font-weight: 700; font-size: 17px; line-height: 26px; color: #292929; border-bottom: 1px solid #0098D1; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='4'] .box-category-content { width: 100%; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='4'] .box-category-content .box-sw-item .box-category-link-with-avatar { width: 100%; margin-right: 0; margin-bottom: 8px; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='4'] .box-category-content .box-sw-item .box-category-link-title { font-weight: 700; font-size: 17px; line-height: 26px; color: #292929; display: block; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='4'] .box-category-content .box-stream-4-sw-pagination { display: flex; align-items: center; justify-content: center; margin-top: 32px; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='4'] .box-category-content .box-stream-4-sw-pagination .swiper-pagination-bullet { background: #EBEBEB; opacity: 1; margin: 0 12px; } #").concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item[data-stream='4'] .box-category-content .box-stream-4-sw-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active { width: 40px; background: #0098D1; border-radius: 100px; } #").concat(p,' .box-category[data-layout="8"] .box-category-middle .box-category-item:first-child { padding-top: 0; } #').concat(p,' .box-category[data-layout="8"] .box-category-middle .box-category-item:last-child { border-bottom: 0; } #').concat(p,' .box-category[data-layout="8"] .box-category-middle .box-category-item .box-category-link-with-avatar { width: 328px; margin-right: 24px; } #').concat(p,' .box-category[data-layout="8"] .box-category-middle .box-category-item .box-category-content { width: calc(100% - 352px); } #').concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item .box-category-content .box-category-category { font-family: 'Inter'; font-style: normal; font-weight: 600; font-size: 14px; line-height: 20px; color: #8B8B8B; display: block; margin-bottom: 8px; } #").concat(p,' .box-category[data-layout="8"] .box-category-middle .box-category-item .box-category-content .box-category-link-title { font-weight: 700; font-size: 17px; line-height: 26px; color: #292929; margin-bottom: 8px; display: block; } #').concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item .box-category-content .box-category-sapo { font-family: 'Inter'; font-style: normal; font-weight: 400; font-size: 15px; line-height: 22px; color: #454545; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } #").concat(p,' .box-category[data-layout="8"] .box-category-middle .box-category-item .box-category-content .item-related { padding-top: 24px; } #').concat(p," .box-category[data-layout=\"8\"] .box-category-middle .box-category-item .box-category-content .item-related .box-category-related-link-title { font-family: 'Inter'; font-style: normal; font-weight: 400; font-size: 15px; line-height: 22px; color: #454545; padding-left: 28px; display: block; position: relative; } #").concat(p,' .box-category[data-layout="8"] .box-category-middle .box-category-item .box-category-content .item-related .box-category-related-link-title:before { content: ""; width: 5px; height: 5px; position: absolute; left: 10px; top: 8px; border: 1px solid #8B8B8B; border-radius: 50%; } .list__tt-focus { margin-bottom: 40px; } .container { width: 1150px !important; margin-right: auto; margin-left: auto; padding-left: 15px; padding-right: 15px; } #').concat(p,' .box-category[data-layout="18"] .box-category-middle .box-category-item-main { display: flex; margin-bottom: 24px; } #').concat(p,' .box-category[data-layout="18"] .box-category-middle .box-category-item-main .item-first { width: calc(100% - 383px); } #').concat(p,' .box-category[data-layout="18"] .box-category-middle .box-category-item-main .item-first .box-category-link-with-avatar { margin-bottom: 16px; } #').concat(p,' .box-category[data-layout="18"] .box-category-middle .box-category-item-main .item-related .box-category-item .box-category-link-title { font-weight: 700; font-size: 17px; line-height: 26px; text-align: center; color: #292929; display: block; } #').concat(p,' .box-category[data-layout="18"] .box-category-middle .box-category-item-main .item-related .box-category-item:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; } .box-category .box-category-link-with-avatar img { width: 100%; /* height: 100%; */ object-fit: cover; } .box-category .box-category-link-with-avatar { position: relative; } #').concat(p,' .box-category[data-layout="18"] .box-category-middle .box-category-item-main .item-first a.box-category-link-title { display: block; font-weight: 700; font-size: 32px; line-height: 48px; text-align: center; color: #292929; margin-bottom: 16px; } #').concat(p," .box-category[data-layout=\"18\"] .box-category-middle .box-category-item-main .item-first .box-category-sapo { font-family: 'Inter'; font-style: normal; font-weight: 400; font-size: 15px; line-height: 22px; text-align: center; color: #454545; } #").concat(p,' .box-category[data-layout="18"] .box-category-middle .box-category-item-main .item-related { width: 367px; padding-left: 16px; margin-left: 16px; border-left: 1px solid #EBEBEB; } #').concat(p,' .box-category[data-layout="18"] .box-category-middle .box-category-item-main .item-related .box-category-item { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #EBEBEB; } #').concat(p,' .box-category[data-layout="18"] .box-category-middle .box-category-item-main .item-related .box-category-item .box-category-link-with-avatar { margin-bottom: 16px; } .list__tt-focus .box-category .box-category-middle .box-category-avatar { width: 100%; aspect-ratio: 16/10; object-fit: cover; } .box-category .box-category-link-with-avatar { position: relative; } #').concat(p,' .box-category[data-layout="18"] .box-category-middle .box-category-sub { padding-top: 24px; border-top: 1px solid #EBEBEB; display: flex; } #').concat(p,' .box-category[data-layout="18"] .box-category-middle .box-category-sub .box-category-item { width: calc(25% - 24px); margin-right: 32px; } #').concat(p,' .box-category[data-layout="18"] .box-category-middle .box-category-sub .box-category-item .box-category-link-with-avatar.img-resize { margin-bottom: 8px; } #').concat(p,' .box-category[data-layout="18"] .box-category-middle .box-category-sub .box-category-item a.box-category-link-title { font-weight: 700; font-size: 14px; line-height: 20px; color: #292929; display: block; } #').concat(p,' .box-category[data-layout="8"] .readmore--news__div { padding-top: 32px; border-top: 1px solid #EBEBEB; } #').concat(p," .fb-loading-wrapper { max-width: 100%; clear: both; padding: 25px 0px; } #").concat(p," .fblw-timeline-item { background: #fff; } #").concat(p," .fblwtia-mask { background: #fff; position: absolute; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; height: 10px; } #").concat(p," .fblwtia-title-line { right: 0; left: 328px; top: 0; height: 20px; width: 16px; } #").concat(p," .fblwtia-front-mask { height: 10px; left: 328px; width: 16px; } #").concat(p," .fblwtia-title-mask-1 { top: 30px; } #").concat(p," .fblwtia-front-mask-2 { top: 70px; height: 15px; } #").concat(p," .fblwtia-front-mask-3 { top: 105px; } #").concat(p," .fblwtia-front-mask-4 { top: 125px; } #").concat(p," .fblwtia-sepline-sapo { left: 328px; right: 0; } #").concat(p," .fblwtia-sepline-sapo-0 { top: 20px; } #").concat(p," .fblwtia-sepline-sapo-1 { top: 50px; height: 20px; } #").concat(p," .fblwtia-sepline-sapo-2 { top: 85px; height: 20px; } #").concat(p," .fblwtia-sepline-sapo-3 { top: 115px; } #").concat(p," .fblwtia-sepline-sapo-4 { top: 135px; height: 50px; } #").concat(p," .fblwtia-sapo-line { right: 0; } #").concat(p," .fblwtia-sapo-line-2 { top: 70px; left: 55%; height: 15px; } #").concat(p," .fblwtia-sapo-line-3 { top: 105px; left: 95%; } #").concat(p," .fblwtia-sapo-line-4 { top: 125px; left: 85%; height: 10px; } #").concat(p," .fblwti-animated { animation-duration: 1.5s; animation-fill-mode: forwards; animation-iteration-count: infinite; animation-name: placeHolderShimmer; animation-timing-function: linear; background: #f6f7f8; background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%); background-size: 800px 200px; height: 110px; position: relative; } @-webkit-keyframes placeHolderShimmer { 0% { background-position: -800px 0; } 100% { background-position: 800px 0; } } #").concat(p," .fblwti-animated { height: 184.5px; } #").concat(p," .fblwtia-sapo-line-0 { top: 0; left: 98%; height: 20px; } #").concat(p," .fblwtia-sapo-line-1 { top: 30px; left: 85%; height: 20px; } "),(x=document.createElement("style")).type="text/css",document.getElementsByTagName("head")[0].appendChild(x),x.styleSheet?x.styleSheet.cssText=b:x.appendChild(document.createTextNode(b));var h="";0==c&&(h='<div class="list__tt-focus" data-io-widget="true" data-vr-zone="Cate - Nổi bật"><div class="container"><div class="list__tt-focus-flex"><div class="box-category" data-layout="18" data-cd-key="siteid185:newsposition:zoneid185318 type3;siteid185:newsinzonefull:zone185318" ><div class="box-category-middle"><div class="box-category-item-main"></div><div class="box-category-sub"></div></div></div></div></div></div>');var u=document.createElement("div");u.innerHTML=h,y(e).insertBefore(u,y(e).children[0]),t(f+"&dg=".concat(r,"&uid=&itemid=").concat(g,"&deviceid=").concat(l,"&template=").concat(n.template,"&offset=0&limit=7"),(function(t){var a=JSON.parse(t),c=a.algid,r=a.requestid,l=a.boxid;y(e).setAttribute("data-marked-zoneid","".concat(n.dataMarkedZoneid,"_boxid_").concat(l,"_algid_").concat(c,"_rid_").concat(r));for(var d="",s="",m="",g=a.recommend.length>=7?7:a.recommend.length,b=0;b<g;b++){var x=a.recommend[b];x.image=x.image.replace("thanhnien.qltns.mediacdn.vn","images2.thanhnien.vn"),1013!=x.type&&(x.image=x.image.replace("thanhnien.mediacdn.vn","images2.thanhnien.vn")),x.image=x.image.replace("image.thanhnien.vn","images2.thanhnien.vn"),x.image=0==b?o(x.image,736,460):1==b||2==b?o(x.image,351,219):o(x.image,256,160),!1===i(x.image)&&(x.image="https://static.mediacdn.vn/thanhnien.vn/image/no-thumb.jpg"),null==x.news_type&&(x.news_type="0"),null==x.type&&(x.type="0"),x.url=x.url.replace("http://"+n.website,""),x.url=x.url.replace("https://"+n.website,"");try{x.typeIms=Number(x.typeIms),x.newsTypeIms=Number(x.newsTypeIms)}catch(t){console.log(t)}var p=x.sapo,f=document.createElement("span");f.innerHTML=p;var h=f.textContent||f.innerText||"";0==b&&(d='<div class="item-first" data-vr-contentbox="Cate - Nổi bật 1" data-vr-contentbox-url="'.concat(x.url,'"><a class="box-category-link-with-avatar img-resize" href="').concat(x.url,'" title="').concat(x.title,'" data-id="').concat(x.id,'" data-type="').concat(x.typeIms,'" data-newstype = "').concat(x.newsTypeIms,'" data-io-canonical-url="/post-').concat(x.id,'.htm" ><img data-type="').concat(x.type,'" src="').concat(x.image,'" class="box-category-avatar" alt="').concat(x.title,'" title="').concat(x.title,'" loading="lazy" /></a><div class="box-category-content"><h2 class="box-title-text" data-vr-headline=""><a data-linktype="newsdetail" data-id="').concat(x.id,'" class="box-category-link-title" data-type="').concat(x.typeIms,'" data-newstype = "').concat(x.newsTypeIms,'" href="').concat(x.url,'" title="').concat(x.title,'" >').concat(x.title,'</a></h2><p class="box-category-sapo" data-trimline="4">').concat(h,"</p></div></div>")),1!=b&&2!=b||(s+='<div class="box-category-item" data-vr-contentbox="Cate - Nổi bật 2" data-vr-contentbox-url="'.concat(x.url,'" ><a class="box-category-link-with-avatar img-resize" href="').concat(x.url,'" title="').concat(x.title,'" data-id="').concat(x.id,'" data-type="').concat(x.typeIms,'" data-newstype = "').concat(x.newsTypeIms,'" data-io-canonical-url="/post-').concat(x.id,'.htm" ><img data-type="').concat(x.typeIms,'" data-newstype = "').concat(x.newsTypeIms,'" src="').concat(x.image,'" class="box-category-avatar" alt="').concat(x.title,'" title="').concat(x.title,'" loading="lazy" /></a><div class="box-category-content"><h3 class="box-title-text" data-vr-headline=""><a data-type="').concat(x.typeIms,'" data-newstype = "').concat(x.newsTypeIms,'" data-linktype="newsdetail" data-id="').concat(x.id,'" class="box-category-link-title" title="').concat(x.title,'" >').concat(x.title,"</a></h3></div></div>")),b>2&&b<7&&(m+='<div class="box-category-item" data-vr-contentbox="Cate - Nổi bật 4" data-vr-contentbox-url="'.concat(x.url,'"><a class="box-category-link-with-avatar img-resize" href="').concat(x.url,'" title="').concat(x.title,'" data-id="').concat(x.id,'" data-type="').concat(x.typeIms,'" data-newstype = "').concat(x.newsTypeIms,'" data-io-canonical-url="/post-').concat(x.id,'.htm" ><img data-type="').concat(x.typeIms,'" data-newstype = "').concat(x.newsTypeIms,'" src="').concat(x.image,'" class="box-category-avatar" alt="').concat(x.title,'" title="').concat(x.title,'" loading="lazy" /></a><div class="box-category-content"><h3 class="box-title-text" data-vr-headline=""><a data-type="').concat(x.typeIms,'" data-newstype = "').concat(x.newsTypeIms,'" data-linktype="newsdetail" data-id="').concat(x.id,'" class="box-category-link-title" href="').concat(x.url,'" title="').concat(x.title,'" >').concat(x.title,"</a></h3></div></div>"))}var u=y(e).querySelector(".list__tt-focus-flex .box-category-middle .box-category-item-main");u.innerHTML=d;var w=document.createElement("div");w.classList.add("item-related"),w.innerHTML=s,u.insertBefore(w,u.children[1]),y(e).querySelector(".list__tt-focus-flex .box-category-middle .box-category-sub").innerHTML=m}))}var w=f+"&dg=".concat(r,"&extr=").concat(function(t){var e={cr:a.get("__create")||a.getCookie("__create")||"",lc:a.get("__RC")||a.getCookie("__RC")||"",pglid:window.__admPageloadid||window.__m_admPageloadid||"",type:t},o="";try{o=encodeURIComponent(window.btoa(JSON.stringify(e)))}catch(t){}return o}("pc"),"&uid=&itemid=").concat(g,"&deviceid=").concat(l,"&template=").concat(n.template,"&offset=").concat(s,"&limit=").concat(s+d);t(w,(function(t){for(var a=JSON.parse(t),r=(a.algid,a.requestid,a.boxid,""),l=a.recommend.length>=parseInt(n.limitItem)?parseInt(n.limitItem):a.recommend.length,s=0;s<l;s++){var m=a.recommend[s];m.image=m.image.replace("thanhnien.qltns.mediacdn.vn","images2.thanhnien.vn"),1013!=m.type&&(m.image=m.image.replace("thanhnien.mediacdn.vn","images2.thanhnien.vn")),m.image=m.image.replace("image.thanhnien.vn","images2.thanhnien.vn"),m.image=o(m.image,328,205),!1===i(m.image)&&(m.image="https://static.mediacdn.vn/thanhnien.vn/image/no-thumb.jpg"),null==m.news_type&&(m.news_type="0"),null==m.type&&(m.type="0"),m.url=m.url.replace("http://"+n.website,""),m.url=m.url.replace("https://"+n.website,"");var g=m.sapo,b=document.createElement("span");b.innerHTML=g;var x=b.textContent||b.innerText||"";r+='<div class="box-category-item" data-id="'.concat(m.id,'" data-rolling-news-id="0" data-newstype="').concat(m.news_type,'"><a class="box-category-link-with-avatar img-resize" href="').concat(m.url,'" title="').concat(m.title,'"><img data-type="avatar" src="').concat(m.image,'" alt="').concat(m.title,'" title="').concat(m.title,'" class="box-category-avatar" loading="lazy" ></a><div class="box-category-content"><a class="box-category-category" href="').concat(m.categoryPath,'" title="').concat(m.categoryName,'">').concat(m.categoryName,'</a><h3 class="box-title-text"><a data-live-status="1" data-linktype="newsdetail" class="box-category-link-title" data-type="').concat(m.typeIms,'" data-newstype = "').concat(m.newsTypeIms,'" href="').concat(m.url,'" title="').concat(m.title,'">').concat(m.title,'</a></h3><p data-type="').concat(m.typeIms,'" data-newstype = "').concat(m.newsTypeIms,'" class="box-category-sapo" data-trimline="4">').concat(x,"</p></div></div>")}var p="";0==c&&(p='<div class=" box-stream-load fb-loading-wrapper" id="IconLoadListDetail" style="display: block;"><div class="fblw-timeline-item"><div class="fblwti-animated"><div class="fblwtia-mask fblwtia-title-line fblwtia-title-mask-0"></div><div class="fblwtia-mask fblwtia-sepline-sapo fblwtia-sapo-line-0"></div><div class="fblwtia-mask fblwtia-sepline-sapo fblwtia-sepline-sapo-0"></div><div class="fblwtia-mask fblwtia-title-line fblwtia-title-mask-1"></div><div class="fblwtia-mask fblwtia-sepline-sapo fblwtia-sapo-line-1"></div><div class="fblwtia-mask fblwtia-sepline-sapo fblwtia-sepline-sapo-1"></div><div class="fblwtia-mask fblwtia-front-mask fblwtia-front-mask-2"></div><div class="fblwtia-mask fblwtia-sapo-line fblwtia-sapo-line-2"></div><div class="fblwtia-mask fblwtia-sepline-sapo fblwtia-sepline-sapo-2"></div><div class="fblwtia-mask fblwtia-front-mask fblwtia-front-mask-3"></div><div class="fblwtia-mask fblwtia-sapo-line fblwtia-sapo-line-3"></div><div class="fblwtia-mask fblwtia-sepline-sapo fblwtia-sepline-sapo-3"></div><div class="fblwtia-mask fblwtia-front-mask fblwtia-front-mask-4"></div><div class="fblwtia-mask fblwtia-sapo-line fblwtia-sapo-line-4"></div><div class="fblwtia-mask fblwtia-sepline-sapo fblwtia-sepline-sapo-4"></div></div></div></div>');var f="";0==c?f='<div class="list__stream"><div class="container"><div class="list__stream-flex"><div class="list__stream-left" style="width: calc(100% - 385px);"><div class="box-category box-border-top" data-layout="8" data-key="siteid185:newstophot"><div class="box-category-middle" id="LoadTimeLineStorage">'.concat(r,'</div></div><div class="box-stream-item box-stream-item-load"></div>').concat(p,'</div><div class="list__stream-sub"></div></div></div></div>'):f+="".concat(r);var h=document.createElement("div");if(h.innerHTML=f,y(e).insertBefore(h,y(e).children[1]),0==c){var u=y(e).getAttribute("data-callback");u&&(u=u.replace("()",""),window[u](e,a))}try{relatedNews.initTimelinePoppup("#LoadTimeLineStorage")}catch(t){}try{relatedNews("#".concat(n.divId," .box-category-middle .box-category-item .box-category-link-with-avatar ,#").concat(n.divId," .box-category-middle .box-category-item .box-category-link-title"))}catch(t){}try{a.recommend.length>=d?function(){var t=document.createElement("div");t.id="readmore--news__div".concat(c+1),t.classList.add("readmore--news__div"),t.style.minHeight="20px",document.querySelector("#LoadTimeLineStorage").appendChild(t);var e=function(){window.VisSense(document.querySelector("#readmore--news__div".concat(c+1))).onPercentageTimeTestPassed((function(){aiServiceNewsReadMore("#readmore--news__div".concat(c+1),c+1)}),{percentageLimit:.5,timeLimit:1e3,interval:300})};void 0!==window.VisSense?e():function(t,e,a){var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=t,2<=arguments.length&&(o.onload=e,o.onreadystatechange=function(){4!=o.readyState&&"complete"!=o.readyState||e()}),o.onerror=function(){if(void 0!==a)try{a()}catch(t){}},document.getElementsByTagName("head")[0].appendChild(o)}("https://js.aiservice.vn/core/visen.js",(function(){e()}))}():document.querySelector("#IconLoadListDetail").style.display="none"}catch(t){console.log("error log",t)}window.setTimeout((function(){try{window.initLightBoxDom()}catch(t){}}),1e3)}))}"string"==typeof n&&(n={url:"https://rec.aiservice.vn/recengine/prod/admicro/recgate/api/v1/recommender?",divId:"thanhnien_tinthitruong_web",website:"thanhnien.vn",dataMarkedZoneid:"tn_home_tinthitruong",regex:"/([d]+).htm/",limitItem:"15",template:"0"}),window.aiServiceNewsReadMore=c,function(){var t=document.querySelector.bind(document)("#".concat(n.divId));try{var e=t.getAttribute("data-no-init")}catch(t){}!t||e&&"true"==e||c("#".concat(n.divId))}()})(); |