PageSourceSearch

https://eumiesawards.com/wp-content/plugins/wordpress-plugin-coeli/assets/build/js/front.js?ver=1.24.37

js eumiesawards.com collected 2026-10-02 02:46:04 UTC 3,538 bytes, 110 lines download raw bytes

1jQuery(document).ready(function ($) {
2  $(".coeli-result-change-display").click(function () {
3    $(this).toggleClass("result-grid-display coeli-result-list-display"); // botó format resultats
4    $(".coeli-result-list").toggleClass("grid list"); // Llista resultats
5
6    if ($(this).text() == "Grid") {
7      $(this).text("List");
8    } else {
9      $(this).text("Grid");
10    }
11  });
12
13  $(".coeli-close-filters").click(function (e) {
14    $(
15      ".coeli-search-filters, .page-title, .button-menu, .caticat-title, html,body,.coeli-list-results"
16    ).toggleClass("active-filters");
17  });
18
19  //FACETS para mobil.. añadir clase para desplegar submenu ---------------
20
21  $("ul.facets > li").click(function () {
22    $(this).toggleClass("open");
23  });
24
25  if ($("ul.facets").length > 0) {
26    $(".coeli-sidebar-facets > ul.facets > li").each(function () {
27      if ($(this).find("span + ul li.coeli-selected-facet").length > 0) {
28        $(this).addClass("open");
29      }
30    });
31  }
32
33  $(".coeli-toggle-facets").click(function () {
34    $(this).toggleClass("open");
35    $(".facets, .coeli-num-items").toggleClass("open");
36
37    var button = document.getElementById("coeli-toggle-facets");
38    if (button.title == "Obrir menú") {
39      button.title = "Tancar menú";
40    } else {
41      button.title = "Obrir menú";
42    }
43  });
44
45  // MENUS de FILTROS PARA MOBIL ... A revisar ----------------------------------------
46
47  $(".coeli-filter-type-title").click(function () {
48    $(this).parent().addClass("active");
49  });
50
51  //OPEN-CLOSE coeli-result-filter-box---------------------------------   Errors
52
53  $(".coeli-result-filter-box-button").click(function (e) {
54    e.preventDefault();
55    e.stopPropagation();
56    $(
57      ".coeli-search-filters, .page-title, .button-menu, .caticat-title, html,body,.coeli-list-results"
58    ).toggleClass("active-filters");
59  });
60
61  //inizialitem sliders d'agrupacions si n'hi ha
62  $(".coeli-swiper-agrupacions").each(function (item) {
63    var id = $(this).attr("id").split("-")[2];
64    new Swiper(".coeli-swiper-" + id, eval("slider_args_" + id));
65  });
66
67  if ($(".coeli-advanced-wrapper-toggle").length > 0) {
68    $(".coeli-toggle-advanced-search").click(function (e) {
69      e.preventDefault();
70      $(this).toggleClass("show-advanced");
71      $(".coeli-advanced-wrapper-toggle").toggleClass("show-advanced");
72      $(".coeli-search-button").toggle("fast");
73      $(".coeli-search-input").keypress(function (e) {
74        var key = e.keyCode || e.which;
75        if (
76          $(".coeli-advanced-wrapper-toggle").hasClass("show-advanced") &&
77          key === 13
78        ) {
79          return false;
80        }
81      });
82    });
83  }
84});
85//inizialitem masonries d'agrupacions si n'hi ha
86window.onload = function () {
87  jQuery(".coeli-agrupacio-masonry").each(function (item) {
88    var id = jQuery(this).attr("id").split("-")[3];
89    jQuery(".coeli-ul-agrupacio-" + id).masonry({
90      columnWidth: ".coeli-grid-sizer",
91      itemSelector: ".grid-item",
92      percentPosition: true,
93    });
94  });
95};
96if (jQuery("#coeli-link-flipbook").length > 0) {
97  document.addEventListener('DOMContentLoaded', function () {
98    const container = document.getElementById('coeli-link-flipbook');
99    //flipbooks_options comes from Wp admin record conf: coeli.php: 351
100    const flipbook_merged_options ={...flipbooks_options,
101      pdfUrl: flipbook_pdf_url,
102      lightBox: true,
103      btnBookmark: { enabled: false },
104      btnShare: { enabled: false },
105    }
106    new FlipBook(container, flipbook_merged_options);
107  });
108}
109
110

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.