PageSourceSearch

https://www.rewindmymusic.com/wp-content/plugins/events-customize-…/js/widget-this-week-1.js?ver=2.4.2.1

js rewindmymusic.com collected 2026-09-28 09:24:16 UTC 1,819 bytes, 70 lines download raw bytes

1var tribe_events_this_week = tribe_events_this_week || {};
2
3tribe_events_this_week.ajax = {
4	event: {}
5};
6
7( function( $, my ) {
8	'use strict';
9
10	my.init = function() {
11		this.init_ajax();
12	};
13
14	/**
15	 * initialize the recurrence behaviors and UI
16	 */
17	my.init_ajax = function() {
18		this.$widget_wrapper = $( '.tribe-this-week-widget-wrapper' ).parent();
19
20		this.$widget_wrapper
21			.on( 'click', '.tribe-this-week-nav-link', this.event.ajax );
22
23	};
24
25	my.event.ajax = function( e ) {
26		console.log('events-customize-changes >> widget-this-week-1.js'); //WPB-4249
27		
28		e.preventDefault();
29
30		//Setup Variables
31		var $this = $( this );
32		var $this_week_widget = $this.closest( '.tribe-this-week-widget-wrapper' );
33
34		//Show Loading Ajax
35		$this_week_widget.find( '.tribe-this-week-widget-weekday-wrapper' ).css( 'opacity', .25 );
36		$this_week_widget.find( '.tribe-events-ajax-loading' ).addClass( 'tribe-events-active-spinner' );
37
38		//Setup Query Start Date
39		var $week_target = $this_week_widget.data( 'prev-date' );
40		if (  $this.hasClass( 'nav-next' ) ) {
41			$week_target = $this_week_widget.data( 'next-date' );
42		}
43
44		var params = {
45			action          : 'tribe_this_week',
46			start_date      : $week_target,
47			count           : $this_week_widget.data( 'count' ),
48			layout          : $this_week_widget.data( 'layout' ),
49			tax_query       : $this_week_widget.data( 'tax-query' ),
50			hide_weekends   : $this_week_widget.data( 'hide-weekends' ),
51			nonce           : $this_week_widget.data( 'nonce' )
52		};
53
54		$.post(
55			tribe_this_week.ajaxurl,
56			params,
57			function( response ) {
58				if ( response.success ) {
59					var $the_content = $.parseHTML( response.html );
60					$this_week_widget.replaceWith( $the_content );
61				}
62			}
63		);
64	};
65
66	$( function() {
67		my.init();
68	} );
69
70} )( jQuery, tribe_events_this_week.ajax );

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.