1window.SoundcloudWidget = (function() { 2 'use strict'; 3 4 function render(element, soundcloudUrl) { 5 if (!element || !soundcloudUrl) return; 6 var container = element.querySelector('.soundcloud-player-container'); 7 if (!container) { 8 container = document.createElement('div'); 9 container.className = 'soundcloud-player-container'; 10 element.appendChild(container); 11 } 12 13 var encodedUrl = encodeURIComponent(soundcloudUrl); 14 var src = 'https://w.soundcloud.com/player/?url=' + encodedUrl + '&color=%23ff5500&auto_play=false&hide_related=true&show_comments=false&show_user=true&show_reposts=false&show_teaser=false'; 15 container.innerHTML = '<iframe width="100%" height="166" scrolling="no" frameborder="no" allow="autoplay" loading="lazy" sandbox="allow-scripts allow-same-origin allow-popups allow-forms" src="' + src + '" credentialless></iframe>'; 16 } 17 18 function init() { 19 var elements = document.querySelectorAll('[data-soundcloud-url]'); 20 elements.forEach(function(el) { 21 if (el.classList.contains('fav-collection-item-chip') || (el.closest && el.closest('.fav-collection-item-chip'))) return; 22 var url = el.getAttribute('data-soundcloud-url'); 23 if (url) { 24 render(el, url); 25 } 26 }); 27 } 28 29 return { init: init, render: render }; 30})();
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.