Added menu logic
This commit is contained in:
parent
3bd7cc7651
commit
1c29421f73
2 changed files with 9 additions and 3 deletions
|
|
@ -3,7 +3,11 @@ function initTooltips(section) {
|
|||
const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]');
|
||||
const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl));
|
||||
}
|
||||
|
||||
function checkTermsandConditions(){
|
||||
const checkTerms = document.querySelector('#cgv-check');
|
||||
const createAccountButton = document.querySelector('#btnCreateAccount');
|
||||
createAccountButton.disabled = !checkTerms.checked;
|
||||
}
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
const offmenu = document.getElementById("offSideMenu");
|
||||
|
|
@ -22,5 +26,6 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||
const mediaQuery = window.matchMedia("(max-width: 992px)");
|
||||
toggleMenus(mediaQuery); // Initial check
|
||||
mediaQuery.addEventListener('change', (e) => toggleMenus(e));
|
||||
|
||||
initTooltips(document);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue