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();
|
||||
|
|
@ -3,6 +3,17 @@ function offersPage() {
|
|||
return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ' ');
|
||||
}
|
||||
|
||||
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';
|
||||
});
|
||||
|
||||
const buttonStartCreateOffer = document.getElementById(
|
||||
'button-start-create-offer'
|
||||
);
|
||||
|
|
|
|||
|
|
@ -11,6 +11,6 @@
|
|||
<%- include("partials/appCommonHeader") %>
|
||||
|
||||
<%- include("partials/appCommonScripts") %>
|
||||
<script src="/javascript/home.js"></script>
|
||||
<script src="/javascript/home.bundle.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue