PageSourceSearch

https://www.zahnaerzte-in-regensburg.de/a_framework/jquery_fancybo…uery.fancybox_custom.js?no_cache=1791240299

js zahnaerzte-in-regensburg.de collected 2026-10-05 22:46:47 UTC 5,658 bytes, 190 lines download raw bytes

1// jQuery START -->
2jQuery.noConflict();
3jQuery(document).ready(function($) {
4
5// customize some default settings
6$.fancybox.defaults = $.extend(true, {}, $.fancybox.defaults, {
7
8	hash			: false,
9	parentEl		: 'body',
10	loop			: true,
11	idleTime		: false,
12	animationEffect	: 'zoom-in-out',
13	gutter			: 50,
14	thumbs			: {
15		autoStart		: false, // display thumbnails on opening
16		hideOnClose		: true, // hide thumbnail grid when closing animation starts
17		parentEl		: '.fancybox-container', // container is injected into this element
18		axis			: 'x' // vertical (y) or horizontal (x) scrolling
19	},
20	share 			: {
21		// custom share url
22		url : function( instance, item ) {
23		
24			if ( item.type === 'inline' && item.contentType === 'video' ) {
25				return item.$content.find('source:first').attr('src');
26			}
27			// return item.src;
28			return location.protocol + '//' + location.hostname + item.src;
29			
30		}
31	},	
32	buttons 		: [
33	'zoom',
34	'share',
35	'slideShow',
36	'fullScreen',
37	'download',
38	'thumbs',
39	'close'
40	],
41	
42	spinnerTpl		: '<div class="fancybox-loading-off"></div>',
43	
44	btnTpl			: {
45	download: '<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;">' +
46	'<i class="far fa-display-arrow-down"></i>' +
47	'</a>',
48	
49	zoom: '<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}">' +
50	'<i class="far fa-search"></i>' +
51	'</button>',
52	
53	close: '<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}">' +
54	'<i class="far fa-times"></i>' +
55	'</button>',
56	
57	// arrows
58	arrowLeft: '<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}">' +
59	'<div></div>' +
60	'</button>',
61	/*
62	arrowLeft: '<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}">' +
63	'<div><i class="fas fa-arrow-left"></i></div>' +
64	'</button>',
65	*/
66	
67	arrowRight: '<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}">' +
68	'<div></div>' +
69	'</button>',
70	/*
71	arrowRight: '<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}">' +
72	'<div><i class="fas fa-arrow-right"></i></div>' +
73	'</button>',
74	*/
75	
76	// this small close button will be appended to your html/inline/ajax content by default,
77	// if "smallBtn" option is not set to false
78	smallBtn: '<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}">' +
79	'<i class="far fa-times" style="font-size: 18px;"></i>' +
80	'</button>',
81	
82	thumbs: '<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}">' +
83	'<i class="far fa-images"></i>' +
84	'</button>',
85	
86	slideShow: '<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}">' +
87	'<i class="far fa-play"></i>' +
88	'</button>',
89	
90	share: '<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}">' +
91	'<i class="far fa-share-alt"></i>' +
92	'</button>',
93	
94	fullScreen: '<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}">' +
95	'<i class="far fa-expand-wide"></i>' +
96	'</button>'
97	}
98	
99});
100
101
102// translation
103var fancy_language = jQuery( '#website_current_language' ).val();
104
105if ( fancy_language === 'de-DE' ) {
106$.fancybox.defaults.i18n.de = {
107	CLOSE		: 'Schließen',
108	NEXT		: 'Weiter',
109	PREV		: 'Zurück',
110	ERROR		: 'Die angeforderten Daten konnten nicht geladen werden.<br/>
110Bitte versuchen Sie es später nochmal.',
111	PLAY_START	: 'Dia-Show starten',
112	PLAY_STOP	: 'Dia-Show beenden',
113	FULL_SCREEN	: 'Vollbild-Modus',
114	THUMBS		: 'Vorschaubilder / Thumbnails',
115	DOWNLOAD	: 'Herunterladen',
116	SHARE		: 'Teilen',
117	ZOOM		: 'Zoom'
118};
119$.fancybox.defaults.lang = 'de';
120}
121
122if ( fancy_language === 'en-GB' ) {
123$.fancybox.defaults.i18n.en = {
124	CLOSE		: 'Close',
125	NEXT		: 'Next',
126	PREV		: 'Previous',
127	ERROR		: 'The requested content cannot be loaded. <br/> Please try again later.',
128	PLAY_START	: 'Start slideshow',
129	PLAY_STOP	: 'Pause slideshow',
130	FULL_SCREEN	: 'Full screen',
131	THUMBS		: 'Thumbnails',
132	DOWNLOAD	: 'Download',
133	SHARE		: 'Share',
134	ZOOM		: 'Zoom'
135};
136$.fancybox.defaults.lang = 'en';
137}
138
139if ( fancy_language === 'es-ES' ) {
140$.fancybox.defaults.i18n.es = {
141	CLOSE		: 'Cerrar',
142	NEXT		: 'Siguiente',
143	PREV		: 'Anterior',
144	ERROR		: 'No se puede cargar el contenido solicitado.<br/>Por favor intente de nuevo.',
145	PLAY_START	: 'Inicias diapositivas',
146	PLAY_STOP	: 'Pausar diapositivas',
147	FULL_SCREEN	: 'Pantalla completa',
148	THUMBS		: 'Miniaturas / Thumbnails',
149	DOWNLOAD	: 'Descargar',
150	SHARE		: 'Compartir',
151	ZOOM		: 'Zoom'
152};
153$.fancybox.defaults.lang = 'es';
154}
155
156
157
158// trigger click if hash is provided
159// TO DO
160/*
161var fancyboxHash = window.location.hash;
162if ( fancyboxHash ) {
163	jQuery(fancyboxHash).trigger('click');
164}
165*/
166
167
168// special function to implement accordions in fancybox
169jQuery(".contacts_fancybox").fancybox({
170	baseClass : 'fancybox-container-contact-details',
171	afterShow: function(){
172		jQuery( '#swiper_item_content_details_accordion' ).accordion({
173			header		: 'div.swiper_item_content_details_accordion_header',
174			collapsible	: true,
175			heightStyle	: 'content',
176			animate		: 500, 
177			// set localStorage for current index on activate event via HTML5's Local Storage
178			activate	: function(event, ui) {        
179			localStorage.setItem('accIndex', jQuery(this).accordion('option', 'active'));
180	
181			},
182			active		: ( localStorage.getItem('accIndex') === null ) ? 0 : parseInt(localStorage.getItem('accIndex'))
183		});
184	},
185	afterClose: function(){
186	}
187});
188
189});
190// jQuery END -->

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.