Menu MENU
 

Outils pour vous aider





Connexion prise en main à distance

 

 

 

Majuscules Minuscules
sous Windows 10 et 11

 

 

Il est possible de paramètrer son clavier pour sortir du problàme du bouton "Verr Maj" qui nous met une fois en majuscule et une autre fois en minuscule, ce qui fait que nous ne savons jamais dans quelle option nous sommes... Dans la zone de recherche entrez : "Paramètres avancés de clavier" et cliquez sur Entrée
L'écran suivant apparaitra :
Gestion clavier Windows Majuscules Minuscules VERR.MAJ vs Maj

Cliquez sur "Touches de raccourci de langue d'entrée"

Cet écran apparaitra :

Gestion clavier Windows Majuscules Minuscules VERR.MAJ vs Maj

Vous pourez choisir comment déverrouiller les majuscules :
Soit en appyyant sur VERR.MAJ comme par défaut dans Windows
Soit en appuyant sur la touche MAJ

SARL DBC - Mons La Trivalle - 34390

Informatique : Vente, installation, maintenance.
Sites internet : Présentation, Boutique, Réseaux sociaux
Programmes Spécifiques
Conseil en Organisation d'Entreprises

Assistance en ligne 

✆ : 06 11 10 66 24

Mentions légales  Plan du site   Contact
Site internet dans l'Hérault 34 Site internet dans le Var 83 Informatique
✆ 06 11 10 66 24
Contact
  
