-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
402 lines (384 loc) · 10.7 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
>
<title>Incident Timeline</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.js"></script>
<link
href="https://cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.css"
rel="stylesheet"
type="text/css"
/>
<style>
#timeline {
width: 100%;
height: 600px;
}
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.4);
}
.modal-content {
background-color: #fefefe;
margin: 15% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
max-width: 600px;
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
</style>
</head>
<body>
<div id="timeline"></div>
<div
id="itemModal"
class="modal"
>
<div class="modal-content">
<span class="close">×</span>
<h2 id="modalTitle"></h2>
<div id="modalContent"></div>
</div>
</div>
<script>
// Incidents data will be added here
const incidents = [
{
date: "2024-08-22",
type: "Text",
time: "8:43 PM",
description: "Text me",
phoneNumberContacted: "(785) 249-7724",
stalkersPhoneNumber: "(316) 640-4448",
feeling: "Fear",
threatOfHarm: "No",
reportedToPolice: "No",
sendForApproval: "Yes, send for approval",
investigatorsEmail: "[email protected]"
},
{
date: "2024-08-22",
type: "In Person Contact",
time: "8:40 PM",
description: "Drove by",
threatOfHarm: "No",
reportedToPolice: "No",
sendForApproval: "Yes, send for approval",
investigatorsEmail: "[email protected]"
},
{
date: "2019-03-22",
type: "Postal Mail",
time: "7:34 PM",
description: "Sent me card",
address: "2000 SE ECHORIDGE CIR, apt 36, 36 Topeka, KS, 66607-1981",
threatOfHarm: "No",
reportedToPolice: "No"
},
{
date: "2019-06-23",
type: "Other",
time: "7:33 PM",
description: "Made fake dating profile ",
threatOfHarm: "No",
reportedToPolice: "No"
},
{
date: "2019-08-27",
type: "Hacking",
time: "7:31 PM",
description: "Hacked google searching for characteristics of a truly bad mother",
threatOfHarm: "No",
reportedToPolice: "No"
},
{
date: "2018-05-16",
type: "Email",
time: "9:41 PM",
description: "Email me about watching me",
emailSentTo: "[email protected]",
stalkersEmailSentFrom: "[email protected]",
threatOfHarm: "Yes",
reportedToPolice: "No",
sendForApproval: "No, do not send"
},
{
date: "2018-08-22",
type: "Social Media",
time: "7:28 PM",
description: "Messaging me on fb messenger ",
threatOfHarm: "Yes",
reportedToPolice: "No",
sendForApproval: "No, do not send"
},
{
date: "2024-08-22",
type: "Email",
time: "7:24 PM",
description: "Emal.me with threat",
emailSentTo: "[email protected]",
threatOfHarm: "Yes",
reportedToPolice: "No",
sendForApproval: "No, do not send"
},
{
date: "2017-08-22",
type: "Postal Mail",
time: "7:22 PM",
description: "Sent a letter to me",
address: "2000 SE ECHORIDGE CIR, apt 36, 36 Topeka, Ks, 66607-1981",
threatOfHarm: "No",
reportedToPolice: "Yes",
nameOfOfficer: "Melissa Howell ",
whatWasDone: "Report made",
sendForApproval: "No, do not send"
},
{
date: "2016-11-29",
type: "Email",
time: "11:20 PM",
description: "Email apologizing",
emailSentTo: "[email protected]",
stalkersEmailSentFrom: "[email protected]",
threatOfHarm: "No",
reportedToPolice: "No",
sendForApproval: "No, do not send"
},
{
date: "2016-12-22",
type: "Email",
time: "7:19 PM",
description: "Email asking to call",
emailSentTo: "[email protected]",
stalkersEmailSentFrom: "[email protected]",
threatOfHarm: "Yes",
reportedToPolice: "No",
sendForApproval: "No, do not send"
},
{
date: "2016-12-12",
type: "Email",
time: "5:18 PM",
description: "Email mee",
emailSentTo: "[email protected]",
stalkersEmailSentFrom: "[email protected]",
threatOfHarm: "No",
reportedToPolice: "No",
sendForApproval: "No, do not send"
},
{
date: "2016-11-25",
type: "Email",
time: "5:13 PM",
description: "Email me again ",
emailSentTo: "[email protected]",
stalkersEmailSentFrom: "[email protected]",
threatOfHarm: "No",
reportedToPolice: "No",
sendForApproval: "No, do not send"
},
{
date: "2016-11-29",
type: "Email",
time: "8:15 AM",
description: "Another email bec i wint respons",
emailSentTo: "[email protected]",
stalkersEmailSentFrom: "[email protected]",
threatOfHarm: "No",
reportedToPolice: "No",
sendForApproval: "No, do not send"
},
{
date: "2016-11-28",
type: "Email",
time: "12:05 PM",
description: "Email me again",
emailSentTo: "[email protected]",
stalkersEmailSentFrom: "[email protected]",
threatOfHarm: "No",
reportedToPolice: "Yes",
nameOfOfficer: "Edward Mora",
whatWasDone: "Said nothing an be done. ",
sendForApproval: "No, do not send"
},
{
date: "2016-11-30",
type: "Hacking",
time: "4:18 PM",
description: "Hacked my fb",
threatOfHarm: "No",
reportedToPolice: "No",
sendForApproval: "No, do not send"
},
{
date: "2016-12-02",
type: "3rd Party Contact",
time: "7:08 PM",
description: "Contacted her om fb messenger ",
thirdPartyName: "Regan Mcgee",
thirdPartyPhoneNumber: "(316) 5249987",
threatOfHarm: "No",
reportedToPolice: "No",
sendForApproval: "No, do not send"
},
{
date: "2016-11-28",
type: "Social Media",
time: "12:33 PM",
description: "Messaged me on fb messenger ",
threatOfHarm: "No",
reportedToPolice: "No",
sendForApproval: "No, do not send"
},
{
date: "2016-11-25",
type: "Text",
time: "1:09 PM",
description: "Text me because he knew I qasnt where I said I was",
phoneNumberContacted: "(785) 2497724",
stalkersPhoneNumber: "(913) 2403031",
threatOfHarm: "No",
reportedToPolice: "No",
sendForApproval: "No, do not send"
},
{
date: "2016-11-26",
type: "Call",
time: "1:09 AM",
description: "Jesse kept calling me and when I did not answer.He drove 2.5 hours down to Derby.Kansas at 1 AM and begin ringing.The doorbell 20 times until I called 91.1 at 1:32 AM.I sent him a message.Kirk police to not contact me any further.",
phoneNumberContacted: "(785) 2497724",
stalkersPhoneNumber: "(316) 6404448",
threatOfHarm: "No",
reportedToPolice: "Yes",
nameOfOfficer: "Derrick Slaton ",
whatWasDone: "Report taken",
sendForApproval: "No, do not send"
},
{
date: "2017-11-12",
type: "Other",
time: "6:45 PM",
description: "Police came to help me get away from the house because Jesse took my car keys with him so I could not leave.The police brought me to a hotel.",
threatOfHarm: "No",
reportedToPolice: "Yes",
nameOfOfficer: "Kirk Brown",
whatWasDone: "Reprt made",
sendForApproval: "No, do not send",
witnessName: "Kirk Brown",
witnessPhoneNumber: "(316) 7881557",
witnessEmail: "[email protected]",
witnessAddress: "Derby, Ks, 67037"
},
{
date: "2024-08-22",
type: "Email",
time: "5:35 PM",
description: "Sent me another email ",
emailSentTo: "[email protected]",
stalkersEmailSentFrom: "[email protected]",
threatOfHarm: "Yes",
reportedToPolice: "No",
sendForApproval: "Yes, send for approval",
investigatorsEmail: "[email protected]"
}
];
// Create dataset for vis.js
const items = new vis.DataSet(
incidents.map((item, index) => ({
id: index,
content: item.description,
start: item.date
}))
);
// Configuration for the Timeline
const options = {
width: "100%",
height: "100%",
margin: {
item: 20
}
};
// Create a Timeline
const container = document.getElementById("timeline");
const timeline = new vis.Timeline(container, items, options);
// Modal functionality
const modal = document.getElementById("itemModal");
const closeBtn = document.getElementsByClassName("close")[0];
closeBtn.onclick = function () {
modal.style.display = "none";
};
window.onclick = function (event) {
if (event.target == modal) {
modal.style.display = "none";
}
};
// Timeline item click event
timeline.on("select", function (properties) {
if (properties.items.length > 0) {
const selectedId = properties.items[0];
const selectedItem = incidents[selectedId];
if (selectedItem) {
const modalTitle = document.getElementById("modalTitle");
const modalContent = document.getElementById("modalContent");
modalTitle.textContent = `Incident on ${selectedItem.date}`;
let content = `
<p><strong>Type:</strong> ${selectedItem.type}</p>
<p><strong>Time:</strong> ${selectedItem.time}</p>
<p><strong>Description:</strong> ${selectedItem.description}</p>
<p><strong>Threat of Harm:</strong> ${selectedItem.threatOfHarm}</p>
<p><strong>Reported to Police:</strong> ${selectedItem.reportedToPolice}</p>
`;
// Add additional fields if they exist
if (selectedItem.phoneNumberContacted) {
content += `<p><strong>Phone Number Contacted:</strong> ${selectedItem.phoneNumberContacted}</p>`;
}
if (selectedItem.stalkersPhoneNumber) {
content += `<p><strong>Stalker"s Phone Number:</strong> ${selectedItem.stalkersPhoneNumber}</p>`;
}
if (selectedItem.emailSentTo) {
content += `<p><strong>Email Sent To:</strong> ${selectedItem.emailSentTo}</p>`;
}
if (selectedItem.stalkersEmailSentFrom) {
content += `<p><strong>Stalker"s Email:</strong> ${selectedItem.stalkersEmailSentFrom}</p>`;
}
if (selectedItem.address) {
content += `<p><strong>Address:</strong> ${selectedItem.address}</p>`;
}
if (selectedItem.nameOfOfficer) {
content += `<p><strong>Name of Officer:</strong> ${selectedItem.nameOfOfficer}</p>`;
}
if (selectedItem.whatWasDone) {
content += `<p><strong>What Was Done:</strong> ${selectedItem.whatWasDone}</p>`;
}
modalContent.innerHTML = content;
modal.style.display = "block";
}
}
});
</script>
</body>
</html>