FOTO: Melihat Penerapan Protokol Kesehatan di DBS Indonesia

FOTO: Melihat Penerapan Protokol Kesehatan di DBS Indonesia – On Off Liputan6.com

`; $(“head”).append(vidyScript); }, scriptEmbedVidy() { const scriptTag = document.createElement(“script”); scriptTag.type = “text/javascript”; scriptTag.dataset.cfasync = false; scriptTag.src = “https://static.vidy.com/embed.min.js”; document.head.appendChild(scriptTag); } }; if (window.kmklabs.pageType === “ReadPage”) { createElement.scriptEmbedVidy(); createElement.appendScriptInitVidy(); } }); }); /*** END of [#169698767] [#169358088] Pasang Script Vidy with Custom Script – Desktop ****/ /*** START of [171402059] [172853211] [Bug] Embed Kita Bisa – Desktop ****/ $(document).ready(function () { var gatewayIframe = document.querySelectorAll(“.gateway-donation-iframe”); var pageType = window.kmklabs.pageType; if (pageType === “ReadPage” && gatewayIframe.length > 0) { var isMultiplePage = window.kmklabs.article.isMultipage; var channelName = window.kmklabs.channel.full_slug; if (isMultiplePage && (channelName !== “hot” && channelName !== “surabaya”)) { window.addEventListener(“scroll”, function () { gatewayIframe.forEach(function (item) { var contentWindowIframe = item.contentWindow; item.height = contentWindowIframe.document.body.offsetHeight + 10 + “px”; }); }); } else if (channelName === “hot” || channelName === “surabaya”) { gatewayIframe.forEach(function (item) { var iframeSrc = item.src; var match = iframeSrc.match(/kitabisa/gateway/(d+)/); if (match) { var gatewayId = match[1]; } window.addEventListener( “message”, function (event) { var eventData = event.data; var messageName = “heightEmbedKitabisa-” + gatewayId; var heightEmbedKitabisa = eventData[messageName]; if (heightEmbedKitabisa != undefined) { item.height = heightEmbedKitabisa + 10 + “px”; } }, false ); }); } } }); /*** END of [171402059] [172853211] [Bug] Embed Kita Bisa – Desktop ****/ /*** START of [#170021941] Skinning Content Promotion Sea Games 2019 – Desktop ****/ $(document).ready(function() { const cssHandler = { rawCss: function() { const style = ` .content-promotion__seagames .content-promotion–stm__wrapper { background-color: #2e328b; border-radius: 8px; background-image: url(“https://preview-kly.akamaized.net/seagames2019/content-promotion-sea-games-2019-background.png”); background-repeat: no-repeat; background-position: left bottom; background-size: contain; margin-top: 50px; padding-bottom: 15px; border-bottom: none; } .content-promotion__seagames .content-promotion–header-stm__link, .content-promotion__seagames .content-promotion–header-stm__title { height: 100%; } .content-promotion__seagames .content-promotion–header-stm__link-title { color: transparent; margin-top: 0; } .content-promotion__seagames .content-promotion–header-stm { display: block; background-image: url(“data:image/svg+xml,%3Csvg width=’97px’ height=’49px’ viewBox=’0 0 97 49′ version=’1.1′ xmlns=’http://www.w3.org/2000/svg’ xmlns:xlink=’http://www.w3.org/1999/xlink’%3E%3C!– Generator: sketchtool 58 (101010) – https://sketch.com –%3E%3Ctitle%3E3BB1D7B8-57C9-49CB-ABF5-7FA5A2871F1B%3C/title%3E%3Cdesc%3ECreated with sketchtool.%3C/desc%3E%3Cg id=’Page-1′ stroke=’none’ stroke-width=’1′ fill=’none’ fill-rule=’evenodd’%3E%3Cg id=’Skinning-Sea-Games-Liputan6-Desktop’ transform=’translate(-271.000000, -1070.000000)’ fill-rule=’nonzero’%3E%3Cg id=’SEA-GAMES-2019-+-Ikuti-Workshop-MoJo-+-Workshop-MoJo-Disabi-+-Workshop-MoJo-Disabi-+-Countdown-2-+-Group-3-+-20181130_194904-+-WEBSITE-BANNER2-+-Group-Mask’ transform=’translate(242.000000, 1055.000000)’%3E%3Cg id=’SEA-GAMES-2019′ transform=’translate(29.554400, 15.256801)’%3E%3Cpath d=’M-2.13162821e-14,8.34960033 C0.268800011,10.4664004 1.83120007,11.9112005 4.77120019,11.9112005 C7.82880031,11.9112005 9.42480037,10.4496004 9.42480037,8.34960033 C9.42480037,6.70320027 8.68560035,5.46000022 5.32560021,4.65360018 C3.44400014,4.23360017 2.95680012,3.89760015 2.95680012,3.09120012 C2.95680012,2.26800009 3.56160014,1.84800007 4.58640018,1.84800007 C6.08160024,1.84800007 6.46800026,2.6208001 6.60240026,3.34320013 L9.12240036,3.34320013 C8.95440036,1.64640007 7.72800031,-1.77635684e-14 4.65360018,-1.77635684e-14 C1.91520008,-1.77635684e-14 0.403200016,1.36080005 0.403200016,3.37680013 C0.403200016,4.89185474 1.12987332,6.02777545 4.05379991,6.76924371 L4.78320587,6.94580625 C6.40195609,7.35926045 6.87120027,7.77100831 6.87120027,8.65200034 C6.87120027,9.49200038 6.30000025,10.0296004 4.9560002,10.0296004 C3.61200014,10.0296004 2.78880011,9.50880038 2.5200001,8.34960033 L-2.13162821e-14,8.34960033 Z M19.4712008,4.68720019 L13.9272006,4.68720019 L13.9272006,2.21760009 L19.7064008,2.21760009 L19.7064008,0.168000007 L11.4912005,0.168000007 L11.4912005,11.7432005 L19.7400008,11.7432005 L20.0424008,9.69360039 L13.9272006,9.69360039 L13.9272006,6.75360027 L19.4712008,6.75360027 L19.4712008,4.68720019 Z M28.2744011,9.07200036 L29.2320012,11.7432005 L31.8696013,11.7432005 L27.7536011,0.168000007 L24.612001,0.168000007 L20.6808008,11.7432005 L23.1504009,11.7432005 L24.040801,9.07200036 L28.2744011,9.07200036 Z M27.7368011,7.02240028 L24.578401,7.02240028 L25.3732346,4.46250428 C25.6787354,3.46342514 25.929751,2.6082001 26.090401,1.96560008 L26.107201,1.96560008 L26.2603409,2.49939628 C26.5648033,3.52278795 27.04358,4.95688441 27.7368011,7.02240028 Z M47.5776019,5.25840021 L42.5880017,5.25840021 L42.5880017,7.30800029 L45.1248018,7.30800029 L45.1248018,7.4256003 C45.1248018,8.45040034 44.7216018,9.9456004 42.5880017,9.9456004 C40.2864016,9.9456004 39.5136016,7.98000032 39.5136016,5.98080024 C39.5136016,3.94800016 40.1856016,1.94880008 42.5712017,1.94880008 C44.2680018,1.94880008 44.8728018,2.87280011 45.1080018,3.64560014 L47.6112019,3.64560014 C47.3424019,1.68000007 45.5784018,-1.77635684e-14 42.6048017,-1.77635684e-14 C38.9592015,-1.77635684e-14 36.9264015,2.6208001 36.9264015,6.09840024 C36.9264015,9.39120037 38.8080015,11.9448005 42.1680017,11.9448005 C43.7808017,11.9448005 44.9064018,11.4744005 45.5448018,10.6008004 C45.5784018,10.9872004 45.6456018,11.3904005 45.7464018,11.7432005 L47.5776019,11.7432005 L47.5776019,5.25840021 Z M56.5152022,9.07200036 L57.4728023,11.7432005 L60.1104024,11.7432005 L55.9944022,0.168000007 L52.8528021,0.168000007 L48.9216019,11.7432005 L51.391202,11.7432005 L52.2816021,9.07200036 L56.5152022,9.07200036 Z M55.9776022,7.02240028 L52.8192021,7.02240028 L53.6140357,4.46250428 C53.9195365,3.46342514 54.1705522,2.6082001 54.3312022,1.96560008 L54.3480022,1.96560008 L54.501142,2.49939628 C54.8056044,3.52278795 55.2843811,4.95688441 55.9776022,7.02240028 Z M71.3832028,11.7432005 L73.8024029,11.7432005 L73.8024029,0.168000007 L70.2072028,0.168000007 L69.6650561,1.83721691 C68.8138742,4.49537161 67.9218027,7.4604003 67.6872027,8.70240035 L67.6704027,8.70240035 C67.3176027,6.98880028 66.3096026,3.19200013 65.4024026,0.168000007 L61.6728025,0.168000007 L61.6728025,11.7432005 L63.9576025,11.7432005 L63.9576025,7.5936003 C63.9576025,5.61120022 63.9072025,3.22560013 63.8064025,1.86480007 L63.8904025,1.86480007 L64.0368319,2.51432093 C64.5993054,4.9366278 65.661707,8.8441047 66.4440026,11.7432005 L68.5776027,11.7432005 L69.4437189,8.88880482 C70.2489011,6.20777492 70.9858463,3.64925232 71.3832028,1.89840008 L71.4672028,1.89840008 L71.4391132,2.78423051 C71.4047068,4.08576016 71.3832028,5.81952023 71.3832028,7.39200029 L71.3832028,11.7432005 Z M84.5376034,4.68720019 L78.9936031,4.68720019 L78.9936031,2.21760009 L84.7728034,2.21760009 L84.7728034,0.168000007 L76.557603,0.168000007 L76.557603,11.7432005 L84.8064034,11.7432005 L85.1088034,9.69360039 L78.9936031,9.69360039 L78.9936031,6.75360027 L84.5376034,6.75360027 L84.5376034,4.68720019 Z M86.1168034,8.34960033 L88.6368035,8.34960033 C88.9056035,9.50880038 89.7288036,10.0296004 91.0728036,10.0296004 C92.4168037,10.0296004 92.9880037,9.49200038 92.9880037,8.65200034 C92.9880037,7.77100831 92.5187595,7.35926045 90.9000093,6.94580625 L90.4512036,6.83760027 C87.2928035,6.09840024 86.5200034,4.9392002 86.5200034,3.37680013 C86.5200034,1.36080005 88.0320035,-1.77635684e-14 90.7704036,-1.77635684e-14 C93.8448037,-1.77635684e-14 95.0712038,1.64640007 95.2392038,3.34320013 L92.7192037,3.34320013 C92.5848037,2.6208001 92.1984037,1.84800007 90.7032036,1.84800007 C89.6784036,1.84800007 89.0736035,2.26800009 89.0736035,3.09120012 C89.0736035,3.89760015 89.5608036,4.23360017 91.4424036,4.65360018 C94.8024038,5.46000022 95.5416038,6.70320027 95.5416038,8.34960033 C95.5416038,10.4496004 93.9456037,11.9112005 90.8880036,11.9112005 C87.9480035,11.9112005 86.3856034,10.4664004 86.1168034,8.34960033 Z’ id=’SEAGAMES’ fill=’%23FFFFFF’%3E%3C/path%3E%3Cpath d=’M23.1732009,47.7432019 L24.015601,42.1740017 L9.41400037,42.1740017 C9.91320039,40.8125471 11.3805459,39.0990396 14.925537,36.5640753 L15.9527196,35.8359564 C21.0871883,32.1625388 22.8924009,30.0060012 22.8924009,25.700401 C22.8924009,21.1140008 20.1780008,16.3872007 12.2688005,16.3872007 C5.1552002,16.3872007 1.69200007,20.8332008 1.27080005,26.121601 L7.72920031,26.121601 C8.15040032,23.4540009 9.22680037,21.5820009 12.2688005,21.5820009 C14.8428006,21.5820009 16.1532006,23.0796009 16.1532006,25.747201 C16.1532006,28.2030868 15.0805149,29.3181155 11.6526636,31.865216 L10.4904004,32.7204013 C3.79800015,37.5876015 1.41120006,41.9400017 1.41120006,47.3220019 L1.41120006,47.7432019 L23.1732009,47.7432019 Z M39.3192016,16.3872007 C30.4740012,16.3872007 27.3852011,23.922001 27.3852011,32.3460013 C27.3852011,40.8636016 30.1464012,48.3048019 39.1788016,48.3048019 C48.2410863,48.3048019 50.9539782,40.8134321 51.0180336,32.4646163 L51.019202,32.1588013 C51.019202,23.4072009 47.9304019,16.3872007 39.3192016,16.3872007 Z M39.3192016,21.7224009 C43.3440017,21.7224009 44.0928018,26.215201 44.0928018,32.2056013 L44.0878604,33.131418 C44.0248138,38.7191348 43.310919,42.9696017 39.2724016,42.9696017 C34.9950428,42.9696017 34.2884935,38.0879887 34.2654013,32.5447394 L34.2648014,32.2524013 C34.2648014,25.606801 35.3880014,21.7224009 39.3192016,21.7224009 Z M67.4460027,47.7432019 L67.4460027,16.9020007 L62.6724025,16.9020007 C60.9408024,18.8676007 57.9924023,20.5056008 55.0440022,21.0672008 L55.0440022,26.074801 C56.5884022,25.934401 59.2092024,25.372801 60.6132024,24.717601 L60.6132024,47.7432019 L67.4460027,47.7432019 Z M73.8576029,40.1148016 C74.419203,43.9056017 77.3676031,48.3048019 84.5280034,48.3048019 C94.2156037,48.3048019 96.4152038,39.4128016 96.4152038,30.7548012 C96.4152038,23.1732009 93.4668037,16.4340007 84.7620034,16.4340007 C77.6016031,16.4340007 73.4364029,21.0204008 73.4364029,27.0576011 C73.4364029,32.6268013 77.0400031,36.9792015 83.4048033,36.9792015 C86.0724034,36.9792015 88.5528035,36.1836014 89.8164036,34.4052014 L89.7697181,35.1775478 C89.5405852,38.5628516 88.8446653,43.1100017 84.8088034,43.1100017 C82.2348033,43.1100017 81.1584032,41.9400017 80.5500032,40.1148016 L73.8576029,40.1148016 Z M84.8088034,21.6288009 C88.6464035,21.6288009 89.4888036,24.811201 89.4888036,26.8704011 C89.4888036,30.2868012 87.8508035,31.7844013 84.9024034,31.7844013 C82.0008033,31.7844013 80.1756032,29.8656012 80.1756032,26.7300011 C80.1756032,23.8752009 81.7200032,21.6288009 84.8088034,21.6288009 Z’ id=’2019′ fill=’%23FDC109’%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E”); background-repeat: no-repeat; background-size: 97px 49px; width: 97px; height: 49px; position: absolute; top: 15px; left: 30px; padding: 0; } .content-promotion__seagames .content-promotion–stm__slider.slick-initialized.slick-slider { margin-left: 150px; padding-top: 45px; } .content-promotion__seagames .content-promotion–stm__thumbnail img { width: 180px; height: 102px; } .content-promotion__seagames .content-promotion–stm__item { width: 180px; } .content-promotion__seagames .content-promotion–stm__caption { font-family: AcuminPro; font-size: 14px; font-weight: bold; font-stretch: normal; font-style: normal; line-height: 1.29; letter-spacing: normal; color: #ffffff; height: 55px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .content-promotion__seagames .content-promotion–stm__icon-left { left: unset; right: 45px; top: 10px; } .content-promotion__seagames .content-promotion–stm__icon-right { right: 10px; top: 10px; } .content-promotion__seagames .content-promotion–stm__icon-left, .content-promotion–stm__icon-right { background-color: #ef4600; border-radius: 100%; background-size: 23px 23px; height: 23px; width: 23px; } .content-promotion__seagames .i-sl-left-circle { background-image: url(“data:image/svg+xml,%3Csvg xmlns=’http://www.w3.org/2000/svg’ width=’6′ height=’9′ viewBox=’0 0 6 9’%3E%3Cpath fill=’%23FEC000′ fill-rule=’evenodd’ d=’M5.332.41l.058.06a.75.75 0 0 1-.077 1.103L2.013 4.2l3.3 2.627A.75.75 0 0 1 5.39 7.93l-.058.06a.8.8 0 0 1-1.079.076L.287 4.907a.75.75 0 0 1-.273-.704.752.752 0 0 1 .273-.71L4.253.334A.8.8 0 0 1 5.332.41z’/%3E%3C/svg%3E”); background-size: 6px 9px; background-repeat: no-repeat; background-position: center; } .content-promotion__seagames .i-sl-right-circle { background-image: url(“data:image/svg+xml,%0A%3Csvg xmlns=’http://www.w3.org/2000/svg’ width=’6′ height=’9′ viewBox=’0 0 6 9’%3E%3Cpath fill=’%23FEC000′ fill-rule=’evenodd’ d=’M.268 7.99L.21 7.93a.75.75 0 0 1 .077-1.103l3.3-2.627-3.3-2.627A.75.75 0 0 1 .21.47L.268.41A.8.8 0 0 1 1.347.333l3.966 3.159a.75.75 0 0 1 .273.704.752.752 0 0 1-.273.71L1.347 8.066A.8.8 0 0 1 .268 7.99z’/%3E%3C/svg%3E%0A”); background-size: 6px 9px; background-repeat: no-repeat; background-position: center; } .content-promotion–stm__thumbnail { border-radius: 7.2px; } `; return style; }, cssAppend: function() { const styleSheet = document.createElement(“style”); styleSheet.type = “text/css”; styleSheet.innerText = this.rawCss(); document.head.appendChild(styleSheet); } }; $(“.content-promotion”).each(function() { cpSeaGames = $(this).find( ‘.content-promotion–header-stm__link[title=”SEA GAMES 2019″]’ ); if (cpSeaGames.length > 0) { $(this).addClass(“content-promotion__seagames”); cssHandler.cssAppend(); } }); }); /*** END of [#170021941] Skinning Content Promotion Sea Games 2019 – Desktop ****/ /*** START of [RAMADAN 2018] redirect tag populer to channel ****/ $(‘.tag-snippet__link[data-slug=”ramadan-2018″]’).attr(‘href’,’https://www.liputan6.com/ramadan’); /*** END of [RAMADAN 2018] redirect tag populer to channel ****/ /*** START of Function Get Emblem Liga 1 Standings ****/ window.getEmblem = function(name) { name = name.toUpperCase().trim(); switch (name) { case ‘MADURA UNITED FC’: return ‘https://preview-kly.akamaized.net/bola/liga1/logo-madura-united.png’; break; case ‘PERSIB BANDUNG’: return ‘https://preview-kly.akamaized.net/bola/liga1/logo-persib.png’; break; case ‘TIRA PERSIKABO’: return ‘https://preview-kly.akamaized.net/bola/liga1/logo-tira-persikabo.png’; break; case ‘PS. TIRA PERSIKABO’: return ‘https://preview-kly.akamaized.net/bola/liga1/logo-tira-persikabo.png’; break; case ‘PS SLEMAN’: return ‘https://preview-kly.akamaized.net/bola/liga1/logo-pss.png’; break; case ‘PSS SLEMAN’: return ‘https://preview-kly.akamaized.net/bola/liga1/logo-pss.png’; break; case ‘BALI UNITED’: return ‘https://preview-kly.akamaized.net/bola/liga1/logo-bali-united-fc.png’; break; case ‘BALI UNITED FC’: return ‘https://preview-kly.akamaized.net/bola/liga1/logo-bali-united-fc.png’; break; case ‘KALTENG PUTRA’: return ‘https://preview-kly.akamaized.net/bola/liga1/logo-kalteng-putra.png’; break; case ‘PSM MAKASSAR’: return ‘https://preview-kly.akamaized.net/bola/liga1/logo-psm.png’; break; case ‘BHAYANGKARA FC’: return ‘https://preview-kly.akamaized.net/bola/liga1/logo-bhayangkara-fc.png’; break; case ‘BORNEO FC’: return ‘https://preview-kly.akamaized.net/bola/liga1/logo-pusamania-borneo-fc.png’; break; case ‘PERSIJA JAKARTA’: return ‘https://preview-kly.akamaized.net/bola/liga1/logo-persija.png’; break; case ‘PS BARITO PUTERA’: return ‘https://preview-kly.akamaized.net/bola/liga1/logo-barito-fc.png’; break; case ‘PERSEBAYA’: return ‘https://preview-kly.akamaized.net/bola/liga1/logo-persebaya.png’; break; case ‘PSIS SEMARANG’: return ‘https://preview-kly.akamaized.net/bola/liga1/logo-psis.png’; break; case ‘SEMEN PADANG FC’: return ‘https://preview-kly.akamaized.net/bola/liga1/logo-semen-padang-fc.png’; break; case ‘AREMA FC’: return ‘https://preview-kly.akamaized.net/bola/liga1/logo-arema-fc.png’; break; case ‘PERSERU BADAK LAMPUNG FC’: return ‘https://preview-kly.akamaized.net/bola/liga1/logo-badak-lampung-fc.png’; break; case ‘PERSIPURA JAYAPURA’: return ‘https://preview-kly.akamaized.net/bola/liga1/logo-persipura.png’; break; case ‘PERSELA LAMONGAN’: return ‘https://preview-kly.akamaized.net/bola/liga1/logo-persela.png’; break; } } /*** END of Function Get Emblem Liga 1 Standings ****/ /*** START of [#162749673] [#165715785] Widget Pasang widget visual stories dan mobil otosia ****/ $(document).ready(function () { (function () { const getLiveStreamingStatus = { ‘status’: {}, ‘isItActive’: function () { const klyLiveStreaming = document.querySelector(‘.live-streaming-kly-tv’) if (klyLiveStreaming) { this.status = true } else { this.status = false; } } } const appendVisualStoriesHandler = { ‘isShowOtosia’: function() { const channelName = window.kmklabs.channel.name || null; if (channelName === “Bola” || channelName === “Bisnis” || channelName === “Tekno”) { return true; } return false; }, ‘do’: function () { const pageType = window.kmklabs.pageType || null; const articleType = window.kmklabs.gtm.type || null; if ((pageType === “ChannelPage” || pageType === “ReadPage”) && articleType !== “PhotoGallery”) { const halfpage = $(‘#div-gpt-ad-liputan6-halfpage1’); const widgetVisualStories = “; const widgetOtosia = “; widgetHtml = widgetVisualStories; widgetSelector = ‘.widget-kly-visual-stories’; if (appendVisualStoriesHandler.isShowOtosia()) { widgetHtml = widgetOtosia; widgetSelector = ‘.widget-mobil-otosia’; const host = location.hostname; if (pageType === “ReadPage”) { $(widgetHtml).insertAfter(halfpage); $(widgetSelector).css(‘margin-bottom’, ’15px’); } else { const contentPromotions = contentPromotionHandler.getAllContentPromotion(); if (contentPromotions != undefined) { $(widgetHtml).insertAfter(contentPromotions[1]); }else if(host.indexOf(‘hot’) > -1 || host.indexOf(‘surabaya’) > -1){ //$(“#popular-articles”).before($(widgetHtml)); $($(“.channel-ad_ad-mr1”).parents(‘.box’)).before($(widgetVisualStories)); } } } } } } const contentPromotionHandler = { ‘getAllContentPromotion’: function () { const contentPromotions = document.querySelectorAll(‘.content-promotion’); if (contentPromotions.length != 0) { return contentPromotions; } } } getLiveStreamingStatus.isItActive(); appendVisualStoriesHandler.do(); })(); }); /*** END of [#162749673] [#165715785] Widget Pasang widget visual stories dan mobil otosia ****/ /*** START of [#163475658] Visual adjustment container slim ****/ window.addEventListener(‘scroll’,function(){ let container = document.querySelector(‘.container-main_slim’); if(container) { container.style = “”; } }); /*** END of [#163475658] Visual adjustment container slim ****/ /*** START of [GPT] INFEED SDK ****/ if ( [“ChannelPage”].includes(window.kmklabs.pageType) ) { if( document.getElementById(“inf-1”) ) { infInitCfg = { publisherId : 4685495694, wrapperPage : ‘https://www.liputan6.com/infeed/wrapper.html’, slots : [‘inf-1’, ‘inf-2’, ‘inf-3’, ‘inf-4’, ‘inf-5’, ‘inf-6’], seoUrl : true, templateID : 163 }; var infJS = document.createElement(“script”); infJS.type = “text/javascript”; infJS.async = 1; infJS.src = “https://d.infeed.id/resources/js/v0.0.2/infeed-init.js”; document.body.appendChild(infJS); } } else if( [‘ReadPage’].includes(window.kmklabs.pageType) ) { var getUrlParameter = function getUrlParameter(sParam) { var sPageURL = window.location.search.substring(1), sURLVariables = sPageURL.split(‘&’), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVariables[i].split(‘=’); if (sParameterName[0] === sParam) { return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]); } } }; if( getUrlParameter(‘related’) != ‘dable’ ) { var observer = new MutationObserver(function(mutations) { var c = 1; $(‘#related-news .relateds-slow–lattice–item’).each(function(i){ if( [4,5,6,7,8,9].includes((i+1)) ) { $(this).addClass(‘infeed-slot’); $(this).attr(‘data-template’, 164); $(this).attr(‘data-slot’, c); $(this).attr(‘replace’, true); c++; } }); (function(i,n,f,e,ed,kl,y){ i.infeedConfig = ed;i[ed]=i[ed]||function(){(i[ed].q=i[ed].q||[]).push(arguments);}; kl=n.createElement(f);y=n.getElementsByTagName(f)[0];kl.async=1; kl.src=e;y.parentNode.insertBefore(kl,y); })(window, document, ‘script’, ‘//d.infeed.id/resources/js/v1.0.0/infeed-sdk.js’,’inf’); inf(‘publisher’, ‘4685495694’); inf(‘class’, ‘infeed-slot’); inf(‘wrapper’, ‘https://www.liputan6.com/infeed/’); }); if ($(‘.relateds-async.js-related-articles-placeholder’).length) { observer.observe(document.querySelector(‘.relateds-async.js-related-articles-placeholder’), { attributes: true, childList: true, characterData: true }); } } } /*** END of [GPT] INFEED SDK ****/ /*** START of [#166695035] [Liputan6] A/B Test Rekomendasi Dable Desktop ****/ (function () { $(window).load(function () { var getUrlParameter = function getUrlParameter(sParam) { var sPageURL = window.location.search.substring(1), sURLVariables = sPageURL.split(‘&’), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVariables[i].split(‘=’); if (sParameterName[0] === sParam) { return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]); } } }; if (window.kmklabs.pageType === ‘ReadPage’ && getUrlParameter(‘related’) === ‘dable’ && window.kmklabs.article.type !== “PhotoGallery”) { $(‘

‘).insertAfter(‘.relateds-slow__header’); (function (d, a, b, l, e, _) { if (d[b] && d[b].q) return; d[b] = function () { (d[b].q = d[b].q || []).push(arguments) }; e = a.createElement(l); e.async = 1; e.charset = ‘utf-8’; e.src = ‘//static.dable.io/dist/plugin.min.js’; _ = a.getElementsByTagName(l)[0]; _.parentNode.insertBefore(e, _); })(window, document, ‘dable’, ‘script’); dable(‘renderWidget’, ‘dablewidget_BoxBAkl8’); } }) })() /*** END of [#166695035] [Liputan6] A/B Test Rekomendasi Dable Desktop ****/ /*** START of [#167160621] Tambah Sub Menu Klasemen di Kanal Bola – Desktop ****/ $(document).ready(function () { (function () { const urlActive = window.location.href; const channelName = window.kmklabs.channel.name; const subMenuKlasemen = `

`; if (channelName == ‘Bola’){ $(‘ul.navbar–menu-subchannel__list’).append(subMenuKlasemen); } if (urlActive.match(‘\pages/klasemen-liga’)) { $(‘ul.navbar–menu-subchannel__list’).append(subMenuKlasemen); $(‘li.navbar–menu-subchannel__item[id=”klasemen-liga”]’).addClass(‘navbar–menu-subchannel__item_active’); } })(); }); /*** END of [#167160621] Tambah Sub Menu Klasemen di Kanal Bola – Desktop ****/ /*** START of [#170696740] Gateway Visual Story di Desktop ****/ if(window.kmklabs.pageType == ‘ReadPage’){ $(”).insertAfter(‘#div-gpt-ad-liputan6-halfpage1’); }else{ $(”).insertAfter(‘.channel-ad_ad-mr1’); } /*** END of [#170696740] Gateway Visual Story di Desktop ****/ /*** START of [Bug] [#162007226] Visual Adjustment Header, Body, & Footer [1 of 2] ****/ $(document).ready(function () { (function () { const cssLoader = { ‘urlPrefix’: ‘?newPadding’, ‘cssFileLocation’: ‘./index.css’, ‘cssInline’: ` // [Bug] [#162007226] Visual Adjustment Header, Body, & Footer .navbar–top__wrapper { padding: 0px 12px; } .navbar–menu__list { padding: 0px 12px; } .navbar–menu__right-panel { padding-right: 12px; width: 135px; } .navbar–menu__list_slim { width: 835px!important; } .navbar–menu_slim .navbar–menu__right-panel { padding-right: 0px; width: 133px; } .navbar–menu-subchannel { padding: 0px 12px; } .navbar–menu-subchannel__container{ padding: 0px 12px; } .footer__row { padding: 0px 12px; } .footer__link-wrapper { width: 477px; } .container-main #main { padding: 0px 12px; } .container-main_slim #main { padding: 0px 12px; } .inner-container-article { width: 640px; } .photogalleries .container-main #main { padding: 0px 0px; } .photogalleries .container-main_slim #main { padding: 0px 0px; } .videogalleries .container-main #main { padding: 0px 0px; } .videogalleries .container-main_slim #main { padding: 0px 0px; } /* add padding in photo */ .photogalleries .gallery–headlines__featured-aside { padding: 0px 12px; background-color: #FFFFFF; } .photogalleries .gallery–headlines__featured { position: relative; float: left; width: 725px; } .photogalleries .gallery–headlines–featured–photo__image img { position: relative; bottom: 21px; } .photogalleries section#photo-gallery-popular { padding: 0px 12px; } .photogalleries .gallery–grid__item.js-gallery-grid-item { width: 230px; margin-right: 12px; } .photogalleries section#photo-gallery-recommended { padding: 0px 12px; } .photogalleries section#photo-gallery-latest { padding: 0px 12px; } .videogalleries .content { padding: 0px 12px; } .videogalleries .gallery–headlines-big–video__wrapper { width: 294px; } .videogalleries .gallery–grid__item.js-gallery-grid-item.gallery–grid__item-headline { margin-right: 12px; } .videogalleries .main .content .box-main { margin-right: 16px; } #search-filter .articles–search-filter__container { padding: 0px 7px; } `, ‘cssCallerExternal’: function () { const cssLink = document.createElement(“link”); cssLink.setAttribute(“rel”, “stylesheet”); cssLink.setAttribute(“type”, “text/css”); cssLink.setAttribute(“href”, this.cssFileLocation); return cssLink; }, ‘cssCreator’: function () { const styleTag = document.createElement(‘style’); styleTag.type = ‘text/css’; styleTag.appendChild(document.createTextNode(this.cssInline)); return styleTag; }, ‘getURL’: function () { const bodyDOM = document.querySelector(‘body’); const url = window.location.href; // if (url.includes(cssLoader.urlPrefix)) { // } bodyDOM.appendChild(this.cssCreator()) } } const cosmeticHandler = { ‘checkPage’: function () { const pageType = window.kmklabs.pageType; const typeArticle = window.kmklabs.gtm.type; const category = window.kmklabs.gtm.category; const myProfil = window.location.pathname; const isItInProfilPages = myProfil.includes(‘/me/’); if (pageType === “CustomPage” || (pageType === “ReadPage” && typeArticle === “PhotoGallery”) || category === “TagPage” || isItInProfilPages === true || pageType === “IndeksPage”) { return false } else { return true } } } if (cosmeticHandler.checkPage()) { cssLoader.getURL(); } })(); }) /*** END of [Bug] [#162007226] Visual Adjustment Header, Body, & Footer [1 of 2] ****/ /*** START of [Bug] [#162007226] Visual Adjustment Header, Body, & Footer [2 of 2] ****/ $(document).ready(function () { const cssLoader = { ‘urlPrefix’: ‘?newPadding’, ‘cssFileLocation’: ‘./index.css’, ‘cssInline’: ` .navbar–top–logo__site-title { padding: 0px 0px 0px 12px; } .navbar–top–user-dropdown { padding: 0px 12px 0px 0px; } `, ‘cssCallerExternal’: function () { const cssLink = document.createElement(“link”); cssLink.setAttribute(“rel”, “stylesheet”); cssLink.setAttribute(“type”, “text/css”); cssLink.setAttribute(“href”, this.cssFileLocation); return cssLink; }, ‘cssCreator’: function () { const styleTag = document.createElement(‘style’); styleTag.type = ‘text/css’; styleTag.appendChild(document.createTextNode(this.cssInline)); return styleTag; }, ‘getURL’: function () { const rawURL = window.location.href; const headDOM = document.querySelector(‘head’); const bodyDOM = document.querySelector(‘body’); const subCategory = window.kmklabs.gtm.subCategory; const url = window.location.href; // if (url.includes(cssLoader.urlPrefix)) { if (subCategory !== “pilpres”) { bodyDOM.appendChild(this.cssCreator()); } // } // load from href // rawURL.includes(this.urlPrefix) ? headDOM.appendChild(this.cssCallerExternal()) : null; // load from internal } } cssLoader.getURL(); // jsLoader.getURL(); }); /*** END of [Bug] [#162007226] Visual Adjustment Header, Body, & Footer [2 of 2] ****/ /*** START of [#167776218] [Liputan6] Autoplay Video on viewport – desktop ****/ $(document).ready(function() { const videoEmbed = { ‘setAutoPlay’ : function(el) { video = el.find(‘.read-page–video-gallery–item .vidio-embed.read-page–video-gallery–item__vidio-embed’); if(inViewPort(video)) { videoEmbed.play(video); } }, ‘stopAutoPlay’ : function(el) { video = el.find(‘.read-page–video-gallery–item .vidio-embed.read-page–video-gallery–item__vidio-embed’); if(!inViewPort(video)) { videoEmbed.stop(video); } }, ‘play’ : function(el) { let src = el.attr(‘src’); if(src.indexOf(‘autoplay=false’) >= 0) { el.attr(‘src’ , src.replace(‘autoplay=false’, ‘autoplay=true’)); } el.parents(‘.main.read-page–core-article’).removeClass(‘main’).addClass(‘play’); el[0].contentWindow.postMessage(“play”, “*”); }, ‘stop’ : function(el) { let src = el.attr(‘src’); el.parents(‘.read-page–core-article’).addClass(‘main’).removeClass(‘play’); el[0].contentWindow.postMessage(“pause”, “*”); } } function throttle(fn, wait) { var time = Date.now(); return function() { if ((time + wait – Date.now()) < 0) { fn(); time = Date.now(); } } } function scrollCallback() { $(‘.main.read-page–core-article’).each(function(index, item) { videoEmbed.setAutoPlay($(item)); }); $(‘.play.read-page–core-article’).each(function(index, item) { videoEmbed.stopAutoPlay($(item)); }); } function inViewPort(el) { if(el.length > 0) { var scrollPos = $(window).scrollTop(); var bottomPos = scrollPos + $(window).height(); var elementTopPos = el.offset().top; var elementBottomPos = el.offset().top + el.height(); return (bottomPos > elementTopPos && elementTopPos > scrollPos) || (bottomPos > elementBottomPos && elementBottomPos > scrollPos) || (scrollPos > elementTopPos && bottomPos < elementBottomPos); } } if (window.kmklabs.gtm.editorialType != ‘advertorial’ && window.kmklabs.pageType == ‘ReadPage’) { window.addEventListener(‘scroll’, throttle(scrollCallback, 1000)); } }); /*** END of [#167776218] [Liputan6] Autoplay Video on viewport – desktop ****/ /*** START of Info contact measure footer with ads ****/ if(kmklabs.channel.id==188 & kmklabs.category.id==188) { $(“.main”).attr(“style”,”min-height: 145px”); $(“#skinads”).attr(“style”,”z-index: 1″); } /*** END of Info contact measure footer with ads ****/

Berita ini telah tayang di: Agregasi Nasional
Tanggal tayang: Juni 30, 2020
Author:
Didukung oleh: Indonesiadigicom

Tinggalkan Komentar

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *