generated from datadesk/baker-example-page-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
103 lines (99 loc) · 3.73 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{% extends 'base.html' %}
{% block headline %}A South L.A. neighborhood grapples with a wave of violence{% endblock headline %}
{% block byline %}By <a href="https://palewi.re/docs/first-visual-story/">The First Visual Story Tutorial</a>{% endblock byline %}
{% block pubdate %}
<time datetime="2023-03-04" pubdate>2023-03-04</time>
{% endblock pubdate %}
{% block content %}
<section>
<h3>One corner. Four killings</h3>
<p>The southwest corner of Harvard Park, at West 62nd Street and Harvard Boulevard, has been especially deadly. In the last year-and-a-half, four men have been killed there — while sitting in a car, trying to defuse an argument or walking home from the barber shop or the corner store.</p>
<div id="map"></div>
</section>
<section>
<h3>A South L.A. neighborhood stands apart</h3>
<p>
Harvard Park's 2016 homicide total was its highest in at least 15 years
despite a downward trend in killings across L.A. County.
</p>
<div class="graphics-container">
<div class="graphic">
<!-- first graphic’s embed code goes here -->
<iframe
title="County homicides, 2000-2017"
aria-label="Column Chart"
id="datawrapper-chart-XSj9X"
src="https://datawrapper.dwcdn.net/XSj9X/5/"
scrolling="no"
frameborder="0"
style="width: 0; min-width: 100% !important; border: none;"
height="350"
></iframe>
<script type="text/javascript">
!(function () {
'use strict';
window.addEventListener('message', function (e) {
if (void 0 !== e.data['datawrapper-height']) {
var t = document.querySelectorAll('iframe');
for (var a in e.data['datawrapper-height'])
for (var r = 0; r < t.length; r++) {
if (t[r].contentWindow === e.source)
t[r].style.height = e.data['datawrapper-height'][a] + 'px';
}
}
});
})();
</script>
</div>
<div class="graphic">
<!-- second graphic’s embed code goes here -->
<iframe
title="Harvard Park homicides, 2000-2017"
aria-label="Column Chart"
id="datawrapper-chart-qvF1G"
src="https://datawrapper.dwcdn.net/qvF1G/4/"
scrolling="no"
frameborder="0"
style="width: 0; min-width: 100% !important; border: none;"
height="350"
></iframe>
<script type="text/javascript">
!(function () {
'use strict';
window.addEventListener('message', function (e) {
if (void 0 !== e.data['datawrapper-height']) {
var t = document.querySelectorAll('iframe');
for (var a in e.data['datawrapper-height'])
for (var r = 0; r < t.length; r++) {
if (t[r].contentWindow === e.source)
t[r].style.height = e.data['datawrapper-height'][a] + 'px';
}
}
});
})();
</script>
</div>
</div>
</section>
<section>
<h3>Lives lost in Harvard Park</h3>
<p>The {{ harvard_park_homicides|length }} homicides in Harvard Park since 2000 were primarily black and Latino males, but the list includes husbands, wives, fathers, mothers of all ages, and even some small children.</p>
<div class="row" data-masonry='{"percentPosition": true }'>
{% for obj in harvard_park_homicides %}
<div class="col-sm-6 col-lg-4 mb-4">
<div class="card">
{% if obj.image %}<img class="card-img-top" src="{{ obj.image }}" alt="{{ obj.first_name }} {{ obj.last_name }}">{% endif %}
<div class="card-body">
<a href="https://homicide.latimes.com/post/{{ obj.slug }}" target="_blank">
<strong>
<h5 class="card-title">{{ obj.first_name }} {{ obj.last_name }}</h5>
</strong>
</a>
<p class="card-text">{{ obj.last_name }}, a {{ obj.age}}-year-old {{ obj.race }} {{ obj.gender }}, died in {{ obj.death_year }}.</p>
</div>
</div>
</div>
{% endfor %}
</div>
</section>
{% endblock %}