PageSourceSearch

https://www.cuma.fr/app/cache/min/3/app/plugins/facetwp/assets/js/src/accessibility.js?ver=1790754383

js cuma.fr collected 2026-10-02 17:13:26 UTC 2,385 bytes, 5 lines download raw bytes

1(function($){var last_checked=null;if('undefined'!==typeof FWP.hooks){FWP.hooks.addAction('facetwp/loaded',function(){$('.facetwp-checkbox, .facetwp-radio, .fs-option').each(function(){let $el=$(this);if(!$el.hasClass('disabled')){$el.attr('role','checkbox');$el.attr('aria-checked',$el.hasClass('checked')||$el.hasClass('selected')?'true':'false');$el.attr('aria-label',$el.text());$el.attr('tabindex',0)}});$('.facetwp-page, .facetwp-toggle, .facetwp-selection-value, .facetwp-link').each(function(){let $el=$(this);let label=$el.text();if($el.hasClass('facetwp-page')){label=FWP_JSON.a11y.label_page+' '+label;if($el.hasClass('next')){label=FWP_JSON.a11y.label_page_next}else if($el.hasClass('prev')){label=FWP_JSON.a11y.label_page_prev}}
2$el.attr('role','link');$el.attr('aria-label',label);$el.attr('tabindex',0)});$('.facetwp-type-dropdown select, .facetwp-type-sort select, .facetwp-sort-select select').each(function(){$(this).attr('aria-label',$(this).find('option:selected').text())});$('.facetwp-search, .facetwp-date, .facetwp-number').each(function(){$(this).attr('aria-label',$(this).attr('placeholder'))});$('.facetwp-type-checkboxes').each(function(){let facet_name=$(this).attr('data-name');$(this).attr('aria-label',FWP.settings.labels[facet_name]);$(this).attr('role','group')});$('.fs-wrap').each(function(){$(this).attr('role','button');$(this).attr('aria-haspopup','true');$(this).attr('aria-expanded',$(this).hasClass('fs-open')?'true':'false');$(this).attr('aria-label',$(this).find('.fs-label').html())});$('.facetwp-type-fselect .facetwp-dropdown').attr('aria-hidden','true');$('.facetwp-pager').attr('role','navigation');$('.facetwp-page.active').attr('aria-current','true');if(null!=last_checked){var $el=$('.facetwp-facet [data-value="'+last_checked+'"]');if($el.len()){$el.nodes[0].focus()}
3last_checked=null}},999)}
4$().on('keydown','.facetwp-checkbox, .facetwp-radio, .facetwp-link',function(e){if(32==e.keyCode||13==e.keyCode){last_checked=$(this).attr('data-value');e.preventDefault();this.click()}});$().on('keydown','.facetwp-page, .facetwp-toggle, .facetwp-selection-value',function(e){if(32==e.keyCode||13==e.keyCode){e.preventDefault();this.click()}});function toggleExpanded(e){var $fs=$(e.detail[0]);$fs.attr('aria-expanded',$fs.hasClass('fs-open')?'true':'false')}
5$().on('fs:opened',toggleExpanded);$().on('fs:closed',toggleExpanded)})(fUtil)

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.