PageSourceSearch

https://tajweed.ai/wp-content/themes/buddyboss-theme/assets/js/plugins/elementor.js?ver=0c3320a04c82

js tajweed.ai collected 2026-10-05 12:44:17 UTC 3,391 bytes, 111 lines download raw bytes

1( function ( $ ) {
2
3	"use strict";
4
5	window.BuddyBossThemeElementor = {
6		init: function () {
7			this.ignoreFitVids();
8			this.membersBlock();
9		},
10
11		ignoreFitVids: function() {
12
13			$( ".elementor-section[data-settings*='background_video_link']" ).addClass( 'fitvidsignore' );
14			$( '.elementor-widget-video' ).addClass( 'fitvidsignore' );
15			$( '.elementor-video-container' ).addClass( 'fitvidsignore' );
16
17		},
18
19		membersBlock: function () {
20			/**
21			 * Show Gamipress Widget data in popup
22			 */
23
24			if ( $( '.elementor-widget-bbp-members .gamipress-buddypress-user-details-listing' ).length ) {
25				var tempStyles;
26
27				window.BuddyBossThemeElementor.GamiPressWidgetData();
28
29				$( document ).on(
30					'click',
31					'.elementor-widget-bbp-members .showGamipressData',
32					function () {
33						$( this ).parent().find( '.GamiPress-data-popup' ).addClass( 'is_active' );
34						if ( $( this ).closest( '.bb-sticky-sidebar' ).length ) { // Check if parent is sticky.
35							tempStyles = $( this ).closest( '.bb-sticky-sidebar' ).attr( 'style' ); // Store parent's fixed styling and remove to avoid issue.
36							$( this ).closest( '.bb-sticky-sidebar' ).attr( 'style', '' );
37							$( 'body' ).addClass( 'hide-overflow' );
38						}
39					}
40				);
41
42				$( document ).on(
43					'heartbeat-tick',
44					function () { // When heartbeat called re-run function for widgets.
45						setTimeout(
46							function () {
47								window.BuddyBossThemeElementor.GamiPressWidgetData();
48							},
49							1000
50						);
51					}
52				);
53
54				$( '.elementor-widget-bbp-members .bb-members .item-options a' ).on(
55					'click',
56					function () {
57						setTimeout(
58							function () {
59								window.BuddyBossThemeElementor.GamiPressWidgetData();
60							},
61							3000
62						);
63					}
64				);
65
66				$( document ).on(
67					'click',
68					'.elementor-widget-bbp-members .GamiPress-data-popup .hideGamipressData',
69					function () {
70						$( this ).closest( '.GamiPress-data-popup' ).removeClass( 'is_active' );
71						if ( $( this ).closest( '.bb-sticky-sidebar' ).length ) {
72							$( this ).closest( '.bb-sticky-sidebar' ).attr( 'style', tempStyles ); // add parent's fixed styling back.
73							tempStyles = '';
74							$( 'body' ).removeClass( 'hide-overflow' );
75						}
76					}
77				);
78
79
80
81			}
82		},
83
84		GamiPressWidgetData: function() {
85			$( '.elementor-widget-bbp-members .gamipress-buddypress-user-details-listing:not(.is_loaded)' ).each(
86				function () {
87					if ( $( this ).text().trim() !== '' ) {
88						$( this ).parent().append( '<span class="showGamipressData" data-balloon-pos="right" data-balloon="' + bs_data.gamipress_badge_label + '"></span>' );
89						if ( $( this ).find( 'img' ).length ) {
90							$( this ).parent().find( '.showGamipressData' ).append( '<img src="' + $( this ).find( 'img' ).attr( 'src' ) + '"/>' );
91						} else {
92							$( this ).parent().find( '.showGamipressData' ).append( '<i class="bb-icon-l bb-icon-award"></i>' );
93						}
94						$( this ).parent().find( '.gamipress-buddypress-user-details-listing' ).wrap( '<div class="GamiPress-data-popup"></div>' );
95						$( this ).parent().find( '.gamipress-buddypress-user-details-listing' ).append( '<i class="bb-icon-l bb-icon-times hideGamipressData"></i>' );
96					}
97					$( this ).addClass( 'is_loaded' );
98				}
99			);
100		}
101
102	};
103
104	$( document ).on(
105		'ready',
106		function () {
107			window.BuddyBossThemeElementor.init();
108		}
109	);
110
111} )( jQuery );

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.