1jQuery(function ($) { 2 $ = jQuery; 3 var dom = $("#uniqueWidget"); 4 if (!dom.length) return; 5 6 /* Injection des numéros au chargement */ 7 $('#plList li').each(function (i) { 8 $(this).prepend('<span class="plNum" aria-hidden="true">' + (i + 1) + '</span>'); 9 }); 10 11 function setActive(el) { 12 $('#plList li').each(function (i) { 13 $(this).removeClass('plSel'); 14 $(this).find('.plNum').text(i + 1); 15 }); 16 $(el).addClass('plSel'); 17 $(el).find('.plNum').text('â¶'); 18 } 19 20 setActive($('#plList li').first()); 21 22 $('#plList li').on('click', function () { 23 var clicked = this; 24 var id = $(this).find(".plItem > .plTitle").attr('idtrack'); 25 26 setActive(clicked); 27 28 var widget = Mixcloud.PlayerWidget(document.getElementById("uniqueWidget")); 29 widget.ready.then(function () { 30 widget.pause(); 31 widget.load(decodeURI(id), true).then(function () { 32 var srcRoot = $("#uniqueWidget").attr('src').split("&feed=")[0]; 33 dom.attr('src', srcRoot + "&feed=" + id); 34 widget.play(); 35 }); 36 }); 37 }); 38});
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.