1/* Function mobile detect */ 2function mobileDetect() { 3 var md = new MobileDetect(window.navigator.userAgent); 4 if (md.os()) { 5 document.body.classList.add('os--'+md.os()); 6 } 7} 8 9/* Mobile detect */ 10mobileDetect(); 11 12/***Formulaire de contact modification message erreur */ 13(function($) { 14 15 if($('.sitemap-item').length){ 16 if($('.sitemap-item ul li').length){ 17 $('.sitemap-item ul li').each(function(){ 18 $(this).children('a').removeAttr('class'); 19 if($(this).children('a').attr('target') == '_blank'){ 20 var title = $(this).children('a').text() + '- Nouvel onglet'; 21 $(this).children('a').attr('title',title); 22 } 23 if($(this).children('button').length){ 24 $(this).children('button').removeClass('fr-footer__bottom-link').addClass('p-0'); 25 } 26 }); 27 } 28 } 29 30 if($('.page-formulaire').length){ 31 32 if($('.messages.messages--error').length){ 33 $('.messages.messages--error ul li').each(function(){ 34 if($(this).children('a').attr('href') == '#edit-civilite'){ 35 $(this).children('a').attr('href','#edit-civilite--wrapper-legend'); 36 } 37 }); 38 } 39 40 if($('input[type="text"]').length 41 || $('input[type="email"]').length 42 || $('select.fr-select').length 43 || $('input[type="checkbox"]').length 44 || $('textarea.fr-input').length){ 45 $('input[type="text"],input[type="email"],select.fr-select,textarea.fr-input,input[type="checkbox"]').each(function(){ 46 if($(this).hasClass('error')){ 47 $(this).attr('aria-describedby',$(this).attr('name')+'-error'); 48 } 49 }); 50 } 51 52 if($('input[type="file"]').length ){ 53 $('input[type="file"]').each(function(){ 54 var name = $(this).attr('name'); 55 name = name.replace('files[', '').replace(']', ''); 56 if($(this).hasClass('error')){ 57 $(this).attr('aria-describedby',name+'-error'); 58 } 59 }); 60 } 61 62 } 63 64 $('.scroll-to-top-js').on('click', function () { 65 if (!$('#skip-links-d-none').length) { 66 $('<a id="skip-links-d-none" class="sr-only" href="#">Haut de Page</a>').insertBefore($('#skiplinks-container')); 67 } 68 $('html, body').animate({scrollTop: 0}, "slow").promise().done(function () { 69 setTimeout(function () { 70 if (!$('#skip-links-d-none').length) { 71 $('<a id="skip-links-d-none" class="sr-only" href="#">Haut de Page</a>').insertBefore($('#skiplinks-container')); 72 } 73 $('#skip-links-d-none').focus(); 74 $('#skip-links-d-none').remove(); 75 }, 1500); 76 77 }); 78 return false; 79 }); 80})(jQuery);
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.