PageSourceSearch

https://passionsquared.net/wp-content/plugins/lollum-framework/includes/love/love.js

js passionsquared.net collected 2026-10-04 02:15:28 UTC 842 bytes, 28 lines download raw bytes

1jQuery(document).ready(function($){
2	"use strict";
3	/* global lolfmk_love_it_vars, jQuery */
4	/*jslint eqeq: true*/
5	var theme = lolfmk_love_it_vars.theme_name;
6	$('.lol-love-wrap').on('click', '.lol-love', function() {
7		var link = $(this);	
8		var post_id = $(this).data('post-id');
9		if ($.cookie(theme+'_loved_'+post_id) == post_id) {
10			return false;
11		}
12		$.cookie(theme+'_loved_'+post_id, post_id, {expires: 365, path: '/'});
13		var post_data = {
14			action: 'lolfmk_love_it',
15			item_id: post_id,
16			love_it_nonce: lolfmk_love_it_vars.nonce
17		};
18		$.post(lolfmk_love_it_vars.ajaxurl, post_data, function(response) {
19			if(response === 'loved') {
20				link.addClass('loved');
21				var count_wrap = link.children('span');
22				var count = count_wrap.text();
23				count_wrap.text(parseInt(count, 10) + 1);		
24			}
25		});
26		return false;
27	});	
28});

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.