PageSourceSearch

https://heldendumm.de/wp-content/themes/podcaster/js/call-parallax-front-page.js?ver=1.0

js heldendumm.de collected 2026-10-02 13:02:27 UTC 2,015 bytes, 63 lines download raw bytes

1{
2	'use strict';
3	window.addEventListener('DOMContentLoaded',init,false);
4
5	var headertype = podfrontpageparallax.header_type;
6
7
8	var headerbg = "";
9	var headertxt = "";
10
11	if( headertype == "text" ) {
12
13		headerbg = document.querySelector('.front-page-header.has-header .background_image .parallax.parallax_on');
14		headertxt = document.querySelector('.front-page-header.has-header .inside');
15
16	} else if( headertype == "static" ) {
17
18		headerbg = document.querySelector('.latest-episode.front-header .background_image .parallax.parallax_on');
19		headertxt = document.querySelector('.latest-episode.front-header .front-page-inside');
20
21	} else if( headertype == "static-posts" ) {
22
23		headerbg = document.querySelector('.front-page-header.has-header .background_image .parallax.parallax_on');
24		headertxt = document.querySelector('.front-page-header.has-header .inside');
25
26	} else if( headertype == "slideshow" ) {
27
28		headerbg = document.querySelectorAll('.front-page-header .slide.has-header .background_image .parallax.parallax_on');
29		headertxt = document.querySelectorAll('.front-page-header .slide.has-header .inside.inside_parallax_on');
30
31	}  else if( headertype == "video-bg" ) {
32		headerbg = document.querySelectorAll('.front-page-header.front-page-header-video-background.parallax_on .video-bg');
33		headertxt = document.querySelectorAll('.front-page-header.front-page-header-video-background.parallax_on .content-text');
34	}
35	
36	var setTranslate = (x,y,el) => {
37		if( el ) {
38			if( NodeList.prototype.isPrototypeOf(el) ) {
39				for (i = 0; i < el.length; ++i) {
40				  el[i].style.transform="translate3d(" + x + "px," + y + "px,0)";
41				}
42			} else {
43				el.style.transform="translate3d(" + x + "px," + y + "px,0)";
44			}
45		}
46	}
47	
48	var xScrollPosition;
49	var yScrollPosition;
50	
51	function init(){
52	
53		xScrollPosition = window.scrollX;	
54		yScrollPosition = window.scrollY;
55		
56
57		setTranslate(0, yScrollPosition * 0, headertxt);
58		setTranslate(0, yScrollPosition * 0.2, headerbg);
59		
60		requestAnimationFrame(init);
61	}
62
63}	

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.