PageSourceSearch

https://www.concordia.fr/wp-content/cache/min/1/wp-content/themes/…/assets/js/theme.js?ver=1790088764

js concordia.fr collected 2026-10-03 23:33:52 UTC 3,491 bytes, 8 lines download raw bytes

1(function($){const rgb2hex=(rgb)=>`#${rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/).slice(1).map(n => parseInt(n, 10).toString(16).padStart(2, '0')).join('')}`;$(document).ready(function(){initHash();initNavbars();checkDisplayTopCta();checkBrightnessSticky();initFormActions();$(window).scroll(function(){checkDisplayTopCta();checkBrightnessSticky()});$('.top-cta').on('click',()=>$("html, body").stop().animate({scrollTop:0},0,'swing'));$('#cont-accordion').on('shown.bs.collapse',function(e){$('html, body').stop().animate({scrollTop:$(e.target).closest('.accordion-item').offset().top-$('.theme-navbar').height()-15},200,'linear')})});function initHash(){let hash=$(location).attr('hash');if(hash!==''){if($(hash).hasClass('accordion-item'))
2$(hash).find('.accordion-button')[0].click();else $('html, body').stop().animate({scrollTop:$(hash).offset().top-$('.theme-navbar').height()-15},200,'linear')}}
3function initNavbars(){$('.hamburger.hamb-nav').on('click',(e)=>{$('body').toggleClass('is-navbar-opened');$('.hamburger.hamb-nav').toggleClass('is-active')});$('.sticky-cta .search > i').on('click',(e)=>{if($('.sticky-cta').css('background-color')==='rgb(255, 255, 255)'){let $topCta=$('.top-cta');let $searchForm=$(e.currentTarget).parent().find('form');if($searchForm.hasClass('opened')){$searchForm.removeClass('opened');$topCta.removeClass('bottom-nav-opened')}else{$searchForm.addClass('opened');$topCta.addClass('bottom-nav-opened');$searchForm.find('input').focus()}}})}
4function checkDisplayTopCta(){if($(window).scrollTop()>=$(window).height()/2)$('.top-cta').fadeIn();else $('.top-cta').fadeOut()}
5function checkBrightnessSticky(){$('.sticky-cta > *, .top-cta').each((i,e)=>{let top=$(e).offset().top;if(top>0){top+=$(e).height()/2;$('body > section').each((is,es)=>{let sStart=$(es).offset().top;let sEnd=sStart+$(es).height();if(top>=sStart&&top<sEnd){let bgColor=$(es).css('background-color');if((bgColor.match(/,/g)||[]).length===2){if(!wcHexLight(rgb2hex(bgColor)))
6$(e).addClass('light');else $(e).removeClass('light')}else{$(e).removeClass('light')}}})}})}
7function initFormActions(){let SIBBaseUrl='https://api.sendinblue.com/v3/';document.addEventListener('wpcf7mailsent',function(e){if(e.detail.contactFormId==23711){let firstName=e.detail.inputs.find(input=>input.name==='your-firstname');let lastName=e.detail.inputs.find(input=>input.name==='your-lastname');let email=e.detail.inputs.find(input=>input.name==='your-email');let listIds=e.detail.inputs.filter(input=>input.name==='your-newsletters[]').map(input=>parseInt(input.value));if(firstName&&lastName&&email){firstName=firstName.value;lastName=lastName.value;email=email.value;$.ajax({type:"GET",dataType:"JSON",url:ajaxUrl,data:{action:"get-sib-api-key"},success:function(data){$.ajax(SIBBaseUrl+'contacts',{method:'POST',headers:{"Content-Type":"application/json","api-key":data.data.api_key},dataType:'json',data:JSON.stringify({"email":email,"listIds":listIds,"attributes":{"NOM":lastName,"PRENOM":firstName},"updateEnabled":!0})}).done(function(data){console.log('Utilisateur inscrit aux newsletters SendInBlue')}).fail(function(jqXHR,textStatus){console.log('Erreur dans l\'ajout de l\'utilisateur aux newsletters SendInBlue')})}})}}})}
8function wcHexLight(color){const hex=color.replace('#','');const c_r=parseInt(hex.substr(0,2),16);const c_g=parseInt(hex.substr(2,2),16);const c_b=parseInt(hex.substr(4,2),16);const brightness=((c_r*299)+(c_g*587)+(c_b*114))/1000;return brightness>155}})(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.