(function() { 'use strict'; /* ========================================================= 1. RETOUR EN HAUT DE PAGE ========================================================= */ window.scrollLent = function() { var scrollTop = document.body.scrollTop || document.documentElement.scrollTop; if (scrollTop > 0) { scrollBy(0, -20); setTimeout(scrollLent, 5); } }; /* ========================================================= 2. MENU PRINCIPAL (#cssmenu) - sans jQuery ========================================================= */ function initMenu() { var cssmenu = document.querySelector('#cssmenu'); if (!cssmenu) return; // Ajouter le compteur de sous-éléments var topLevelLinks = cssmenu.querySelectorAll(':scope > ul > li'); topLevelLinks.forEach(function(li) { var subLi = li.querySelectorAll('ul li'); if (subLi.length > 0) { var link = li.querySelector(':scope > a'); if (link) { var counter = document.createElement('span'); counter.className = 'cnt'; counter.textContent = subLi.length; link.appendChild(counter); } } }); // Classes alternées sur les sous-menus var subItems = cssmenu.querySelectorAll('ul ul li'); subItems.forEach(function(li, index) { li.classList.add(index % 2 === 0 ? 'even' : 'odd'); }); // Gestion clic sur menu principal var topLinks = cssmenu.querySelectorAll(':scope > ul > li > a'); topLinks.forEach(function(link) { link.addEventListener('click', function(e) { if (link.getAttribute('href') === '#') { e.preventDefault(); } var parentLi = link.parentElement; var subUl = parentLi.querySelector('ul[id]'); // Fermer les autres sous-menus cssmenu.querySelectorAll(':scope > ul > li').forEach(function(otherLi) { if (otherLi !== parentLi) { var otherUl = otherLi.querySelector('ul[id]'); if (otherUl) { slideUp(otherUl, function() { otherLi.classList.remove('active'); }); } } }); // Toggle le sous-menu courant if (subUl) { if (subUl.style.display === 'block') { slideUp(subUl, function() { parentLi.classList.remove('active'); }); } else { slideDown(subUl, function() { parentLi.classList.add('active'); }); } } }); }); } function slideDown(el, callback) { el.style.display = 'block'; var height = el.scrollHeight + 'px'; el.style.overflow = 'hidden'; el.style.height = '0px'; el.style.transition = 'height 0.3s ease'; requestAnimationFrame(function() { el.style.height = height; }); setTimeout(function() { el.style.height = ''; el.style.overflow = ''; el.style.transition = ''; if (callback) callback(); }, 300); } function slideUp(el, callback) { if (el.style.display === 'none' || !el.offsetHeight) { if (callback) callback(); return; } el.style.height = el.offsetHeight + 'px'; el.style.overflow = 'hidden'; el.style.transition = 'height 0.3s ease'; requestAnimationFrame(function() { el.style.height = '0px'; }); setTimeout(function() { el.style.display = 'none'; el.style.height = ''; el.style.overflow = ''; el.style.transition = ''; if (callback) callback(); }, 300); } /* ========================================================= 3. TOGGLE MENU MOBILE (#toggler) ========================================================= */ function initMenuMobile() { var toggler = document.querySelector('a#toggler'); if (!toggler) return; toggler.addEventListener('click', function(e) { e.preventDefault(); var divmenu = document.getElementById('divmenu'); var cssmenu = document.getElementById('cssmenu'); if (divmenu) { divmenu.style.display = (divmenu.style.display === 'block') ? 'none' : 'block'; } if (cssmenu) { cssmenu.style.display = (cssmenu.style.display === 'block') ? 'none' : 'block'; } }); } /* ========================================================= 4. MENU FIXE AU SCROLL ========================================================= */ function initFixMenu() { var divmenu = document.getElementById('divmenu'); var caler = document.getElementById('caler'); if (!divmenu) return; window.addEventListener('scroll', function() { if (window.innerWidth > 780 && window.innerHeight > 500) { if (window.pageYOffset > 360) { divmenu.classList.add('fixNavigation'); if (caler) caler.classList.add('caleok'); } else { divmenu.classList.remove('fixNavigation'); if (caler) caler.classList.remove('caleok'); } } }, { passive: true }); } /* ========================================================= 5. SLIDER (remplace responsiveslides + jQuery) ========================================================= */ function initSlider() { var slider = document.getElementById('slider1'); if (!slider) return; var slides = slider.querySelectorAll('li'); if (slides.length <= 1) { // Une seule slide : on l'affiche, pas besoin de gestion if (slides[0]) slides[0].style.display = 'block'; return; } // Setup CSS de base slider.style.position = 'relative'; slides.forEach(function(slide, i) { slide.style.position = 'absolute'; slide.style.top = '0'; slide.style.left = '0'; slide.style.width = '100%'; slide.style.opacity = i === 0 ? '1' : '0'; slide.style.transition = 'opacity 0.5s ease-in-out'; slide.style.display = 'block'; }); // La 1re slide reste en flux pour donner sa hauteur au slider slides[0].style.position = 'relative'; var current = 0; var interval; // Création des pagers (boutons ronds) var pagerWrap = document.createElement('ul'); pagerWrap.className = 'centered-btns_tabs'; slides.forEach(function(_, i) { var li = document.createElement('li'); var a = document.createElement('a'); a.href = '#'; a.textContent = (i + 1); a.setAttribute('aria-label', 'Slide ' + (i + 1)); a.addEventListener('click', function(e) { e.preventDefault(); showSlide(i); resetInterval(); }); li.appendChild(a); pagerWrap.appendChild(li); }); slider.parentNode.insertBefore(pagerWrap, slider.nextSibling); function showSlide(index) { slides.forEach(function(s, i) { s.style.opacity = (i === index) ? '1' : '0'; s.style.position = (i === index) ? 'relative' : 'absolute'; }); // Mise à jour des pagers pagerWrap.querySelectorAll('li').forEach(function(li, i) { if (i === index) li.classList.add('centered-btns_here'); else li.classList.remove('centered-btns_here'); }); current = index; } function nextSlide() { showSlide((current + 1) % slides.length); } function resetInterval() { clearInterval(interval); interval = setInterval(nextSlide, 4500); } // Init showSlide(0); resetInterval(); // Pause au survol slider.addEventListener('mouseenter', function() { clearInterval(interval); }); slider.addEventListener('mouseleave', resetInterval); } /* ========================================================= 6. LIGHTBOX (galerie - remplace magnific-popup + jQuery) ========================================================= */ function initLightbox() { var lightbox = document.getElementById('lightbox'); if (!lightbox) return; var lightboxImg = document.getElementById('lightbox-img'); var btnClose = lightbox.querySelector('.lightbox-close'); var btnPrev = lightbox.querySelector('.lightbox-prev'); var btnNext = lightbox.querySelector('.lightbox-next'); var links = document.querySelectorAll('[data-lightbox]'); if (links.length === 0) return; var images = Array.from(links).map(function(a) { return { src: a.getAttribute('href'), title: a.getAttribute('title') || '' }; }); var currentIndex = 0; function show(index) { currentIndex = (index + images.length) % images.length; lightboxImg.src = images[currentIndex].src; lightboxImg.alt = images[currentIndex].title; lightbox.classList.add('show'); lightbox.setAttribute('aria-hidden', 'false'); } function close() { lightbox.classList.remove('show'); lightbox.setAttribute('aria-hidden', 'true'); lightboxImg.src = ''; } links.forEach(function(link, i) { link.addEventListener('click', function(e) { e.preventDefault(); show(i); }); }); btnClose.addEventListener('click', close); btnPrev.addEventListener('click', function(e) { e.stopPropagation(); show(currentIndex - 1); }); btnNext.addEventListener('click', function(e) { e.stopPropagation(); show(currentIndex + 1); }); // Clic sur fond noir = fermer lightbox.addEventListener('click', function(e) { if (e.target === lightbox) close(); }); // Touches clavier document.addEventListener('keydown', function(e) { if (!lightbox.classList.contains('show')) return; if (e.key === 'Escape') close(); if (e.key === 'ArrowLeft') show(currentIndex - 1); if (e.key === 'ArrowRight') show(currentIndex + 1); }); } /* ========================================================= 7. ANIMATIONS REVEAL AU SCROLL ========================================================= */ function initReveal() { if (window.innerWidth <= 780) return; if (!('IntersectionObserver' in window)) return; document.documentElement.classList.add('reveal-loaded'); var observer = new IntersectionObserver(function(entries, obs) { entries.forEach(function(entry) { if (entry.intersectionRatio > 0.3) { entry.target.classList.remove('reveal'); obs.unobserve(entry.target); } }); }, { root: null, rootMargin: '0px', threshold: 0.3 }); document.querySelectorAll('.reveal').forEach(function(target) { observer.observe(target); }); } /* ========================================================= 8. COOKIE BANNER (version moderne, allégée) ========================================================= */ function initCookieBanner() { var COOKIE_NAME = 'cookie_consent'; // Vérifier si déjà accepté if (document.cookie.indexOf(COOKIE_NAME + '=') !== -1) return; var banner = document.createElement('div'); banner.setAttribute('role', 'dialog'); banner.setAttribute('aria-label', 'Consentement aux cookies'); banner.style.cssText = 'position:fixed; bottom:0; left:0; right:0; background:#113042; color:#FFF; padding:15px 20px; z-index:1000000; text-align:center; font-size:16px; box-shadow:0 -2px 10px rgba(0,0,0,0.3);'; var text = document.createElement('span'); text.textContent = "Ce site utilise des cookies pour vous offrir le meilleur service. En poursuivant votre navigation, vous acceptez l'utilisation des cookies. "; banner.appendChild(text); var btn = document.createElement('button'); btn.textContent = "J'accepte"; btn.type = 'button'; btn.style.cssText = 'margin-left:15px; padding:8px 20px; background:#4CAF50; color:#FFF; border:0; border-radius:4px; cursor:pointer; font-size:16px;'; btn.addEventListener('click', function() { var d = new Date(); d.setFullYear(d.getFullYear() + 1); document.cookie = COOKIE_NAME + '=1; expires=' + d.toUTCString() + '; path=/; SameSite=Lax'; banner.parentNode.removeChild(banner); }); banner.appendChild(btn); document.body.appendChild(banner); } /* ========================================================= 9. INITIALISATION GÉNÉRALE ========================================================= */ function init() { initMenu(); initMenuMobile(); initFixMenu(); initSlider(); initLightbox(); initReveal(); initCookieBanner(); } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', init); } else { init(); } })();