PageSourceSearch

https://stc-spinnzwirn.com//plugins/system/wkshortcodes/codes/Zustimmung.js?ver=1791476240

js stc-spinnzwirn.com collected 2026-10-08 16:17:38 UTC 1,889 bytes, 43 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function(){
2	const Zustimmungen = document.querySelectorAll('[class*="wk-zustimmung"]');
3	Zustimmungen.forEach(function(element,index){
4		element.classList.add('dialog');
5		element.innerHTML='<div class="zustimmungsinhalt"><div class="text">'+element.dataset.consens+'</div><button class="wk-button" onclick="wkshortocdes_zustimmung_confirm('+index+')">'+wkshortcodesZustimmungAccept+'</button></div>';
6	});
7	Zustimmungen.forEach(function(element){
8		const type = element.dataset.type;
9		let wkshortcodesZustimmung={};
10		if (typeof(sessionStorage.wkshortcodesZustimmung)!=='undefined'){
11			wkshortcodesZustimmung=JSON.parse(sessionStorage.wkshortcodesZustimmung);
12		}
13		if(typeof(wkshortcodesZustimmung[type])!=='undefined'){
14			wkshortocdes_zustimmung_replaceType(Zustimmungen,type);
15		}
16	});
17});
18function wkshortocdes_zustimmung_confirm(index) {
19	const Zustimmungen = document.querySelectorAll('[class*="wk-zustimmung"]');
20	const type = Zustimmungen[index].dataset.type;
21	wkshortocdes_zustimmung_replaceType(Zustimmungen, type);
22	
23	if (typeof(sessionStorage)!=='undefined'){
24		let wkshortcodesZustimmung={};
25		if (typeof(sessionStorage.wkshortcodesZustimmung)!=='undefined'){
26			wkshortcodesZustimmung=JSON.parse(sessionStorage.wkshortcodesZustimmung);
27		}
28		wkshortcodesZustimmung[type]=true;
29		sessionStorage.wkshortcodesZustimmung = JSON.stringify(wkshortcodesZustimmung);
30		
31	}
32}
33function wkshortocdes_zustimmung_replaceType(Zustimmungen,type) {	
34	Zustimmungen.forEach(function(element,index) {
35		if (element.dataset.type===type) {
36			wkshortocdes_zustimmung_replace(Zustimmungen,index);
37		}
38	});
39}
40function wkshortocdes_zustimmung_replace(Zustimmungen,index) {
41	Zustimmungen[index].classList.replace('dialog','content');
42	Zustimmungen[index].innerHTML=wkshortcodesZustimmungInhalt['E'+index];
43}

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.