The Impunity Series

Rappler.com
Rappler’s series of investigations documents the drug war as it continues to be fought across Duterte's presidency

{source}

<style>
bg-image {
position: relative;
padding-bottom: 56.2%;
height: 0;
overflow: hidden;
display: block !important;
-webkit-background-size: 100% auto !important;
-moz-background-size: 100% auto !important;
-o-background-size: 100% auto !important;
background-color: #f4f4f4;
background-size: 100% auto !important;
background-repeat: no-repeat !important;
background-position: top center !important;
background-attachment: scroll !important
}

@media (max-width: 768px) {

#cover-area top-img {

background-position: 58% center !important;

}

#gysharebarh-168712 {

margin-top: 180px;

}

}

#comments-tag-area {
margin-top: 30px;
}

.bottom {
bottom: 3%;
}

wide-image bg-image {
background-attachment: scroll !important;
padding-bottom: 75%;
}

#cxense-final-yml {
display: none;
}

.story-tile h1,
h2,
h3,
h4,
h5,
h6 {
font-family: ‘Roboto Condensed’, Helvetica, Arial, sans-serif !important;
letter-spacing: 0px !important;
text-transform: uppercase;
font-weight: 300 !important;
}

.spec-exec-headline {
color: #fff !Important;
font-family: ‘Roboto Condensed’, Helvetica, Arial, sans-serif !important;
letter-spacing: 0px !important;
font-weight: 300 !important;
text-transform: uppercase;
}

.spec-exec-subhead {
color: #fff !important;
font-size: 16px !important;
}

.spec-exec-byline {
color: #fff !Important;
font-family: ‘Roboto Condensed’, Helvetica, Arial, sans-serif !important;
letter-spacing: 0px !important;
text-transform: uppercase;
font-weight: 300 !important;
}

.full-text text-container {
position: absolute !important;
width: 100%;
text-align: center !important;
padding: 0 16px;
}

#cover-area top-img {
background-image: url(https://assets.rappler.com/612F469A6EA84F6BAE882D2B94A4B421/img/BDB3097009564B1D921E7CE050FA3A06/cag000_ef9823b9becf415cb035c3567d2f6896.jpg);
background-size: cover;
background-position: center;
margin-bottom: 0;
height: 100vh;
}

#cover-area bg-img img {
display: none !important;
}

.tile-subhead {
font-size: 14px !important;
max-width: 500px;
margin: 0 auto;
}

.tile-title {
font-size: 18px;
}

.tint {
/* Permalink – use to edit and share this gradient: http://colorzilla.com/gradient-editor/#000000+0,000000+100&0+0,0.5+100 */
z-index: 1;
background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.95) 90%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.95) 90%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.95) 90%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=’#00000000′, endColorstr=’#80000000′,GradientType=0 ); /* IE6-9 */
position: absolute;
top: 0;
bottom: 0;
width: 100%;
}

@media (min-width: 992px) {

#cover-area .special-execution-wrapper {
width: 100%;
}

.tile-subhead {
font-size: 15px;
}

.tile-title {
font-size: 35px;
}

wide-image bg-image {
padding-bottom: 56.2%;
}

.bottom {
bottom: 10%;
}
}
</style>

<div id=”content-container”>

<div id=”loading-indicator” class=”text-center” style=”min-height: 150px; padding: 20px;”>
<img src=”https://assets.rappler.com/E6CC13E28DE9487D9137A3E6B256AEF7/img/D1EF0AE2FB344B5DA9C3EED579BBC911/preloader.gif” />
</div>
</div>

<script>
const limit = 20;

function getStories() {
$.ajax({
type: ‘GET’,
dataType: ‘json’,
url: ‘https://svc.rappler.com/p/article/tag/Evangelista%20Drug%20War%20Series?limit=20’,
}).done(function(json) {

$(‘#loading’).css(‘display’, ‘none’);
if (limit > json.length) {
limit = json.length;
}
for (var x = 0;
(x < limit); x++) {

var data = json.data[x];

if (typeof(data) != ‘undefined’ && data.id !== 188180 && data.id !== 167952 && typeof(data.images) !== ‘undefined’) {

var headline = data.title.split(‘Impunity: ‘).join(”).split(‘The Drug War: ‘).join(”);

console.log(headline);
var meta = data.metadesc;
var author = data.created_by_name;
var slug = data.url;


var imgPath = data.images[0].tn;
var img = new URL(imgPath).pathname;

$(‘#loading-indicator’).css(‘display’,’none’);

$(‘#content-container’).append(
‘<wide-image style=”margin-bottom: 0; margin-top: -2px;”>’ +
‘<div class=”tint”></div>’ +
`<bg-image style=”background-image: url(https://assets.rappler.com${img}); background-size: cover!important;”></bg-image>` +

‘<text-container class=”bottom full light center” style=”bottom: 7%;cursor: pointer; z-index: 2;”>’ +

‘<h2 class=”no-margin text-center tile-title” style=”font-weight:300; padding-bottom: 12px; cursor: pointer;”>’ +
‘<a href=’ + slug + ‘ target=”_blank” class=”white link” style=”cursor: pointer;”>’ + headline + ‘</a>’ +
‘</h2>’ +

‘<p class=”text-center tile-subhead” style=”cursor: pointer;”>’ +
‘<a href=’ + slug + ‘ target=”_blank” class=”white link” style=”cursor: pointer;”>’ + meta + ‘</a>’ +
‘</p>’ +
‘</text-container>’ +
‘</wide-image>’
);

}

}
});
}
$(document).ready(function() {
getStories();
$(‘.spec-exec-byline:first-of-type’).html(‘TEXT BY PATRICIA EVANGELISTA | PHOTOS BY CARLO GABUCO’);
})
</script>

{/source}