home
This commit is contained in:
parent
0f7ec6f521
commit
17517f798d
4 changed files with 27 additions and 1 deletions
14
src/front/pages/home.js
Normal file
14
src/front/pages/home.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
const homeFunction = () => {
|
||||
const navbuttonHome = document.getElementById('navbutton-home');
|
||||
const navbuttonOffers = document.getElementById('navbutton-offers');
|
||||
|
||||
navbuttonHome.addEventListener('click', () => {
|
||||
window.location.href = '/home';
|
||||
});
|
||||
|
||||
navbuttonOffers.addEventListener('click', () => {
|
||||
window.location.href = '/offers';
|
||||
});
|
||||
};
|
||||
|
||||
homeFunction();
|
||||
Loading…
Add table
Add a link
Reference in a new issue