PageSourceSearch

https://univ-antilles.fr/sites/default/files/js/js_no_WkzVLMsNZYs1mnIsGyIdUCloUYi9OZwm4ezAzL44.js

js univ-antilles.fr collected 2026-10-02 07:26:08 UTC 3,764 bytes, 81 lines download raw bytes

1/*! jquery.cookie v1.4.1 | MIT */
2!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?a(require("jquery")):a(jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});;
3(function ($) {
4
5/**
6 * Retrieves the summary for the first element.
7 */
8$.fn.drupalGetSummary = function () {
9  var callback = this.data('summaryCallback');
10  return (this[0] && callback) ? $.trim(callback(this[0])) : '';
11};
12
13/**
14 * Sets the summary for all matched elements.
15 *
16 * @param callback
17 *   Either a function that will be called each time the summary is
18 *   retrieved or a string (which is returned each time).
19 */
20$.fn.drupalSetSummary = function (callback) {
21  var self = this;
22
23  // To facilitate things, the callback should always be a function. If it's
24  // not, we wrap it into an anonymous function which just returns the value.
25  if (typeof callback != 'function') {
26    var val = callback;
27    callback = function () { return val; };
28  }
29
30  return this
31    .data('summaryCallback', callback)
32    // To prevent duplicate events, the handlers are first removed and then
33    // (re-)added.
34    .unbind('formUpdated.summary')
35    .bind('formUpdated.summary', function () {
36      self.trigger('summaryUpdated');
37    })
38    // The actual summaryUpdated handler doesn't fire when the callback is
39    // changed, so we have to do this manually.
40    .trigger('summaryUpdated');
41};
42
43/**
44 * Sends a 'formUpdated' event each time a form element is modified.
45 */
46Drupal.behaviors.formUpdated = {
47  attach: function (context) {
48    // These events are namespaced so that we can remove them later.
49    var events = 'change.formUpdated click.formUpdated blur.formUpdated keyup.formUpdated';
50    $(context)
51      // Since context could be an input element itself, it's added back to
52      // the jQuery object and filtered again.
53      .find(':input').andSelf().filter(':input')
54      // To prevent duplicate events, the handlers are first removed and then
55      // (re-)added.
56      .unbind(events).bind(events, function () {
57        $(this).trigger('formUpdated');
58      });
59  }
60};
61
62/**
63 * Prepopulate form fields with information from the visitor cookie.
64 */
65Drupal.behaviors.fillUserInfoFromCookie = {
66  attach: function (context, settings) {
67    $('form.user-info-from-cookie').once('user-info-from-cookie', function () {
68      var formContext = this;
69      $.each(['name', 'mail', 'homepage'], function () {
70        var $element = $('[name=' + this + ']', formContext);
71        var cookie = $.cookie('Drupal.visitor.' + this);
72        if ($element.length && cookie) {
73          $element.val(cookie);
74        }
75      });
76    });
77  }
78};
79
80})(jQuery);
81;

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.