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..585a39e 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,8 +165,10 @@ var initialY = null; this.heritageDescription.innerText = tree['heritageText']; } else { this.heritageDescriptionContainer.classList.remove('active'); + this.nominateHeritageTree.classList.remove('hidden'); } } else { + this.nominateHeritageTree.classList.remove('hidden'); this.heritageContainer.classList.remove('active'); } }