PageSourceSearch

https://www.sommervieu.fr/wp-content/themes/sommervieu/js/custom.js?r=261002081916942907&ver=7.0.6

js sommervieu.fr collected 2026-10-02 20:03:27 UTC 2,633 bytes, 92 lines download raw bytes

1if (window.document.documentMode) {
2    // Do IE stuff
3} else {
4    // GESTION DU MENU RESPONSIVE
5    document.addEventListener(
6        "DOMContentLoaded", function(event) {
7            const menu = new MmenuLight(
8                document.querySelector( "#menu" ),"(max-width: 1620px)"
9            );
10            const navigator = menu.navigation();
11            const drawer = menu.offcanvas();
12            document.querySelector( 'a[href=".main-nav"]' )
13                .addEventListener( 'click', function(event) {
14                    event.preventDefault();
15                    drawer.open();
16                });
17        }
18    );
19}
20
21$( document ).ready(function() {
22	accessibilitytoolbar_custom = {
23		/* MANDATORY : ID of the target container which will include the link. If not null, activate the display in link mode. The link will be added as the last element of the target container.*/
24		idLinkModeContainer : "topbar",
25	};
26    
27    //recherche 
28    
29    $('#btn-search, #search-cancel').on('click', function() {
30       $('#popin-recherche').toggle();
31    });  
32    $(document).keyup(function(e) {
33        if (e.key === "Escape") { // escape key maps to keycode `27`
34            $('#popin-recherche').css('display', 'none');
35       }
36   });      
37
38   //barre raccourcis
39   $('#toggle-shortcuts').on('click', function() {
40    $(this).toggleClass('toggle-shortcuts-on');
41    $('#en-un-clic-raccourcis-contener').toggleClass('en-un-clic-raccourcis-contener-active');
42   });
43
44    
45});
46
47// ORANGE CONFORT +
48function eventFire(el, etype){
49	if (el.fireEvent) {
50		el.fireEvent('on' + etype);
51	} else {
52		var evObj = document.createEvent('Events');
53		evObj.initEvent(etype, true, false);
54		el.dispatchEvent(evObj);
55	}
56}
57document.addEventListener('readystatechange', function() {
58	if (document.readyState === "complete") {
59		
60        $( "#btn-accessibilite" ).on('click', function() {
61            eventFire(document.getElementById('uci_link'), 'click');
62        });
63        
64		$(document).on('vclick', '#trigger-accessibility', function(){ 
65			$("#uci_link").trigger('vclick');
66		});	
67	}
68});
69
70
71    
72//En un clic -- ne sert pas
73/*
74document.getElementById('toggle-shortcuts').addEventListener('click', function() {
75    var shortcuts = document.getElementById('shortcuts');
76    if (shortcuts.style.display === 'none' || shortcuts.style.display === '') {
77        shortcuts.style.display = 'flex';
78    } else {
79        shortcuts.style.display = 'none';
80    }
81});
82*/
83
84/*
85
86//burger menu animation
87const burger = document.querySelector('.burger-menu');
88
89burger.addEventListener('click', function() {
90  burger.classList.toggle('open');
91});
92*/

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.