From c993f9884e70fa53c401c4fb8d60cd0addb2ceca Mon Sep 17 00:00:00 2001 From: Isabelle Wagenvoord Date: Sun, 21 Jun 2020 13:54:13 -0700 Subject: [PATCH 1/3] Hide nominate heritage tree section if selected tree is heritage tree --- public/index.html | 13 ++++++++----- public/js/Sidebar.js | 3 +++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/public/index.html b/public/index.html index d8374f2..2a8f2d3 100644 --- a/public/index.html +++ b/public/index.html @@ -245,12 +245,15 @@

REPLACEMENT SPECIES:

STREET SEGMENT:

+
-
Nominate Tree
- - Impressed by this tree? Please nominate it for city recognition as a Santa Monica Heritage - Tree via this form. - +
Report an Issue
diff --git a/public/js/Sidebar.js b/public/js/Sidebar.js index 6cd0429..a4a5458 100644 --- a/public/js/Sidebar.js +++ b/public/js/Sidebar.js @@ -41,6 +41,7 @@ var initialY = null; this.address = document.getElementById('sidebar-address'); this.streetSegment = document.getElementById('sidebar-street-segment'); this.treeDetails = document.getElementById('sidebar-tree-details'); + this.nominateHeritageTree = document.getElementById('sidebar-nominate-heritage-tree'); this.closeButton = document.getElementById('sidebar-close-button'); this.detailsButton = document.getElementById('sidebar-details-button'); //Heritage Trees @@ -155,6 +156,7 @@ var initialY = null; this.image.classList.add('hidden'); } if (tree.heritage === true) { + this.nominateHeritageTree.classList.add('hidden'); this.heritageContainer.classList.add('active'); this.heritageTreeNumber.innerText = '#'+tree['heritageNumber']; this.heritageYearInscribed.innerText = tree['heritageYear']; @@ -163,6 +165,7 @@ var initialY = null; this.heritageDescription.innerText = tree['heritageText']; } else { this.heritageDescriptionContainer.classList.remove('active'); + this.nominateHeritageTree.classList.remove('hidden'); } } else { this.heritageContainer.classList.remove('active'); From 9475a2d0b10fe35b3fa0aebe27900eb044a7a128 Mon Sep 17 00:00:00 2001 From: Isabelle Wagenvoord Date: Sun, 21 Jun 2020 13:54:13 -0700 Subject: [PATCH 2/3] Hide nominate heritage tree section if selected tree is heritage tree --- public/index.html | 13 ++++++++----- public/js/Sidebar.js | 3 +++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/public/index.html b/public/index.html index d8374f2..2a8f2d3 100644 --- a/public/index.html +++ b/public/index.html @@ -245,12 +245,15 @@

REPLACEMENT SPECIES:

STREET SEGMENT:

+
-
Nominate Tree
- - Impressed by this tree? Please nominate it for city recognition as a Santa Monica Heritage - Tree via this form. - +
Report an Issue
diff --git a/public/js/Sidebar.js b/public/js/Sidebar.js index 6cd0429..a4a5458 100644 --- a/public/js/Sidebar.js +++ b/public/js/Sidebar.js @@ -41,6 +41,7 @@ var initialY = null; this.address = document.getElementById('sidebar-address'); this.streetSegment = document.getElementById('sidebar-street-segment'); this.treeDetails = document.getElementById('sidebar-tree-details'); + this.nominateHeritageTree = document.getElementById('sidebar-nominate-heritage-tree'); this.closeButton = document.getElementById('sidebar-close-button'); this.detailsButton = document.getElementById('sidebar-details-button'); //Heritage Trees @@ -155,6 +156,7 @@ var initialY = null; this.image.classList.add('hidden'); } if (tree.heritage === true) { + this.nominateHeritageTree.classList.add('hidden'); this.heritageContainer.classList.add('active'); this.heritageTreeNumber.innerText = '#'+tree['heritageNumber']; this.heritageYearInscribed.innerText = tree['heritageYear']; @@ -163,6 +165,7 @@ var initialY = null; this.heritageDescription.innerText = tree['heritageText']; } else { this.heritageDescriptionContainer.classList.remove('active'); + this.nominateHeritageTree.classList.remove('hidden'); } } else { this.heritageContainer.classList.remove('active'); From dc68b269b3023809407ee9f615975c6dae44ccfc Mon Sep 17 00:00:00 2001 From: Isabelle Wagenvoord Date: Sun, 21 Jun 2020 13:54:13 -0700 Subject: [PATCH 3/3] Hide nominate heritage tree section if selected tree is heritage tree --- public/index.html | 14 ++++++++------ public/js/Sidebar.js | 3 +++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/public/index.html b/public/index.html index d8374f2..2b4571b 100644 --- a/public/index.html +++ b/public/index.html @@ -245,12 +245,14 @@

REPLACEMENT SPECIES:

STREET SEGMENT:

- -
Nominate Tree
- - Impressed by this tree? Please nominate it for city recognition as a Santa Monica Heritage - Tree via this form. - +
Report an Issue
diff --git a/public/js/Sidebar.js b/public/js/Sidebar.js index 6cd0429..4d42243 100644 --- a/public/js/Sidebar.js +++ b/public/js/Sidebar.js @@ -41,6 +41,7 @@ var initialY = null; this.address = document.getElementById('sidebar-address'); this.streetSegment = document.getElementById('sidebar-street-segment'); this.treeDetails = document.getElementById('sidebar-tree-details'); + this.nominateHeritageTree = document.getElementById('sidebar-nominate-heritage-tree'); this.closeButton = document.getElementById('sidebar-close-button'); this.detailsButton = document.getElementById('sidebar-details-button'); //Heritage Trees @@ -155,6 +156,7 @@ var initialY = null; this.image.classList.add('hidden'); } if (tree.heritage === true) { + this.nominateHeritageTree.classList.add('hidden'); this.heritageContainer.classList.add('active'); this.heritageTreeNumber.innerText = '#'+tree['heritageNumber']; this.heritageYearInscribed.innerText = tree['heritageYear']; @@ -165,6 +167,7 @@ var initialY = null; this.heritageDescriptionContainer.classList.remove('active'); } } else { + this.nominateHeritageTree.classList.remove('hidden'); this.heritageContainer.classList.remove('active'); } }