aboutsummaryrefslogtreecommitdiff
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
parentbf2b97832c3746e3f7f18c6aec253c76124e5564 (diff)
code cleanup
-rw-r--r--mobile/screens/Form1.js2
-rw-r--r--web/public/javascripts/map.js6
-rw-r--r--web/public/stylesheets/style.css22
3 files changed, 15 insertions, 15 deletions
diff --git a/mobile/screens/Form1.js b/mobile/screens/Form1.js
index 9aa20c0..3be77f8 100644
--- a/mobile/screens/Form1.js
+++ b/mobile/screens/Form1.js
@@ -114,7 +114,7 @@ export default class Form1 extends Component {
var value = this.refs.form.getValue();
if (value) {
this._onSubmitPress(value);
- //this.clearForm();
+ this.clearForm();
}
}
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);
diff --git a/web/public/stylesheets/style.css b/web/public/stylesheets/style.css
index 429a8f2..74660a8 100644
--- a/web/public/stylesheets/style.css
+++ b/web/public/stylesheets/style.css
@@ -33,8 +33,8 @@ a {
margin-bottom: 10px;
}
#report-container {
- overflow: auto;
- max-height: 750px;
+ overflow: auto;
+ max-height: 750px;
}
#report {
background-color: #0CC5EA;
@@ -44,19 +44,19 @@ a {
margin-bottom: 5px;
padding: 5px;
border-radius: 10px;
- display: flex;
- flex-flow: row wrap;
- justify-content: flex-end;
- flex-direction: column;
+ display: flex;
+ flex-flow: row wrap;
+ justify-content: flex-end;
+ flex-direction: column;
}
#report strong {
- font-size: 22px;
- font-style: italic;
- margin: auto;
- padding: 5px;
+ font-size: 22px;
+ font-style: italic;
+ margin: auto;
+ padding: 5px;
}
#report span {
- background-color: white;
+ background-color: white;
padding: 15px;
border-radius: 10px;
font-weight: lighter;