PageSourceSearch

https://www.tribeofnoise.com/radio/js/player.js?v=20181116-1238

js tribeofnoise.com collected 2026-10-02 04:00:40 UTC 1,047 bytes, 61 lines download raw bytes

1var current_index = 0;
2var cp = null;
3
4function shuffleArray(array)
5{
6	for(var i = array.length - 1; i > 0; i--)
7	{
8		var j = Math.floor(Math.random() * (i + 1));
9		var temp = array[i];
10		array[i] = array[j];
11		array[j] = temp;
12	}
13
14	return array;
15}
16
17function set_media()
18{
19	cp.player.jPlayer('setMedia', { mp3: playlist[current_index].mp3 });
20}
21
22function show_artist_and_title()
23{
24	$('#artist').html(playlist[current_index].artist);
25	$('#title').html(playlist[current_index].title);
26}
27
28function play()
29{
30	cp.player.jPlayer('play');
31}
32
33$(document).ready(function()
34{
35	cp = new CirclePlayer('#jquery_jplayer_1',
36	{
37		mp3: playlist[current_index].mp3
38	},
39	{
40		supplied: 'mp3',
41		cssSelectorAncestor: '#cp_container_1',
42		autoPlay: true,
43		play: function()
44		{
45			show_artist_and_title();
46		},
47		ended: function()
48		{
49			current_index++;
50
51			if(current_index == playlist.length)
52			{
53				playlist = shuffleArray(playlist);
54				current_index = 0;
55			}
56
57			set_media();
58			play();
59		}
60	});
61});

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.