/jQuery(document).ready(function($) {
$(document).on("click", ".panel-group h4 a", function(event) {
event.preventDefault();
parents = $(this).parent().parent().parent();
if (parents.find(".panel-collapse").hasClass('collapse')) {
parents.parent().find('.panel-collapse').each(function(index, el) {
$(this).addClass('collapse');
});
}
parents.find(".panel-collapse").toggleClass("collapse");
})
});
;/*})'"*/
;/*})'"*/
jQuery(document).ready(function(b){var a=b.ajax({url:Drupal.settings.basePath+"php_device_info/init_device/"+b(window).width()+"/"+b(window).height(),});a.done(function(c){});a.fail(function(c,d){console.log(d);console.log(c)})});
;/*})'"*/
;/*})'"*/
jQuery(document).ready(function(b){accept=false;accept_matomo=true;b(document).on("click","#upvm_cookie_accept .display_more_cookies",function(e){b(this).toggleClass("open");if(b(this).hasClass("open")){d(b(this))}else{c(b(this))}});b(document).on("click","#matomo",function(e){if(b(this)[0].checked){accept_matomo=true}else{accept_matomo=false}});function d(e){e.html("Ne plus afficher toutes les utilisations prévues");b("#upvm_cookie_accept .details").addClass("open");b("#upvm_cookie_accept .accept").html("J'accepte");b("#matomo")[0].checked=false;accept_matomo=false}function c(e){e.html("Afficher toutes les utilisations prévues");b("#upvm_cookie_accept .details").removeClass("open");b("#upvm_cookie_accept .accept").html("J'accepte tout");b("#matomo")[0].checked=true;accept_matomo=true}window.onscroll=function(){if(window.scrollY>=window.innerHeight&&accept==false){accept=true;accept_matomo=true;upvm_cookie_accept(false)}};function a(){var h=h||[];h.push(["trackPageView"]);h.push(["enableLinkTracking"]);h.push(["setTrackerUrl",u+"piwik.php"]);h.push(["setSiteId",matomo_id]);var i=document,f=i.createElement("script"),e=i.getElementsByTagName("script")[0];f.type="text/javascript";f.async=true;f.defer=true;f.src=u+"piwik.js";e.parentNode.insertBefore(f,e)}upvm_cookie_accept=function(f){if(f){accept_matomo=false}var g=new Date();g.setTime(g.getTime()+(eu_cookie_compliance_cookie_lifetime*24*60*60*1000));var e="expires="+g.toUTCString();document.cookie="upvm_cookie_accept=true;"+e+";path=/";document.cookie="upvm_cookie_accept_matomo="+accept_matomo+";"+e+";path=/";b("#upvm_cookie_accept").addClass("close");if(accept_matomo){a()}b.get("/upvm_cookie/accept?list="+accept_matomo+"&message="+message_id)}});
;/*})'"*/
;/*})'"*/
(function(a){Drupal.behaviors.placeholders={attach:function(b,c){a("#edit-field-annee-publication-value-value-year > option:first").html(Drupal.t("Par année"));a("#edit-field-date-soutenance-value-value-year > option:first").html(Drupal.t("Par année"))}}})(jQuery);
;/*})'"*/
;/*})'"*/
(function ($) {
Drupal.behaviors.fontResize = {
attach: function (context, settings) {
/** Accesibilité A+ A-**/
var min = 16;
var max = 20;
var reset = $('.region-content').css('fontSize');
var elm = $('.region-content ');
var size = str_replace(reset, 'px', '');
$('.plustext').click(function() {
if (size < max) {
size++;
elm.css({
'fontSize': size
});
}
return false;
});
$('.minustext').click(function() {
if (size >= min) {
size--;
elm.css({
'fontSize': size
});
}
return false;
});
function str_replace(haystack, needle, replacement) {
var temp = haystack.split(needle);
return temp.join(replacement);
}
}
};
}(jQuery));
;/*})'"*/
;/*})'"*/