1'use strict';(function($,novacity){function subnav_max_height(){if($('.fm-subnav').length){var $subnav=$('.fm-subnav').offset(),$subnav_top=$subnav.top,$window_scrollTop=$(window).scrollTop(),$window_outerHeight=$(window).outerHeight();$('.fm-subnav').css('max-height',$window_outerHeight-($subnav_top-$window_scrollTop))}} 2$(window).resize(function(){subnav_max_height()});$(document).ready(function(){subnav_max_height();$('a[target="_blank"]').each(function(index,element){if(element.childNodes[0].nodeValue.trim()!=''){$(element).addClass('external-link').append(novacity.icons.external_link)}});$('[data-toggle="scroll-to"]').on('click',function(event){event.preventDefault();var $this=$(this),to;if($this.attr('href')!=undefined){to=$this.attr('href')}else if($this.data('target')!=undefined){if($this.data('target')=='next'){to=$this.closest('section').next()}else{to=$this.data('target')}}else{return!1} 3var navHeight=$('#navigation').outerHeight(),top=$(to).offset().top-navHeight-30;$('html, body').stop().animate({scrollTop:top},1)});$('[data-chained-select]').each(function(index,el){var $parent=$(el),$child=$($parent.data('chained-select')),$selected,$child_options=$child.clone(),$child_default=$child_options.find('option').eq(0).clone() 4$selected=$parent.find('option:selected') 5if($parent.val()!=''&&$child_options.find('[data-parent-id="'+$selected.data('id')+'"]').length){$child.removeAttr('disabled').html($child_default.clone()).show().append($child_options.clone().find('[data-parent-id="'+$selected.data('id')+'"]')).closest('.form-group').show()}else{$child.html($child_default.clone()).attr('disabled','disabled').hide().closest('.form-group').hide()} 6$parent.on('change',function(event){$selected=$parent.find('option:selected') 7if($parent.val()!=''&&$child_options.find('[data-parent-id="'+$selected.data('id')+'"]').length){$child.removeAttr('disabled').html($child_default.clone()).show().append($child_options.clone().find('[data-parent-id="'+$selected.data('id')+'"]')).closest('.form-group').show()}else{$child.html($child_default.clone()).attr('disabled','disabled').hide().closest('.form-group').hide()}})});$('.comment-reply-link').addClass('btn btn-primary');$('#commentsubmit').addClass('btn btn-primary');$('[data-sharer]').on('click',function(event){event.preventDefault();var $this=$(this),leftPosition=(window.screen.width/2)-((width/2)+10),topPosition=(window.screen.height/2)-((height/2)+50),width=526,height=350,windowFeatures='status=no,height='+height+',width='+width+',resizable=yes,left='+leftPosition+',top='+topPosition+',screenX='+leftPosition+',screenY='+topPosition+',toolbar=no,menubar=no,scrollbars=no,location=no,directories=no',t=document.title;window.open($this.attr('href'),'sharer',windowFeatures);return!1});function setActiveLanguage(lang){var list=$('#nova-translate');list.find('a').removeClass('active') 8if(lang){list.find('[onclick^="doGTranslate(\'fr|'+lang+'"]').addClass('active')}else{list.find('[onclick^="doGTranslate(\'fr|fr"]').addClass('active')}} 9if($('#nova-translate').length){$('#google_translate_element2').on('change',function(event){setActiveLanguage(GTranslateGetCurrentLang())}).change()} 10if($('.page-template-event').length){$('#field_date').on('change',function(event){event.preventDefault();if($(this).val()=='periode'){$('#periode').addClass('show').removeClass('visually-hidden').find('input').removeAttr('disabled')}else{$('#periode').removeClass('show').addClass('visually-hidden').find('input').attr('disabled','disabled')}}).change()} 11if($('.map-tooltip').length){let tooltip=document.getElementById('map-tooltip');function showTooltip(evt,text){if(tooltip.innerHTML!==text){tooltip.innerHTML=text} 12if(tooltip.style.display!=='block'){tooltip.style.display='block'} 13tooltip.style.left=evt.pageX+0+'px';tooltip.style.top=evt.pageY-0+'px'} 14function hideTooltip(){tooltip.style.display='none'} 15$('.map-tooltip').appendTo($('body'));$('.js-map-svg').find('a').on('mousemove',throttle(function(event){showTooltip(event,$(this).data('title'));$('.js-map-list a[data-path="'+$(this).attr('class')+'"]').addClass('active')},1)).on('mouseout',function(){hideTooltip();$('.js-map-list a[data-path="'+$(this).attr('class')+'"]').removeClass('active')});$('.js-map-list').on('mouseenter','a',function(event){event.preventDefault();$('.'+$(this).data('path')).addClass('active')}).on('mouseleave','a',function(event){event.preventDefault();$('.'+$(this).data('path')).removeClass('active')})} 16var headroomElement=document.querySelector('.headroom');if(headroomElement!==null){var layoutNavigationOffset=$('.layout-navigation').offset();var layoutNavigationOffsetTop=layoutNavigationOffset.top+100;var headroomOptions={offset:{up:0,down:layoutNavigationOffsetTop},tolerance:5,} 17var headroom=new Headroom(headroomElement,headroomOptions);headroom.init()}})})(jQuery,novacity)
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.