PageSourceSearch

https://www.centrealbertobenveniste.org/wp-content/plugins/widgets…?ver=e33b5fa1d2170885a49fca75280c9295

js centrealbertobenveniste.org collected 2026-10-02 11:46:59 UTC 4,284 bytes, 132 lines download raw bytes

1function suite_absolute() {
2	jQuery('.card-type-post').not('.card-image-fond').each(function () {
3		//on ajoute la hauteur des différents contenus + les marges et les paddings
4		var hauteur_contenu = jQuery(this).find('h4').height() + jQuery(this).find('h3').height() + 8 + jQuery(this).find('.card-text').height() + 20 + jQuery(this).find('.card-author').height() + 60;
5		if (hauteur_contenu >= jQuery(this).height()) {
6			jQuery(this).find('.suite').addClass('absolute');
7		}
8	});
9	return true;
10}
11
12function suite_carte_rs() {
13	jQuery('.card-type-twitter, .card-type-facebook').each(function () {
14		//on ajoute la hauteur des différents contenus + les marges et les paddings
15		var padding_box = 0;
16		if (jQuery(this).find('.wihobu-card-syn-text').length) {
17			padding_box = jQuery(this).find('.wihobu-card-syn-text').css('padding-top').replace("px", "");
18		}
19		var hauteur_contenu = parseInt(padding_box) + parseInt(80); // 80 = hauteur du dégradé de bas de carte
20
21		if (jQuery(this).find('.card-author').length) {
22			hauteur_contenu = hauteur_contenu + parseInt(jQuery(this).find('.card-author').height()) + parseInt(jQuery(this).find('.card-author').css('padding-top').replace("px", ""));
23		}
24
25		if (jQuery(this).find('.card-text').length) {
26			hauteur_contenu = hauteur_contenu + parseInt(jQuery(this).find('.card-text').height()) + parseInt(jQuery(this).find('.card-text').css('margin-top').replace("px", "")) + parseInt(jQuery(this).find('.card-text').css('padding-bottom').replace("px", ""));
27		}
28
29		if (jQuery(this).find('.card-media').length) {
30			hauteur_contenu = hauteur_contenu + parseInt(jQuery(this).find('.card-media').height());
31		}
32
33		if (hauteur_contenu >= jQuery(this).height()) {
34			if (!jQuery(this).find('span.suite').length) {
35				jQuery(this).children().children('a').append('<span class="suite absolute">Lire la suite</span>');
36			}
37			jQuery(this).children().children('a').addClass('with-overflow');
38		} else {
39			jQuery(this).children().children('a').removeClass('with-overflow');
40			jQuery(this).find('span.suite').remove();
41		}
42	});
43	return true;
44}
45
46
47jQuery(document).ready(function ($) {
48	/**
49	 * background images
50	 */
51	$(window).on('load resize', function () {
52		doc_width = $('body').width();
53		$('.wihobu-bgimg').each(function () {
54			if (doc_width < 320 && $(this).data('imgsmall')) {
55				$(this).css({
56					'background-image': 'url(' + $(this).data('imgsmall') + ')'
57				});
58			} else if (doc_width < 600 && $(this).data('imgmedium')) {
59				$(this).css({
60					'background-image': 'url(' + $(this).data('imgmedium') + ')'
61				});
62			} else if (doc_width < 1201 && $(this).data('imglarge')) {
63				$(this).css({
64					'background-image': 'url(' + $(this).data('imglarge') + ')'
65				});
66			} else if (doc_width > 1200 && $(this).data('imgfull')) {
67				$(this).css({
68					'background-image': 'url(' + $(this).data('imgfull') + ')'
69				});
70			}
71		});
72	});
73	/**
74	 * 
75	 * widget_home_builder_widget_diaporama
76	 */
77	if ($('.wihobu-diaporama-slider').length) {
78		$('.wihobu-diaporama-slider').each(function () {
79			width = $(this).width();
80			height = width * (8 / 16);
81			$(this).height(height);
82			$(this).find('div').height(height);
83		}).bxSlider({
84			auto: false,
85			pager: false,
86			nextText: wihobu.diaporama_nextText,
87			prevText: wihobu.diaporama_prevText,
88		});
89	}
90
91	/**
92	 * Animations
93	 */
94	var wihobu_animates = jQuery('.wihobu-animate');
95	console.log(wihobu_animates);
96	var wihobu_current_y = 0;
97	var wihobu_current_screenheight = jQuery(window).height();
98	if (wihobu_animates.length) {
99		function wihobu_animate_check() {
100			wihobu_current_y = jQuery(document).scrollTop();
101			wihobu_current_screenheight = jQuery(window).height();
102			wihobu_animates.each(function () {
103				wihobu_animate_offset = jQuery(this).offset();
104				if (wihobu_animate_offset.top > wihobu_current_y + wihobu_current_screenheight) {
105					jQuery(this).addClass('wihobu-animate-hidden').removeClass('wihobu-animate-visible');
106				} else {
107					jQuery(this).addClass('wihobu-animate-visible').removeClass('wihobu-animate-hidden');
108				}
109			});
110		}
111		jQuery(document).scroll(function () {
112			wihobu_animate_check();
113		});
114	}
115
116
117	/* GRID */
118
119
120	suite_absolute();
121
122	suite_carte_rs();
123
124	jQuery(window).resize(function () {
125		suite_absolute();
126
127		suite_carte_rs();
128	});
129
130
131
132});

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.