PageSourceSearch

https://conviviumrecords.co.uk/wp-content/plugins/disk-player/js/count_song_views.js?ver=1.0

js conviviumrecords.co.uk collected 2026-09-24 18:34:01 UTC 1,173 bytes, 47 lines download raw bytes

1(function($) {
2
3	jQuery(document).ready(function($) {
4		
5		$( ".viewport, .dap-play, .dap-previous, .dap-next" ).on( "click", function() {
6		//$( ".viewport" ).on( "click", function() {
7
8			var containerDap = $(this).closest(".disk-player-container").attr('id');
9			var containderID = containerDap.split("_")[1];
10			//alert( containderID );
11			
12			var containerSel = $("#" + containerDap + ' .viewport li');
13			var songIndice = 0;
14			setTimeout( function() { 
15				for (i = 0; i < containerSel.length; i++) {
16					if ( containerSel[i].className == "dap-playlist-current") {
17						songIndice = i;
18						//alert(i);
19					}
20				}
21				
22				//envia pro servidor os dados
23				sendAction(containderID, songIndice);
24				
25			}, 1000);
26
27		});
28
29		
30		function sendAction(player_id, song_indice) {
31
32			var data = {
33				'action': 'action_count_songs',
34				//'test_prop': ajax_object.test_prop,
35				'player_id': player_id,
36				'song_indice': song_indice
37			};
38			// envia pro servidor e recebe resposta. Talvez seja util usar a resposta.
39			jQuery.post(ajax_object.ajax_url, data, function(response) {
40				//alert('Got this from the server: ' + response);
41			});
42			
43		}
44
45	});
46
47})(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.