PageSourceSearch

https://www.cegema.de/_assets/edb4f517f670dc083919197ece387a78/Jav…/ContentElements/ce-video.js?1780571688

js cegema.de collected 2026-10-07 04:15:12 UTC 1,042 bytes, 28 lines download raw bytes

1$(document).ready(function() {
2    $('.play-button').on('click', function() {
3        var $videoContainer = $(this).closest('.video-container');
4        var $media = $videoContainer.find('video, iframe');
5        $videoContainer.find('.overlay').hide();
6
7        if ($media.length > 0) {
8            var mediaElement = $media.get(0);
9
10            if (mediaElement.tagName.toLowerCase() === 'iframe') {
11               
12                var iframeSrc = $media.attr('src');
13                if (iframeSrc) {
14                    $media.attr('allow', 'autoplay');
15                    var newSrc = iframeSrc + (iframeSrc.includes('?') ? '&' : '?') + 'autoplay=1';
16                    $media.attr('src', newSrc);
17                } else {
18                    console.error('Iframe src is undefined');
19                }
20            } else if (mediaElement.tagName.toLowerCase() === 'video') {
21                
22                mediaElement.play();
23            }
24        } else {
25            console.error('Media element not found');
26        }
27    });
28});

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.