PageSourceSearch

https://directionplus.com.au/wp-content/plugins/tz-feature-pack//public/js/post-like.js?ver=1.0

js directionplus.com.au collected 2026-10-08 03:46:11 UTC 1,986 bytes, 63 lines download raw bytes

1jQuery(document).ready(function($) {
2	"use strict";
3	/* Show buttons on hover/click */
4	var like_element = $('.tz-like-wrapper');
5	var settings = {
6				interval: 100,
7				timeout: 200,
8				over: mousein_triger,
9				out: mouseout_triger
10	};
11	function mousein_triger(){
12		$(this).find('.wrapper').css('visibility', 'visible');
13		$(this).addClass('hovered');
14	}
15	function mouseout_triger() {
16		$(this).removeClass('hovered');
17		$(this).find('.wrapper').delay(300).queue(function() {
18			$(this).css('visibility', 'hidden').dequeue();
19		});
20	}
21	if ( window.matchMedia("(min-width: 801px)").matches ) {
22		like_element.hoverIntent(settings);
23	} else {
24		like_element.find('.heading').on('click', function(){
25			if (like_element.hasClass('hovered')) {
26				like_element.removeClass('hovered');
27				like_element.find('.wrapper').delay(300).queue(function() {
28					$(this).css('visibility', 'hidden').dequeue();
29				});
30			} else {
31				like_element.addClass('hovered').find('.wrapper').css('visibility','visible');
32			}
33		})
34	}
35	/* like/dislake on click */
36	$('body').on('click','.post-like-button',function(e){
37		e.preventDefault();
38		var button = $(this);
39		var post_id = button.data("post_id");
40		button.find('.like-button').hide();
41		button.append('<i class="loading fa fa-cog fa-spin"></i>');
42		$.ajax({
43			type: "post",
44			url: ajax_var.url,
45			data: "action=tz-post-like&nonce="+ajax_var.nonce+"&post_id="+post_id,
46			success: function(count){
47				button.find('.loading').remove();
48				if( count.indexOf( "already" ) !== -1 ) {
49					var new_count = count.replace("already","");
50					button.removeClass("liked");
51					button.parent().find('.tooltip').hide();
52					button.find('#icon-like').show();
53					button.parent().parent().find('.likes-counter').html(new_count);
54				} else {
55					button.addClass("liked");
56					button.find('#icon-unlike').show();
57					button.parent().find('.tooltip').show();
58					button.parent().parent().find('.likes-counter').html(count);
59				}
60			}
61		});
62	});
63});

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.