' + '
' + '
'; }); $("#namus-dpf-pd").html(retDPFs == '' ? 'No Information Entered' : retDPFs); } function buildClothingAndAccessories(data) { // Clothing Accessories var namusCAA = JSON.parse(data[0].clothingandaccessories); var retCAAs = ''; namusCAA.forEach(function (caa) { retCAAs += '
' + '
' + '
' + '
' + '
' + '
' + '
' + emptyIfNull(caa.ArticleLocationName) + '
'; }); $("#namus-caa-caa").html(retCAAs == '' ? 'No Information Entered' : retCAAs); } function buildAdditionalCaseInformation(data) { // Additional Case Information var namusACI = JSON.parse(data[0].transportation); var retACI = ''; namusACI.forEach(function (aci) { retACI += '
' + '
' + '
' + '
' + aci.Year + ' ' + aci.Make + ' ' + aci.Model + '
' + '
' + '
' + aci.Style + '
' + '
' + '
' + aci.Color + '
' + '
' + '
' + aci.State + '
' + '
' + '
' + aci.LicensePlate + '
' + '
' + '
' + aci.ExpirationYear + '
' + '
' + '
' + '
' + '
' + aci.Comments.replace(/~/g,'
') + '
' + '
'; }); $("#namus-transport-aci").html(retACI == '' ? 'No Information Entered' : retACI); if (emptyIfNull(data[0].transportationnotes) != '') { var transNotes = JSON.parse(data[0].transportationnotes); var retNotes = ''; transNotes.forEach(function (note) { retNotes += note.Note + '
'; }); retNotes == '' ? '' : $("#namus-noteslabel-aci").html('Transportation Notes'); $("#namus-notes-aci").html(retNotes); } } function buildImages(data) { // Images var namusImages = JSON.parse(data[0].images); var retImages = ''; namusImages.forEach(function (image) { retImages += '
' + '
' + splitStringCaps(image.CategoryName) + '
' + '' + '
' + '
' + '' + '
' + '
' + '
Uploaded:
' + image.Uploaded + '
' + '
' + '
' + splitStringCaps(image.Caption) + '
' + '
'; }); //$("#namus-images").html(retImages == '' ? 'No Images Uploaded' : retImages); $("#namus-images").html(retImages); } function buildDocuments(data) { // Documents var namusDocs = JSON.parse(data[0].documents); var retDocs = ''; namusDocs.forEach(function (doc) { retDocs += '
' + '
' + splitStringCaps(doc.CategoryName) + '
' + '' + '
' + '
' + '' + '
' + '
' + '
Uploaded:
' + doc.Uploaded + '
' + '
' + '
' + splitStringCaps(doc.Caption) + '
' + '
'; }); //$("#namus-docs").html(retDocs == '' ? 'No Documents Uploaded' : retDocs); $("#namus-docs").html(retDocs); } function buildContacts(data) { // Contacts //Investigating Agencies var namusIAs = JSON.parse(data[0].investigatingagencies); var retIAs = ''; namusIAs.forEach(function (ia) { retIAs += '
' + '
' + '
' + (ia.CaseOwner == 'Y' ? '
Case Owner
' : '' ) + '
' + ia.AgencyName + '
' + '
' + '
' + '
' + ia.AgencyStreet1.replace('--','') + '
' + ia.AgencyStreet2.replace('--','') + '
' + ia.AgencyCity.replace('--','') + ', ' + ia.AgencyState.replace('--','') + ' ' + ia.AgencyZipCode .replace('--','')+ '
' + '
' + '
' + '' + ia.AgencyCounty + '
' + '
' + '
' + '
' + formatPhoneNumber(ia.AgencyMainPhone) + '
' + '
' + '
' + '
' + '--' + '
' + '
' + '
' + '
' + '
' + '
' + '
' + '
' + '
' + ia.AgencyCaseNumber + '
' + '
' + '
' + '
' + ia.AgencyDateReported + '
' + '
' + '
' + '
' + '
' + '
'; }); $("#namus-IAs").html(retIAs == '' ? 'No Information Entered' : retIAs); } function buildCaseContributors(data) { // Case Contributors var namusContributors = JSON.parse(data[0].casecontributors); var retContribs = ''; namusContributors.forEach(function (contrib) { retContribs += '
' + '
' + '
' + '
' + contrib.FirstName + ' ' + contrib.LastName + '
' + '
' + '
' + '
' + '
' + splitStringCaps(contrib.ContributorRelationshipName) + '
' + '
' + '
' + '
--
' + '
' + '
' + '
' + '
' + '
' + contrib.AgencyName + '
' + '
' + '
' + '
' + '
' + contrib.Address1 + '
' + contrib.Address2 + '
' + contrib.City + ', ' + contrib.State + ' ' + contrib.ZipCode + '
' + '
' + '
' + '
' + contrib.CountyId + '
' + '
' + '
' + '
' + '
' + '
' + formatPhoneNumber(contrib.Phone) + '
' + '
' + '
' + '
' + contrib.Email + '
' + '
' + '
' + '
' + contrib.WebsiteUrl + '
' + '
' + '
' + '
' + '
'; }); $("#namus-contributors").html(retContribs == '' ? 'No Information Entered' : retContribs); } function buildContactNamus(data) { var namusRPS = JSON.parse(data[0].rpscontact); $("#namus-RPS-name").html('' + namusRPS.FirstName + ' ' + namusRPS.LastName + ''); $("#namus-RPS-phone").html(formatPhoneNumber(namusRPS.Phone)); $("#namus-RPS-email").html('' + namusRPS.Email + '' ); } $(document).ready(function () { $.ajax({ url: "https://data.ojp.usdoj.gov/resource/ffvt-bfb5.json", cache: false, type: "GET", data: { //"$limit": 5000, "$$app_token": "Xd0jQDzoPOATVFd2mXa3xe4LO", "casenumber": getCaseNumber() //"MP41624" //"%27" + getCaseNumber() + "%27" // getUrlParam("id", 0) } }).done(function (data) { if (data.length == 0) { $("#msg").html('
This page is no longer accessible.
'); return; } buildPageTitles(data); buildNamusHeader(data); buildCaseNumbers(data); buildDemographics(data); buildCirc*mstances(data); buildPhysicalDescription(data); buildClothingAndAccessories(data); buildAdditionalCaseInformation(data); buildImages(data); buildDocuments(data); buildContacts(data); buildCaseContributors(data); //buildContactNamus(data); $(".grid-row").css("visibility", "visible"); }); }); })(jQuery); });
>
Distinctive Physical Features
Investigating Agencies
Case Contributors
Need help or have a question? Contact Us