/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.qtip = { attach: function (context, settings) { $(function () { var instances = $.parseJSON(settings.instances); var debug = $.parseJSON(settings.qtipDebug); $('.qtip-link:not(.qtip-processed)', context).each(function() { // Call .each() so we can access $(this) in the settings/config // Check for a sibling .qtip-tooltip containing the tooltip information, otherwise (for forms) // go to the element's parent and look for .qtip-tooltip container as a sibling of the parent if ($(this, context).next('.qtip-tooltip').length) { var tooltipElement = $(this).next('.qtip-tooltip'); } else { var tooltipElement = $(this).parent().siblings('.qtip-tooltip'); } var tooltip = tooltipElement; if (!debug.leaveElement) { // Remove the tooltip element to keep the DOM clean tooltipElement.remove(); } var text = tooltip.html(); var title = (tooltip.data('qtip-title') != undefined) ? tooltip.data('qtip-title') + '' : ''; // Concatenate an empty string to make sure that the value being passed as the title is a string, otherwise it will not display var instance = (tooltip.data('qtip-instance') != undefined) ? tooltip.data('qtip-instance') : ''; var settings = (instances[instance] != undefined) ? instances[instance] : ''; if (settings) { $(this).qtip(settings); $(this).qtip('option', 'content.text', text); if (title) { $(this).qtip('option', 'content.title', title); } } // If no settings have been passed through, we still want to display a tooltip else { $(this).qtip({ content: { text: text, title: title, } }); } // Add instance class to the container to aid in styling $(this).addClass('qtip-instance-' + instance); // Add processed class to not process again on AJAX calls. $(this).addClass('qtip-processed'); }); }); } }; })(jQuery); ;/*})'"*/ ;/*})'"*/