PageSourceSearch

https://www.uminho.pt/_layouts/15/UMinho.PortalUM.UI/js/slider.js?v1.0.0

js uminho.pt collected 2026-09-24 07:43:36 UTC 1,209 bytes, 36 lines download raw bytes

1$(document).ready(function() {
2	$('.carousel-inner .item > a > img').each(function() {
3		if($(this).data('type') == 'video') {
4			var item = $(this).parent();
5			var img = $(this).remove();
6
7			var video = $('<video autoplay="autoplay"><source type="video/mp4" /></video>')
8				.find('source').attr('src', $(this).attr('src')).end()
9				.attr('style', $(this).attr('style'));
10
11			item.find('.carousel-caption').before(video);
12			item.find('video').get(0).play();
13		}
14		else if($(this).data('type') == 'youtube') {
15			var item = $(this).parent();
16			var img = $(this).remove();
17
18			var video = $('<iframe class="embed-responsive-item" frameborder="0" allowfullscreen></iframe>')
19				.attr('src', $(this).attr('src'));
20
21			item.find('.carousel-caption').before(video).parent().addClass('embed-responsive').addClass('embed-responsive-16by9');
22		}
23	});
24
25	$('.carousel-inner .item > a > .carousel-caption > h3 > span').each(function() {
26		if($(this).text() == '') {
27			$(this).parent().addClass('hide');
28		}
29	});
30
31	$('.carousel-inner .item > a > .carousel-caption > p > span').each(function() {
32		if($(this).text() == '') {
33			$(this).parent().addClass('hide');
34		}
35	});
36});

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.