1 2(function($) { 3 Drupal.behaviors.ssks_alerte = { 4 5 attach: function(context, settings) { 6 Drupal.behaviors.ssks_alerte.gere_alerte(); 7 }, 8 9 /*--------------------------------------------------------------------- 10 :: 11 :: GESTION DES ALERTES VIA COOKIES 12 :: 13 ---------------------------------------------------------------------*/ 14 gere_alerte: function() { 15 $('.strate-alerte').on('closed.bs.alert', function () { 16 $('#strate-alerte-container').hide(); 17 Drupal.behaviors.ssks_alerte.create_cookie("alert_closed", Drupal.settings.liste_alertes.changed, 30); 18 }); 19 }, 20 21 22 create_cookie: function (name,value,days) { 23 var expires = ""; 24 if (days) { 25 var date = new Date(); 26 date.setTime(date.getTime() + (days*24*60*60*1000)); 27 expires = "; expires=" + date.toUTCString(); 28 } 29 document.cookie = name + "=" + value + expires + "; path=/"; 30 }, 31 } 32})(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.