Skip to content

Commit

Permalink
working on demo
Browse files Browse the repository at this point in the history
  • Loading branch information
makon57 committed Jul 2, 2021
1 parent 7f622f6 commit b605fe9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion public/javascripts/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
window.addEventListener("load", (event)=>{
console.log("hello from javascript!")

const deleteBtn = document.querySelector('.delete-btn');
if (deleteBtn) {
document.querySelector('.review-container').style.visibility = "hidden";
document.querySelector('.review-container').style.padding = "0px";
deleteBtn.addEventListener('click', (event) => {
document.querySelector('.review-container').style.visibility = "visible";

});
}

Expand Down
1 change: 1 addition & 0 deletions public/stylesheets/details.css
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ img {
border: solid 1px black;
margin-left: 30%;
margin-right: 30%;
margin-bottom: 5%;
}

textarea {
Expand Down
2 changes: 1 addition & 1 deletion views/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ block content
div(class="trail-container")
each trail in trails
div(class="trail-div")
a(class='btn btn-primary' href=`/trail/${trail.id}` role='button')
a(class='btn btn-primary' href=`/trail/${trail.id}`)
div(id=`trail-${trail.id}` class='trail-list-item')
p(class="name") #{trail.name}
p(class="state") #{trail.state}
Expand Down

0 comments on commit b605fe9

Please sign in to comment.