aboutsummaryrefslogtreecommitdiff
path: root/web/public/javascripts/map.js
diff options
context:
space:
mode:
authorKumar Damani <kumar.damani@mail.utoronto.ca>2019-03-15 21:29:30 +0000
committerKumar Damani <kumar.damani@mail.utoronto.ca>2019-03-15 21:29:30 +0000
commitc1c607231c344185061d0b042374728cfb89b8a4 (patch)
treeae09e509040f48217dd00549d0460b447f979ec8 /web/public/javascripts/map.js
parentbf2b97832c3746e3f7f18c6aec253c76124e5564 (diff)
code cleanup
Diffstat (limited to 'web/public/javascripts/map.js')
-rw-r--r--web/public/javascripts/map.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/public/javascripts/map.js b/web/public/javascripts/map.js
index 98e0898..8d4fc3b 100644
--- a/web/public/javascripts/map.js
+++ b/web/public/javascripts/map.js
@@ -42,7 +42,7 @@ function showDetails(e) {
let report = document.getElementById('report');
let prevUserInputs = report.getElementsByClassName('user-input');
for (let i=0; i < prevUserInputs.length; i++) {
- prevUserInputs[i].innerHTML = "";
+ prevUserInputs[i].innerHTML = "";
}
// put gender of the person
@@ -55,14 +55,14 @@ function showDetails(e) {
let ageRangeTextSpan = document.getElementById('report-age-range');
ageRangeTextSpan.className = 'user-input';
let ageRangeText = document.createTextNode(
- " ~ " + layer.feature.geometry['age'] + " years");
+ " ~ " + layer.feature.geometry['age'] + " years");
ageRangeTextSpan.appendChild(ageRangeText);
// put race of person
let raceTextSpan = document.getElementById('report-race');
raceTextSpan.className = 'user-input';
let raceText = document.createTextNode(
- Races[layer.feature.geometry['race']]
+ Races[layer.feature.geometry['race']]
);
raceTextSpan.appendChild(raceText);