PageSourceSearch

https://barbastro.org/templates/buf/layouts/brb4/js/buf_layout.js?1ddf7f

js barbastro.org collected 2026-10-02 12:01:02 UTC 2,435 bytes, 92 lines download raw bytes

1/*******************************/
2/*********   BUF   *************/
3/*******************************/
4/*******  custom js    *********/
5/*******************************/
6/*******************************/
7//V2.1.14
8buf_custom_try();
9
10function buf_custom_try(){
11	try {
12	  if(jQuery) {
13	    buf_custom_js_init();
14	    //close if jQuery statement
15	  }
16	}catch(e){
17		if(buf_debug == 1){
18	  		console.log("buf_custom_try: jQuery not active... waitting");
19		}
20
21	  setTimeout(function() { buf_custom_try() }, 1000);
22	}
23}
24
25function buf_custom_js_init(){
26  jQuery(document).ready(function($) {
27
28      	jevents_color();
29    
30  });
31}
32
33document.addEventListener('DOMContentLoaded', function() {
34  setTimeout(function() { cambiaIconoAccesible() }, 1000);
35});
36
37
38
39
40function jevents_color(){
41
42   
43  if(jQuery('.mod_events_latest_table').length <= 0){
44    return;
45  }
46  jQuery.each(jQuery('.mod_events_latest_table  tr'), function(i, val){
47    
48
49
50    var micolor_a = jQuery(this).children().css('border-left-color');
51    var micolor_b = jQuery(this).children().css('border-left-color').replace(')', ', 0.1)').replace('rgb', 'rgba');
52
53
54    //var micolor = jQuery(this).attr('style');
55    //var micolor = getComputedStyle(jQuery(this)[0]).border; 
56    jQuery(this).find('a').css('color', micolor_a);
57     jQuery(this).find('.main_event_calendar_day').css('background', micolor_a);
58    //jQuery(this).find('td').css('background', micolor_b);
59   
60  });
61}
62
63function cambiaIconoAccesible(){
64
65      // Selecciona el elemento con la clase _access-icon
66var icon = document.querySelector('._access-icon');
67
68// Comprueba si el elemento existe
69if (icon) {
70    // Elimina el contenido del icono
71    icon.innerHTML = '';
72
73    // Cambia las clases del icono
74    icon.classList.add('fa-solid', 'fa-person');
75    icon.classList.remove('_access');
76
77    // Cambia el color de fondo a azul
78    icon.style.backgroundColor = '#104971';  // Cambia el color de fondo a azul
79    icon.style.transform = 'skewX(0deg)';               // Anula cualquier transformación, incluyendo skewX(18deg)
80    icon.style.borderRadius = '0 10px 10px 0'; // Aplica el border-radius
81    icon.style.textIndent = '0px';            // Anula la indentación de texto
82    icon.style.display = 'flex';              // Cambia a display flex
83    icon.style.justifyContent = 'center';
84    icon.style.fontSize = '35px';
85} else {
86    console.log('El elemento con la clase _access-icon no existe.');
87}
88
89
90}
91
92

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.