PageSourceSearch

https://tri-mag.de/wp-content/plugins/tri-mag-newsticker/assets/js/ticker-yt.js?ver=2.51.0

js tri-mag.de collected 2026-09-24 09:36:36 UTC 1,164 bytes, 34 lines download raw bytes

1/**
2 * tri-mag Newsticker – Klick-to-Play-YouTube-Player.
3 *
4 * Beim Seitenaufbau wird nur das (lokale) Poster-Bild geladen. Erst nach
5 * Klick wird der YouTube-Iframe (youtube-nocookie.com) eingesetzt –
6 * vorher findet kein Request zu YouTube statt (DSGVO-freundlich).
7 */
8( function () {
9	'use strict';
10
11	document.addEventListener( 'click', function ( event ) {
12		var button = event.target.closest( '.tmn-yt-poster' );
13		if ( ! button ) {
14			return;
15		}
16
17		var wrap = button.closest( '.tmn-yt' );
18		var id   = wrap ? wrap.getAttribute( 'data-ytid' ) : '';
19
20		if ( ! id || ! /^[A-Za-z0-9_-]{11}$/.test( id ) ) {
21			return;
22		}
23
24		var iframe = document.createElement( 'iframe' );
25		iframe.src = 'https://www.youtube-nocookie.com/embed/' + id + '?autoplay=1&rel=0';
26		iframe.title = button.getAttribute( 'aria-label' ) || 'YouTube-Video';
27		iframe.setAttribute( 'allow', 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share' );
28		iframe.setAttribute( 'allowfullscreen', '' );
29		iframe.setAttribute( 'frameborder', '0' );
30
31		wrap.classList.add( 'tmn-yt--playing' );
32		wrap.replaceChildren( iframe );
33	} );
34} )();

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.