PageSourceSearch

https://gundalingfm.co.id/wp-content/plugins/qt-chartvote/js/qt-chartvote-script.js?ver=1.0.0

js gundalingfm.co.id collected 2026-10-07 04:42:00 UTC 1,089 bytes, 39 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.qt-chartvote-link").on("click",function(e){
12			e.stopPropagation();
13			var t = $(this);
14			var cookiename = 'voted-'+t.data('chartid')+'-'+t.data('position');
15			$.ajax({
16				type: "post",
17				url: chartvote_ajax_var.url,
18				cache: false,
19				data: "action=track-vote&nonce="+chartvote_ajax_var.nonce+"&position="+t.data('position')+"&move="+t.data('move')+"&chartid="+t.data('chartid'),
20				success: function(data){
21					console.log($.cookie(cookiename));
22					if( '1' !== $.cookie(cookiename)){
23						var dataarr = jQuery.parseJSON(data);
24						console.log('SUCCESS!');
25
26						console.log(dataarr);
27						t.parent().find(".qt-chartvote-number").html(dataarr.newvalue);
28						$.cookie(cookiename, '1', { path: '/' }); // session cookie only
29					} else {
30						alert("You already voted for this track");
31					}
32				},
33				error: function(e){
34					console.log(e.Error);
35				}
36			});
37		});
38	};
39})(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.