PageSourceSearch

https://aisummitbudapest.hu/assets/js/event/speakers.js

js aisummitbudapest.hu collected 2026-10-07 20:49:09 UTC 10,365 bytes, 383 lines download raw bytes

1
2// $('.signage_slider').slick({
3//     vertical: true,
4//     infinite: false,
5//     arrows: false,
6//     speed: 8000,
7//     autoplay: true,
8//     autoplaySpeed: 0,
9//     cssEase: 'linear',
10//     slidesToShow: 7,
11//     slidesToScroll: 1,
12// });
13
14$(document).on('click', '[id^="room-"][id$="-tab"]', function() {
15    $('.signage_speaker_slider').slick('refresh');
16    // $('.signage_sponsor_slider').slick('refresh');
17});
18
19
20$('.signage_speaker_slider').slick({
21    infinite: true,
22    arrows: false,
23    speed: 2000,
24    autoplay: true,
25    autoplaySpeed: 2500,
26    slidesToShow: 3,
27    slidesToScroll: 1,
28
29});
30
31$('.signage_sponsor_slider').slick({
32    infinite: true,
33    arrows: false,
34    dots: false,
35    speed: 9000,
36    autoplay: true,
37    autoplaySpeed: 0,
38    cssEase: 'linear',
39    slidesToShow: 3,
40    slidesToScroll: 1,
41});
42
43
44$('.key-topics-slider').slick({
45    infinite: true,
46    arrows: true,
47    prevArrow: '<button type="button" class="slick-prev"><i class="fa-solid fa-chevron-left" style="color: var(--primary-color);"></i></button>',
48    nextArrow: '<button type="button" class="slick-next"><i class="fa-solid fa-chevron-right" style="color: var(--primary-color);"></i></button>',
49    appendArrows: $('#key-topics .slick-controls .slick-arrows'),
50    dots: false,
51    speed: 300,
52    autoplay: true,
53    autoplaySpeed: 55000,
54    slidesToShow: 3,
55    slidesToScroll: 1,
56
57    responsive: [
58        {
59            breakpoint: 1600,
60            settings: {
61                slidesToShow: 3,
62            }
63        },
64        {
65            breakpoint: 1400,
66            settings: {
67                slidesToShow: 2,
68            }
69        },
70        {
71            breakpoint: 800,
72            settings: {
73                slidesToShow: 1,
74            }
75        },
76    ]
77});
78
79
80$('.speaker-slider').slick({
81    infinite: true,
82    arrows: true,
83    prevArrow: '<button type="button" class="slick-prev"><i class="fa-solid fa-chevron-left" style="color: var(--primary-color);"></i></button>',
84    nextArrow: '<button type="button" class="slick-next"><i class="fa-solid fa-chevron-right" style="color: var(--primary-color);"></i></button>',
85    appendArrows: $('#speakers .slick-controls .slick-arrows'),
86    dots: false,
87    appendDots: $('#speakers .slick-controls .slick-dots'),
88    speed: 300,
89    autoplay: true,
90    autoplaySpeed: 5000,
91    slidesToShow: app.slick.slidesToShow,
92    rows: app.slick.rows,
93    slidesToScroll: app.slick.slidesToScroll,
94    responsive: [
95        {
96            breakpoint: 1200,
97            settings: {
98                slidesToShow: 3,
99            }
100        },
101        {
102            breakpoint: 1000,
103            settings: {
104                slidesToShow: 2,
105            }
106        },
107        {
108            breakpoint: 600,
109            settings: {
110                slidesToShow: 1,
111            }
112        },
113    ]
114});
115
116$('.conference-slider').slick({
117    infinite: true,
118    arrows: true,
119    prevArrow: '<button type="button" class="slick-prev"><i class="fa-solid fa-chevron-left" style="color: var(--primary-color);"></i></button>',
120    nextArrow: '<button type="button" class="slick-next"><i class="fa-solid fa-chevron-right" style="color: var(--primary-color);"></i></button>',
121    appendArrows: $('#conference .slick-controls .slick-arrows'),
122    dots: false,
123    appendDots: $('#conference .slick-controls .slick-dots'),
124    speed: 300,
125    autoplay: true,
126    autoplaySpeed: 5000,
127    slidesToShow: 3,
128    slidesToScroll: 1,
129
130    responsive: [
131        {
132            breakpoint: 1400,
133            settings: {
134                slidesToShow: 3,
135            }
136        },
137        {
138            breakpoint: 1000,
139            settings: {
140                slidesToShow: 2,
141            }
142        },
143        {
144            breakpoint: 600,
145            settings: {
146                slidesToShow: 1,
147            }
148        },
149    ]
150});
151
152$('.related_events-slider').slick({
153	infinite: true,
154	arrows: true,
155	prevArrow: '<button type="button" class="slick-prev"><i class="fa-solid fa-chevron-left" style="color: var(--primary-color);"></i></button>',
156	nextArrow: '<button type="button" class="slick-next"><i class="fa-solid fa-chevron-right" style="color: var(--primary-color);"></i></button>',
157	appendArrows: $('#related_events .slick-controls .slick-arrows'),
158	dots: false,
159	appendDots: $('#related_events .slick-controls .slick-dots'),
160	speed: 300,
161	autoplay: true,
162	autoplaySpeed: 5000,
163	slidesToShow: 3,
164	slidesToScroll: 1,
165
166	responsive: [
167		{
168			breakpoint: 1400,
169			settings: {
170				slidesToShow: 3,
171			}
172		},
173		{
174			breakpoint: 1000,
175			settings: {
176				slidesToShow: 2,
177			}
178		},
179		{
180			breakpoint: 600,
181			settings: {
182				slidesToShow: 1,
183			}
184		},
185	]
186}
186);
187
188
189$('.news-slider').slick({
190    infinite: true,
191    arrows: true,
192    prevArrow: '<button type="button" class="slick-prev"><i class="fa-solid fa-chevron-left" style="color: var(--primary-color);"></i></button>',
193    nextArrow: '<button type="button" class="slick-next"><i class="fa-solid fa-chevron-right" style="color: var(--primary-color);"></i></button>',
194    appendArrows: $('#news .slick-controls .slick-arrows'),
195    dots: false,
196    appendDots: $('#news .slick-controls .slick-dots'),
197    speed: 300,
198    autoplay: true,
199    autoplaySpeed: 5000,
200    slidesToShow: 3,
201    slidesToScroll: 1,
202
203    responsive: [
204        {
205            breakpoint: 1400,
206            settings: {
207                slidesToShow: 3,
208            }
209        },
210        {
211            breakpoint: 1000,
212            settings: {
213                slidesToShow: 2,
214            }
215        },
216        {
217            breakpoint: 600,
218            settings: {
219                slidesToShow: 1,
220            }
221        },
222    ]
223});
224
225$('.gallery-slider').slick({
226    infinite: true,
227    arrows: true,
228    prevArrow: '<button type="button" class="slick-prev"><i class="fa-solid fa-chevron-left" style="color: var(--primary-color);"></i></button>',
229    nextArrow: '<button type="button" class="slick-next"><i class="fa-solid fa-chevron-right" style="color: var(--primary-color);"></i></button>',
230    appendArrows: $('#gallery .slick-controls .slick-arrows'),
231    dots: false,
232    appendDots: $('#gallery .slick-controls .slick-dots'),
233    speed: 300,
234    autoplay: true,
235    autoplaySpeed: 5000,
236    slidesToShow: 4,
237    slidesToScroll: 1,
238
239    responsive: [
240        {
241            breakpoint: 1400,
242            settings: {
243                slidesToShow: 3,
244            }
245        },
246        {
247            breakpoint: 1000,
248            settings: {
249                slidesToShow: 2,
250            }
251        },
252        {
253            breakpoint: 500,
254            settings: {
255                slidesToShow: 1,
256            }
257        },
258    ]
259});
260
261$('.more-news-slider').slick({
262    infinite: true,
263    arrows: true,
264    prevArrow: '<button type="button" class="slick-prev"><i class="fa-solid fa-chevron-left" style="color: var(--landing-secondary-color-dark);"></i></button>',
265    nextArrow: '<button type="button" class="slick-next"><i class="fa-solid fa-chevron-right" style="color: var(--landing-secondary-color-dark);"></i></button>',
266    appendArrows: $('#more-news .slick-controls .slick-arrows'),
267    dots: false,
268    appendDots: $('#more-news .slick-controls .slick-dots'),
269    speed: 300,
270    autoplay: true,
271    autoplaySpeed: 5000,
272    slidesToShow: 3,
273    slidesToScroll: 1,
274
275    responsive: [
276        {
277            breakpoint: 1400,
278            settings: {
279                slidesToShow: 3,
280            }
281        },
282        {
283            breakpoint: 1000,
284            settings: {
285                slidesToShow: 2,
286            }
287        },
288        {
289            breakpoint: 600,
290            settings: {
291                slidesToShow: 1,
292            }
293        },
294    ]
295});
296
297document.addEventListener("DOMContentLoaded", function () {
298    function truncateText(selector, lines) {
299        document.querySelectorAll(selector).forEach(element => {
300            const originalText = element.textContent.trim();
301            const words = originalText.split(' ');
302
303            const dummy = document.createElement('div');
304            const styles = window.getComputedStyle(element);
305            Object.assign(dummy.style, {
306                position: 'absolute',
307                visibility: 'hidden',
308                height: 'auto',
309                width: element.clientWidth + 'px',
310                lineHeight: styles.lineHeight,
311                fontFamily: styles.fontFamily,
312                fontSize: styles.fontSize,
313            });
314            document.body.appendChild(dummy);
315
316            let truncatedText = '';
317            const maxHeight = parseFloat(styles.lineHeight) * lines;
318
319            for (let word of words) {
320                dummy.textContent = truncatedText + word + ' ';
321                if (dummy.scrollHeight > maxHeight) {
322                    element.textContent = truncatedText.trim() + '...';
323                    document.body.removeChild(dummy);
324                    return;
325                }
326                truncatedText += word + ' ';
327            }
328
329            element.textContent = originalText;
330            document.body.removeChild(dummy);
331        });
332    }
333
334    truncateText('.card-text', 4);
335    truncateText('.card-title', 3);
336});
337
338function setGallerySliderHeight() {
339	// Csak mobilnézetnél fusson
340	if (window.innerWidth > 768) return;
341	const slider = document.querySelector('.gallery-slider');
342	if (!slider) return;
343
344	const images = slider.querySelectorAll('img');
345	let maxHeight = 0;
346	let loadedCount = 0;
347
348	images.forEach(img => {
349		if (img.complete) {
350			maxHeight = Math.max(maxHeight, img.offsetHeight);
351			loadedCount++;
352			if (loadedCount === images.length) {
353				slider.style.height = maxHeight + 'px';
354			}
355		} else {
356			img.onload = () => {
357				loadedCount++;
358				maxHeight = Math.max(maxHeight, img.offsetHeight);
359				if (loadedCount === images.length) {
360					slider.style.height = maxHeight + 'px';
361				}
362			};
363		}
364		slider.style.height = maxHeight + 'px';
365	});
366}
367
368// Slick inicializálás után futtatás, de 1 másodperc késleltetéssel
369$(window).on('load', function () {
370	setTimeout(() => {
371		setGallerySliderHeight();
372	}, 1000);
373});
374
375// Slider váltáskor újramérés
376$('.gallery-slider').on('setPosition', function () {
377	setGallerySliderHeight();
378});
379
380// Opcionálisan ablakátméretezéskor újra
381window.addEventListener('resize', () => {
382	setGallerySliderHeight();
383});

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.