PageSourceSearch

https://snarkypuppy.com/js/audio-player.js

js snarkypuppy.com collected 2026-10-02 05:34:33 UTC 1,235 bytes, 31 lines download raw bytes

1$(function(){
2    $('.playListItem[data-streamable="true"]').click(function(){
3        var album = $(this).attr('data-album');
4        var title = $(this).attr('data-title');
5        var track = $(this).attr('data-track');
6        var fake = 'fakePlayer-'+album;
7        var mp3 = 'm-'+album;
8        var playlist = 'playlist-'+album;
9        var source = '/src/stream.php?album='+album+'&song='+track;
10        $('.playListItem').removeClass('active');
11        $('#'+fake).children('.curTitle').text(title);
12        $(this).addClass('active');
13        //document.getElementById(playerID).pause();
14        $('audio').remove();
15        $('body').append("<audio id='liveStreaming' preload='auto' controls='controls'><source src='"+source+"' type='audio/mpeg'></audio>");
16        $('.glyphicon').removeClass('litUp');
17        $('#'+fake).find('.playMX').addClass('litUp');
18        $('#liveStreaming').get(0).play();
19    });
20
21    $('.playMX').click(function(){
22        $('#liveStreaming').get(0).play();
23        $(this).addClass('litUp').siblings().removeClass('litUp');
24    });
25
26
27    $('.pauseMX').click(function(){
28        $('#liveStreaming').get(0).pause();
29        $(this).addClass('litUp').siblings().removeClass('litUp');
30    });
31});

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.