PageSourceSearch

https://www.1und1.de/_Resources/Static/Packages/ONEANDONE.NNodeTyp…/JavaScript/bs-transformer.js?bust=4

js 1und1.de collected 2026-10-01 08:41:36 UTC 1,053 bytes, 47 lines download raw bytes

1function BootstrapInitializer() {
2
3		const bsAttrs = [
4			'toggle',
5			'target',
6			'parent',
7			'placement',
8			'dismiss',
9			'collapse',
10			'tab',
11			'container',
12			'content'
13		];
14
15		function capitalizeFirstLetter(string) {
16			return string[0].toUpperCase() + string.slice(1);
17		}
18
19		const selectors = bsAttrs.map((attr) => `[data-${attr}]`).join(',');
20
21		document.querySelectorAll(selectors).forEach((el) => {
22			bsAttrs.forEach((attr) => {
23				if (el.dataset['bs-' + capitalizeFirstLetter(attr)]) {
24					return;
25				}
26
27				if (attr in el.dataset && el.dataset['toggle'] !== 'modal-lite') {
28					el.dataset['bs' + capitalizeFirstLetter(attr)] = el.dataset[attr];
29				}
30
31				if (!el.title) {
32					const title = el.dataset.title || el.dataset.originalTitle;
33
34					if (title) {
35						el.setAttribute('title', title);
36					}
37				}
38			});
39		});
40}
41
42document.addEventListener('DOMContentLoaded', () => {
43	BootstrapInitializer();
44	// Changes due to this https://access-jira.1and1.org/browse/SDBUG-8406
45	new window.XLAB_COMPONENTS.PopoverInitializer();
46});
47

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.