Skip to content

Commit

Permalink
created PlaceFinder class in SharePlace.js and got access to the form…
Browse files Browse the repository at this point in the history
… and button in index.html from the root in dist folder
  • Loading branch information
sofiane-abou-abderrahim committed Oct 17, 2023
1 parent c404a85 commit 58f5d3c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/node_modules
node_modules
13 changes: 13 additions & 0 deletions src/SharePlace.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class PlaceFinder {
constructor() {
const addressForm = document.querySelector('form');
const locateUserBtn = document.getElementById('locate-btn');

locateUserBtn.addEventListener('click', this.locateUserHandler);
addressForm.addEventListener('submit', this.findAddressHandler);
}

locateUserHandler() {}

findAddressHandler() {}
}

0 comments on commit 58f5d3c

Please sign in to comment.