PageSourceSearch

https://magazin.tu-braunschweig.de/wp-content/plugins/easy-swipebox/public/js/jquery.init.js?ver=1.1.2

js tu-braunschweig.de collected 2026-09-24 08:51:02 UTC 2,331 bytes, 65 lines download raw bytes

1;(function($){
2	$( document ).ready(function() {
3
4		// Add class .swipebox to all links to images
5		if(easySwipeBox_localize_init_var.autodetect.autodetectImage === true) {
6			$('a[href]').filter(function() {
7			return /(\.jpg|\.jpeg|\.gif|\.png)/i.test( $(this).attr('href'));
8			}).addClass("swipebox");
9
10			// If link has not title, add img title/alt as title to links
11			$('a.swipebox').filter(function(){
12
13				// Check if image has title - else alt
14				if ($(this).find('img').attr('title')){
15					var title_img = $(this).find('img').attr('title');
16				} else {
17					var title_img = $(this).find('img').attr('alt');
18				}
19
20				if ($(this).not("[title]")){
21					$(this).attr('title', title_img);
22				}
23			});
24		}
25
26		// Add class .swipebox to all links to Vimeo videos
27		if(easySwipeBox_localize_init_var.autodetect.autodetectVideo === true) {
28
29			$('a[href]').filter(function() {
30				return /(?:www\.)?vimeo.com\/([0-9]+)/i.test( $(this).attr('href'));
31			}).addClass('swipebox');
32
33			// Add class .swipebox to all links to YouTube videos
34			$('a[href]').filter(function() {
35				return /^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/i.test( $(this).attr('href'));
36			}).addClass('swipebox');
37		}
38
39    // Remove .swipebox from selectors declared in admin
40    $(easySwipeBox_localize_init_var.autodetect.autodetectExclude).removeClass('swipebox');
41
42		// Add SwipeBox Script
43		$( '.swipebox' ).swipebox( {
44			useCSS : easySwipeBox_localize_init_var.lightbox.useCSS,
45			useSVG : easySwipeBox_localize_init_var.lightbox.useSVG,
46			initialIndexOnArray : 0,
47			removeBarsOnMobile : easySwipeBox_localize_init_var.lightbox.removeBarsOnMobile,
48			hideCloseButtonOnMobile : easySwipeBox_localize_init_var.lightbox.hideCloseButtonOnMobile,
49			hideBarsDelay : easySwipeBox_localize_init_var.lightbox.hideBarsDelay,
50			videoMaxWidth : easySwipeBox_localize_init_var.lightbox.videoMaxWidth,
51			vimeoColor : easySwipeBox_localize_init_var.lightbox.vimeoColor,
52			beforeOpen: null,
53			afterOpen: null,
54			afterClose: null,
55			nextSlide: null,
56			prevSlide: null,
57			loopAtEnd: easySwipeBox_localize_init_var.lightbox.loopAtEnd,
58			autoplayVideos: easySwipeBox_localize_init_var.lightbox.autoplayVideos,
59			queryStringData: {},
60			toggleClassOnLoad: '',
61			selector: null
62		} );
63
64	});
65})(jQuery);

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.