PageSourceSearch

http://www.saturninotorre.es/wp-content/themes/manual/js/voting-front.js?ver=1.0

js saturninotorre.es collected 2026-10-04 17:15:33 UTC 2,316 bytes, 83 lines download raw bytes

1jQuery(document).ready(function() {
2	 
3	"use strict";
4	
5    jQuery(".post-like a").on("click",function() { 
6        var heart = jQuery(this);
7        // Retrieve post ID from data attribute
8        var post_id = heart.data("post_id");
9        // Ajax call
10        jQuery.ajax({
11            type: "post",
12            url: doc_ajax_var.url,
13			data: { action: 'post-like', 
14					nonce: doc_ajax_var.nonce,
15					post_id: post_id,
16					post_like: '',
17				  },
18			success: function(data, textStatus, XMLHttpRequest){
19					jQuery( "span.manual_doc_count" ).text(data); 
20			},
21			error: function(MLHttpRequest, textStatus, errorThrown){  
22				//alert(textStatus); 
23			}
24        });
25        return false;
26    })
27	
28	
29    jQuery(".post-unlike a").on("click",function() { 
30        var heart = jQuery(this);
31        // Retrieve post ID from data attribute
32        var post_id = heart.data("post_id");
33        // Ajax call
34        jQuery.ajax({
35            type: "post",
36            url: doc_ajax_var.url,
37			data: { action: 'post-unlike', 
38					nonce: doc_ajax_var.nonce,
39					post_id: post_id,
40					post_like: '',
41				  },
42			success: function(data, textStatus, XMLHttpRequest){ 
43					jQuery( "span.manual_doc_unlike_count" ).text(data);
44			},
45			error: function(MLHttpRequest, textStatus, errorThrown){  
46				//alert(textStatus); 
47			}
48        });
49        return false;
50    })	
51	
52	
53	
54	jQuery(".post-reset a").on("click",function() { 
55		var action = confirm("Are you sure you want to start reset (like/unlike/total post visitors) process. Once reset it cant be undone");
56		if (action == true) {
57				var heart = jQuery(this);
58				// Retrieve post ID from data attribute
59				var post_id = heart.data("post_id");
60				// Ajax call
61				jQuery.ajax({
62					type: "post",
63					url: doc_ajax_var.url,
64					data: { action: 'post-reset-stats', 
65							nonce: doc_ajax_var.nonce,
66							post_id: post_id,
67							post_reset: '',
68						  },
69					success: function(data, textStatus, XMLHttpRequest){ 
70							jQuery( "span.manual_doc_count" ).text(''); 
71							jQuery( "span.manual_doc_unlike_count" ).text('');
72					},
73					error: function(MLHttpRequest, textStatus, errorThrown){  
74						//alert(textStatus); 
75					}
76				});
77				return false;
78		}
79	})	
80
81	
82	
83})

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.