PageSourceSearch

https://la999.es/wp-content/plugins/proradio-chartvote/assets/js/proradio-chartvote-script.js?ver=PR.6.0.1

js la999.es collected 2026-10-01 12:12:53 UTC 1,604 bytes, 56 lines download raw bytes

1/**
2 * @package QT Chartvote
3 * Script for the Qantumthemes Love It plugin
4 */
5
6
7(function($) {
8	"use strict";
9	$.fn.qtChartvoteInit = function(){
10		// var post_id, heart;
11		$("body a.proradio-chartvote-link").off("click");
12
13		$("body a.proradio-chartvote-link").each(function(i,c){
14			var t = $(c);
15			var cookiename = 'voted-'+t.data('chartid')+'-'+t.data('position');
16			if( '1' == $.cookie(cookiename)){
17				$(c).addClass('disabled');
18				$(c).parent().addClass('disabled');
19			}
20		});
21
22		$("body a.proradio-chartvote-link").on("click",function(e){
23			e.preventDefault();
24			e.stopPropagation();
25			var btn = $(this);
26			if(  typeof($.PrSideKickFrontend) !== 'undefined' ){
27				$.PrSideKickFrontend.fn.chartVoteRankLink(btn);
28			}
29			var t = $(this);
30			var cookiename = 'voted-'+t.data('chartid')+'-'+t.data('position');
31			if( '1' == $.cookie(cookiename)){
32				t.addClass('disabled');
33			}else {
34				$.cookie(cookiename, '1', { expires: 1, path: '/' }); 
35				$.ajax({
36					type: "post",
37					url: chartvote_ajax_var.url,
38					cache: false,
39					data: "action=track-vote&nonce="+chartvote_ajax_var.nonce+"&position="+t.data('position')+"&move="+t.data('move')+"&chartid="+t.data('chartid'),
40					success: function(data){
41						var dataarr = jQuery.parseJSON(data);
42						t.parent().find(".proradio-chartvote-number").html(dataarr.newvalue);
43						t.parent().find('a').addClass('disabled');
44						t.parent().addClass('disabled');
45					},
46					error: function(e){
47						console.log(e.Error);
48					}
49				});
50			}
51		});
52	};
53	jQuery(document).ready(function() {
54		$.fn.qtChartvoteInit();
55	});
56})(jQuery);

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.