PageSourceSearch

https://thevillageoutlet.com/blog/wp-content/themes/soledad/js/post-like.js?ver=8.6.8

js thevillageoutlet.com collected 2026-09-25 05:28:16 UTC 1,293 bytes, 40 lines download raw bytes

1jQuery( document ).ready( function ($) {
2	jQuery( 'body' ).on( 'click', '.penci-post-like', function ( event ) {
3		event.preventDefault();
4		var $this = jQuery( this ),
5			post_id = $this.data( "post_id" ),
6			reaction = $this.data( "reaction" ),
7			like_text = $this.data( "like" ),
8			unlike_text = $this.data( "unlike" ),
9			$selector = $this.children('.dt-share' );
10			if( $this.hasClass( 'single-like-button' ) ) {
11				$selector = $this.parent().find('.count-number-like');
12			}
13			if ( $this.hasClass( 'penci-post-reaction' ) ) {
14				$selector = $this.closest( '.penci-post-reaction-item' ).find( '.dt-share' );
15			}
16		var	$like = parseInt( $selector.text() );
17
18		if ( $this.hasClass( 'single-like-button' ) ) {
19			$selector = $( '.post-share-plike .count-number-like' );
20			$this = $( '.single-like-button' );
21		}
22
23		if ( $this.hasClass( 'liked' ) ) {
24			$this.removeClass( 'liked' );
25			$this.prop( 'title', 'Like' );
26			$selector.html( ( $like - 1 ) );
27		}
28		else {
29			$this.addClass( 'liked' );
30			$this.prop( 'title', 'Unlike' );
31			$selector.html( ( $like + 1 ) );
32		}
33
34		jQuery.ajax( {
35			type: "post",
36			url : ajax_var_more.url,
37			data: "action=penci-post-like&nonce=" + ajax_var_more.nonce + "&penci_post_like=&post_id=" + post_id + "&reaction=" + reaction,
38		} );
39	} );
40} );

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.