PageSourceSearch

https://www.vieuxportdemontreal.com/modules/custom/important_message/assets/js/important_message.js?v=1.x

js vieuxportdemontreal.com collected 2026-10-02 05:26:16 UTC 1,256 bytes, 30 lines download raw bytes

1((Drupal, cookies, $) => {
2  $(document).ready(function () {
3    // Affiche le message important si on a pas de cookie pour le cacher.
4    if (typeof cookies.get('important-message-hidden') === 'undefined') {
5      $('#important-message').removeClass('hidden');
6      $('.important-message-language-wrapper[data-lang="' + $('html').attr('lang') + '"]').removeClass('hidden');
7    }
8
9    // On affiche le color picker si on a le champ et que le plugin spectrum est loadé
10    var $colorPicker = $("#edit-important-message-color");
11    if ($colorPicker.length && $.fn.spectrum) {
12      $colorPicker.spectrum({
13        showInput: true,
14        preferredFormat: 'hex'
15      });
16    }
17
18    // Fermeture du message important et création du cookie pour qu'il ne s'affiche plus.
19    $('body').on('click', '.important-message-close', function () {
20      $(this).parents('#important-message').addClass('important-message-hidden');
21      var data = {
22        expires: 99999
23      };
24      if (typeof importantMessageCookieDelay !== 'undefined' && importantMessageCookieDelay !== -1) {
25        data.expires = importantMessageCookieDelay / 24 / 60;
26      }
27      cookies.set('important-message-hidden', 'true', data);
28    });
29  });
30})(Drupal, window.Cookies, 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.