PageSourceSearch

https://www.mazafakas.com/wp-content/plugins/peepso-edd/assets/js/peepso-edd.js?ver=9.0.5.0

js mazafakas.com collected 2026-09-24 09:00:32 UTC 1,444 bytes, 69 lines download raw bytes

1(function( $, peepso, factory ) {
2
3	ps_edd = peepso.edd = factory( $, peepso );
4
5})( jQuery || $, peepso, function( $, peepso ) {
6
7/*
8 * PeepSo Messages class
9 * @package PeepSo
10 * @author PeepSo
11 */
12
13function PsEDD()
14{
15	//
16}
17
18var ps_edd = new PsEDD();
19
20/**
21 * Displays the list of products and hides the summary.
22 */
23PsEDD.prototype.show_long_products = function()
24{
25	$("#summary-products").hide();
26	$("#long-products").fadeIn();
27};
28
29
30$(function() {
31	$( document ).on( 'click.ps-edd__slider-wrapper', '.ps-edd__slider-btn', function() {
32		var $btn = $( this ),
33			step = +$btn.data( 'step' ),
34			direction = step > 0 ? 'next' : step < 0 ? 'prev' : '',
35			$wrapper, wrapperWidth, scrollLeft;
36
37		if ( ! direction ) {
38			return;
39		}
40
41		$wrapper = $btn.closest( '.ps-edd__slider-wrapper' ).children( '.ps-edd__slider' );
42		wrapperWidth = $wrapper.width();
43		$wrapper.children( '.ps-edd__slider-item' ).each(function() {
44			var position;
45
46			$item = $( this );
47			position = $item.position();
48			if ( direction === 'next' ) {
49
50				if ( Math.floor( position.left ) > 0 ) {
51					scrollLeft = $wrapper.scrollLeft() + position.left;
52					return false;
53				}
54			} else if ( direction === 'prev' ) {
55				if ( Math.floor( position.left ) < 0 ) {
56					scrollLeft = $wrapper.scrollLeft() + position.left;
57				}
58			}
59		});
60
61		if ( typeof scrollLeft === 'number' ) {
62			$wrapper.animate({ scrollLeft: scrollLeft }, 'fast' );
63		}
64	});
65});
66
67return ps_edd;
68
69});

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.