PageSourceSearch

https://www.mercuredefrance.fr/js/flammarion_multisite/pagination.js

js mercuredefrance.fr collected 2026-10-02 07:38:20 UTC 791 bytes, 38 lines download raw bytes

1;(function() {
2  "use strict";
3
4  /**
5   *
6   */
7  const initPagination = function() {
8    document.querySelectorAll('a.js-facet').forEach(function(facet) {
9      facet.onclick = function(e) {
10        e.preventDefault();
11        const type = this.dataset.type;
12        const filter = this.dataset.filter;
13        buildUrlPagination(type, filter);
14        return false;
15      };
16    });
17  };
18
19  /**
20   *
21   * @param type
22   * @param filter
23   */
24  const buildUrlPagination = function(type, filter) {
25    var url = document.querySelector('input[type="hidden"]#url_base').value;
26    if (type && filter) {
27      url += '/(' + type + ')/' + filter;
28    }
29    window.location.assign(url);
30  }
31
32  document.addEventListener("DOMContentLoaded", function(event) {
33    initPagination();
34  });
35})();
36
37
38

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.